post
https://apis.elai.io/api/v1/generateToken
Generates a new 32-character API token for the workspace and returns it.
This rotates the token you are calling with. The previous token stops working the moment this call succeeds, so a client that calls this endpoint invalidates its own credentials and must adopt the returned value for every subsequent request.
The rotation is recorded in the CloudWatch audit log (api / ApiTokenGenerated).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Before you call this
This rotates the token you are calling with. The previous token stops working the moment this call succeeds, so a client that calls this endpoint invalidates its own credentials and must adopt the returned value for every subsequent request.
curl -X POST 'https://apis.elai.io/api/v1/generateToken' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
{
"token": "hR4pZ0uK2mN8vX1cQ7bT5yL3wS6dF9gJ"
}
