Issue #11135 closed
Valentino
created an issue

I've noticed 2 separate endpoints for v2 API:

Is there a reason there are two endpoints? Is there a reason to not just pick one? I've burned a lot of time discovering this...

Comments (8)

  1. Valentino reporter
    • changed status to open

    I meant the domain name. I've just finished developing a wrapper for a ruby API and having two separate domains makes things very difficult. Is there a practical reason for the distinction?

  2. Erik van Zijst staff

    Both domains work. The canonical domain for the API is api.bitbucket.org and that is what you should generally use. That is also the only domain that should be used in our documentation (if not, let me know and I'll address that).

    The other domain exists to support the Bitbucket web UI. It allows our javascript to call API endpoints using cookie authentication.

  3. Log in to comment