The Giftronaut API uses OAuth 2.0. All requests to /api/v1/** require
a valid Bearer token in the Authorization header.
Ideal for server-to-server integrations where no user interaction is required.
Log in to the developer portal, navigate to
Apps, and click New app. Copy your
client_id and client_secret — the secret is shown only once.
POST https://api.giftronaut.com/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id=YOUR_CLIENT_ID
&client_secret=YOUR_CLIENT_SECRET
&scope=orders.read+orders.write
{
"access_token": "eyJhbGci...",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "orders.read orders.write"
}
GET /api/v1/orders
Authorization: Bearer eyJhbGci...
Use this flow when your app acts on behalf of a logged-in Giftronaut portal user.
/oauth2/authorize with code_challenge (PKCE)redirect_uri with codecode + code_verifier for tokens at /oauth2/tokenThe API Reference has a built-in Try It panel that lets you send live API requests directly from your browser — no curl or Postman needed.
sessionStorage — it is automatically cleared when
you close the tab or log out. You can also clear it manually via the
Clear button in the auth panel. No credentials ever leave the server.
| Environment | Access token TTL |
|---|---|
| Sandbox | 24 hours |
| Production | 1 hour |
Tokens cannot be refreshed via refresh_token in the Client Credentials flow — simply request a new token when it expires.
Start typing to search...
Select the APIs you want to integrate. A ready-to-use Markdown file with full API specs and a project context template will be generated and downloaded. Paste it into your AI assistant to get started instantly.