---
title: "Base URLs"
description: "Choose the appropriate environment for each section below."
url: "https://developer.agentsync.io/api-base-urls"
image: "https://developer.agentsync.io/_og/d/c_Ocean.takumi,title_Base+URLs,description_Choose+the+appropriate+environment+for+each+section+below.,props_eyJ0aGVtZSI6eyJtb2RlIjoibGlnaHQiLCJjb2xvcnMiOnsicHJpbWFyeSI6IiMxODdFRkYifX19,p_Ii9hcGktYmFzZS11cmxzIg,s_M0v2JbsJWYCFAafE.png"
---

# Base URLs

Choose the appropriate environment for each section below.

## [Token Endpoints](#token-endpoints)

| Environment | Token URL                                      |
| :---------- | :--------------------------------------------- |
| Sandbox     | https://auth.sandbox.agentsync.io/oauth2/token |
| Production  | https://auth.agentsync.io/oauth2/token         |

## [ProducerSync API Endpoints](#producersync-api-endpoints)

**Important**: Do not send API calls to the `auth.*` domain — that is only for obtaining tokens.

| Environment | API Base URL                     |
| :---------- | :------------------------------- |
| Sandbox     | https://api.sandbox.agentsync.io |
| Production  | https://api.agentsync.io         |

## [Contracting & Hierarchies API Endpoints](#contracting-hierarchies-api-endpoints)

The Contracting API uses a `/contracting` path prefix. Hierarchies endpoints share this base URL.

| Environment | API Base URL                                 |
| :---------- | :------------------------------------------- |
| Sandbox     | https://api.sandbox.agentsync.io/contracting |
| Production  | https://api.agentsync.io/contracting         |

## [Identity API Endpoints](#identity-api-endpoints)

The Identity API uses an `/identity` path prefix.

| Environment | API Base URL                              |
| :---------- | :---------------------------------------- |
| Sandbox     | https://api.sandbox.agentsync.io/identity |
| Production  | https://api.agentsync.io/identity         |