Obtain credentials
Sign in with an active, approved client or partner-admin account to obtain the management JWT. Use it to create a developer API token tied to one active phone number. The token is displayed only in the create response; Anant8 stores only its SHA-256 hash and a short lookup prefix.
Sign in
/api/auth/client/loginBearer JWTPOST /api/auth/client/login accepts email and password. A successful response returns a JWT in data.token. Invalid credentials return HTTP 401 with { success: false, message: "Invalid login credentials." }. Invalid request model data returns HTTP 400. The JWT lifetime is set by the server and is not returned as a duration in the login payload.
curl -X POST https://api.anant8tech.com/api/auth/client/login \
-H 'Content-Type: application/json' \
-d '{"email":"you@example.com","password":"YOUR_ACCOUNT_PASSWORD"}'Create a developer token
POST /api/client/developer-tokens uses the management JWT. Select an active phone number owned by the authenticated client and an expiry from 1 to 365 days. The response is HTTP 201 and includes the token once. The API token is restricted to /v1 routes and the selected phone/WABA; customer portal endpoints still require a login JWT.
curl -X POST https://api.anant8tech.com/api/client/developer-tokens \
-H 'Authorization: Bearer <LOGIN_JWT>' \
-H 'Content-Type: application/json' \
-d '{"name":"orders-service","phoneNumberId":"123456789012345","expiresInDays":365}'Authenticated request headers
Send the scoped Anant8 developer token in the standard Authorization header for /v1 WhatsApp routes. JSON requests also require Content-Type: application/json. Idempotency-Key is optional on /v1 sends and the client template batch routes. For one logical send, reuse the same key and request body on retries; leave the header out when each call should be an independent operation.
Authorization: Bearer a8_live_<TOKEN>
Content-Type: application/jsonList or revoke tokens
GET /api/client/developer-tokens lists token metadata without revealing token values. DELETE /api/client/developer-tokens/{id} revokes a token immediately. Both management routes require the client login JWT.
curl https://api.anant8tech.com/api/client/developer-tokens \
-H 'Authorization: Bearer <LOGIN_JWT>'
curl -X DELETE https://api.anant8tech.com/api/client/developer-tokens/42 \
-H 'Authorization: Bearer <LOGIN_JWT>'Example authenticated request
/api/client/whatsapp/templatesBearer JWTThis lists the authenticated customer's WhatsApp templates.
curl 'https://api.anant8tech.com/api/client/whatsapp/templates' \
-H 'Authorization: Bearer <JWT>' \
-H 'Accept: application/json'Credential security
Make authentication calls from a trusted server. Do not store the account password or bearer token in a mobile app, browser bundle, URL, or log. Use HTTPS, restrict who can read stored secrets, rotate the account password if exposed, and avoid sharing a human portal login between unrelated integrations. Developer API tokens are available for server integrations. Each token is scoped to one active phone number and WABA, expires within 1 to 365 days, and can be revoked.
Need help with an integration? Contact Anant8