Endpoint slug conflict when using different versions

Hi Apidog Team,

We are maintaining two versions of our APIs in our published API documentation site: v1 and v2.
While setting up release versions, I used slugs v1 and v2. Because of this, my base URLs are now:

v2 → https://{custom-domain}/v1/
v2-legacy → https://{custom-domain}/v2/

My endpoints are the same in both versions, so I want to keep the same endpoint slug (for example /get-my-agent) under both versions

But Apidog shows the error: “Same URL already exists, please modify”, even though the base URLs are different.

Since the endpoints are identical in both versions, I need the endpoint slugs to remain the same. Could you please confirm if this is a bug or guide us on the correct way to achieve this?

Thanks.

Hi Hamza,

Did you create and maintain both versions of the APIs as separate endpoints in the main branch? For cases like this where you have identical endpoints across versions, we recommend creating API versions based on the main branch in Apidog.

You can modify the endpoints in the version branches, and related endpoints will automatically share the same slug by default. Please refer to this documentation for more details: API Versions in Apidog - Apidog Docs