Creating a token (self-serve)
- In the Gleap dashboard, open your project (or create a new one — see Sandbox below).
- Go to Project Settings → API Token.
- Create a service account and copy its token.
Sandbox
There are no special test credentials: your sandbox is simply a separate Gleap project with its own service-account token. Create a fresh project, configure your workflows and AI agents in it the way you plan to in production, and integrate against it. When you go live, switch the token (and any workflow ids) to your production project’s values.Scoping
A token is scoped to its project. It can only read and write that project’s contacts and conversations, only subscribe to that project’s event stream, and only manage that project’s webhooks. Requests addressing anything else return404.
API versioning
Pin the API version on every request (recommended):Gleap-Version header.
Rate limits
Exceeding a limit returns
429 with a Retry-After header (seconds). Honor it — retries before it elapses count against the same budget.