Apiaccount
Create a personal API token
POST
The secret is returned once. Tokens last until revoked or until expiresInDays.
bearerAuthheader
AuthorizationBearer <token>A personal API token (lta_...) from the dashboard or latex-api auth login. Also accepted in the X-API-Key header.
application/json- body
name*stringLength
1 <= length <= 80expiresInDays?|Omit or null for a token that never expires.
Range
1 <= value <= 3650Created
application/json- response
token*stringThe secret. Shown once; store it now.
apiToken*curl -X POST 'https://latex-api.crafter.run/v1/tokens' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "token": "string", "apiToken": { "id": "string", "name": "string", "prefix": "string", "origin": "dashboard", "status": "active", "createdAt": "string", "expiresAt": "string", "lastUsedAt": "string", "revokedAt": "string" }}