Generate API Token
Authenticates your account credentials and returns a Bearer token required for all subsequent API requests. Include this token in the Authorization: Bearer <token> header on every call. Tokens expire and must be refreshed. Use the optional ApiEndpoint field to scope a token to a specific endpoint URL for tighter security.
What this does: Returns a token string and tokenExpiry timestamp. Include the token as Authorization: Bearer <token> on every subsequent request. The optional ApiEndpoint field scopes the token to a single endpoint URL — a token scoped to /v1.0/numbers/provision will be rejected by any other endpoint. Re-authenticate from scratch when a token expires; there is no refresh mechanism.
Next steps:
- Use the token on any other endpoint —
POST /v1.0/numbers/provision,POST /v1.0/message/outbound, etc.
Documentation Index
Fetch the complete documentation index at: https://docs.telegent.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
Your account key (e.g., DID-1234567ab-1a2b-3cd4-...-...........)
"DID-1234567ab-1a2b-3cd4-...-..........."
Your account secret key
"abcdeABCdef..."
The specific API endpoint URL this token will be scoped to. Each token is scoped to a single endpoint for security.
"https://api.telegent.com/v1.0/numbers/provision"
Response
Success — returns the Bearer token and expiry timestamp
The response is of type object.