Personal Access Token
Personal Access Token
A personal access token is the credential for automating your BeatAPI account. It carries your account’s permissions, so a script can read account data such as what each task or text request cost. Model, task and workflow requests still use an API key.
Personal access token or API key
Create, replace or revoke it
- Sign in to the Dashboard and open Account security.
- Choose Create personal token and complete the verification step.
- Copy the token. The full token is shown only once; closing the window removes it from the page.
- Store it as a secret where your automation runs, for example in
BEATAPI_PERSONAL_TOKEN.
Replace personal token issues a new token, and the previous one stops working immediately. Revoke personal token removes it, and tools that use it lose access at once. Both ask for verification. Keep the token on trusted servers: never put it in browser code, a mobile app or a shared repository.
Endpoints it can call
Send the token as Authorization: Bearer <token>. These endpoints need the usage:read permission, which the personal token includes. The two record endpoints refuse an API key with 403 forbidden; GET /v1/usage accepts either an API key or this token and returns the same summary. More account endpoints will accept this token over time.
Reconcile one task
Save data.id from the task-creation response, then look it up:
For a text request, use the request ID from the X-BeatAPI-Request-Id response header. When a text response body carries chatcmpl-<request ID> as its id, that value works as well. The request ID of a task’s creation call returns the same record as its task ID.
List usage records
While has_more is true, request the next page with cursor. An unknown parameter, a limit outside 1–100 or a timestamp in milliseconds is refused with 400 bad_request instead of being ignored.
The usage record
A task’s amounts match usage.credits_charged and usage.credits_refunded from GET /v1/tasks/{task_id}. When a task settles above or below its reserved amount, the record shows the settled total. You can read only your own records: another account’s ID returns 404 not_found.
Errors
Errors use the standard error object.

