> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tagada.io/llms.txt
> Use this file to discover all available pages before exploring further.

# API hosts and base URLs

> One host per environment. The Commerce API and the Payments API share it.

TagadaPay serves its public APIs from one host per environment.

| Environment | Host | Commerce API (V2) | Payments API (V3, Preview) |
| - | - | - | - |
| Production | `https://api.tagada.io` | `https://api.tagada.io/api/public/v1` | `https://api.tagada.io/v1` |
| Staging | `https://api.tagada.dev` | `https://api.tagada.dev/api/public/v1` | Not open yet. Use production with a `tsk_test_` key. |

* **Production** is where your live store runs. On the Payments API, the key sets test or live mode (`tsk_test_` or `tsk_live_`), not the host.
* **Staging** runs the next release before it reaches production. Staging accounts and keys are separate from production ones.

## Which path for which call

| You want to | Use |
| - | - |
| Manage stores, products, orders, customers, subscriptions, funnels | Commerce API, `/api/public/v1` |
| Pay with V2 (`checkout/pay-v2`, `payments/process`, `threeds/*`) | Commerce API, `/api/public/v1` |
| Create and confirm Payments API payments | Payments API, `/v1` |

The SDKs set the right base URL for you:

| SDK | Default base URL |
| - | - |
| `@tagadapay/node-sdk` | `https://api.tagada.io/api/public/v1` |
| `@tagadapay/headless-sdk` | `https://api.tagada.io` (`environment: 'production'`), `https://api.tagada.dev` (`environment: 'development'`) |
| `@tagadapay/core-js/payments-v3` | `https://api.tagada.io` (`apiBase` option) |

See [SDK versions](https://docs.tagada.io/developer-tools/sdk-versions.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.