Agantia Public API
The Agantia Public API lets websites, mobile apps, B2B portals, server integrations, and AI agents use an Agantia merchant's catalogue and bookings.
You can:
- Read published catalogues, products, categories, availability, prices, reviews, and blog posts to build a website or app.
- Price a basket, create bookings, add travellers, and cancel bookings, all with safe retries.
- Work as a travel agent, seeing only your own bookings and the catalogues offered to agents.
How it works
- A merchant administrator creates an app in Agantia under Admin > Apps and chooses what it may access.
- They create a credential, which gives you a client ID and a client secret.
- Your server exchanges the credential for an access token with OAuth 2.0.
- You call the API with that token.
Environments
| Environment | Base URL | Credentials |
|---|---|---|
| Production | https://api.staging.agantia.com/api/public/v1 | Client IDs start with live_ |
| Sandbox | https://sandbox-api.agantia.com/api/public/v1 | Client IDs start with test_ |
Credentials work only in their own environment. See Sandbox.
Conventions at a glance
- JSON with
snake_casekeys. Dates and times are ISO 8601 in UTC. - Money is
{ "amount": "149.00", "currency": "AED" }. The amount is a decimal string. - Lists use
page,per_page,filter[field],sort, andfields. See Pagination and filtering. - Errors use RFC 9457 problem details.
- Every response has an
X-Request-Idheader. Include it when you contact support.
tip
Keep client secrets on your server. Never put them in a browser, a mobile app, or a public repository.