Skip to main content

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​

  1. A merchant administrator creates an app in Agantia under Admin > Apps and chooses what it may access.
  2. They create a credential, which gives you a client ID and a client secret.
  3. Your server exchanges the credential for an access token with OAuth 2.0.
  4. You call the API with that token.

Environments​

EnvironmentBase URLCredentials
Productionhttps://api.staging.agantia.com/api/public/v1Client IDs start with live_
Sandboxhttps://sandbox-api.agantia.com/api/public/v1Client IDs start with test_

Credentials work only in their own environment. See Sandbox.

Conventions at a glance​

  • JSON with snake_case keys. 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, and fields. See Pagination and filtering.
  • Errors use RFC 9457 problem details.
  • Every response has an X-Request-Id header. 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.