LaTeX API
Apiaccount

Create a personal API token

POST
/v1/tokens

The secret is returned once. Tokens last until revoked or until expiresInDays.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A personal API token (lta_...) from the dashboard or latex-api auth login. Also accepted in the X-API-Key header.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
expiresInDays?|

Omit or null for a token that never expires.

Range1 <= value <= 3650

Response Body

Created

application/json
  1. response
token*string

The secret. Shown once; store it now.

apiToken*
Example Request
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"  }}