Your first API call
1. Create a personal access token
Sign in with your Falcata ID and open the API tokens page of the access-control app (https://access.falcata.dev/tokens). Create a token with a label. You can leave the scope at full authority or narrow it (see Personal access tokens).
The token starts with fpat_. It is shown exactly once: Furnace stores only a hash of it, so copy it now. If you lose it, revoke it and create another.
From a terminal you can get a token without the browser page: furnace auth login runs the device flow and saves the token locally. See Set up the furnace CLI.
Keep the token in a shell variable rather than pasting it into commands:
FURNACE_PAT='fpat_…'
2. Make the request
The API is served from https://api.falcata.io. Send the token in the Authorization header with the Bearer scheme:
curl -s https://api.falcata.io/api/v1/auth/whoami \
-H "Authorization: Bearer $FURNACE_PAT"
whoami returns the account the token resolves to. It is the one route that does not require API access, so it works even when other calls are refused and tells you which account and scope you are using.
3. Read the response
A successful call returns JSON with the result under data:
{
"data": {
"kind": "pat",
"email": "you@example.com",
"name": "Your Name"
}
}
When the token was minted with a scope, data.scope holds it.
A failed call returns JSON with an error message and an HTTP status that tells you what went wrong:
{ "error": "Unauthorized" }
| Status | Meaning |
|---|---|
| 401 | No bearer, or the token is unknown, revoked, expired or belongs to an account that is deactivated, banned, suspended or deleted. The response carries a WWW-Authenticate: Bearer challenge pointing at the OAuth protected-resource metadata. |
| 403 | The token is valid but may not do this: the account lacks API access for the route's mode (read or write), or a permission check refused it. The message starts with Permission denied for a permission refusal. |
| 429 | Too many calls from this caller. Wait for the number of seconds in Retry-After. |
| 500 | An unexpected error. The body says only Internal error. |
Errors about an Idempotency-Key on a write also carry a machine-readable code, for example idempotency_key_reuse. See REST API for the conventions every endpoint shares.
Next
- Browse the endpoints in the API reference.
GET https://api.falcata.io/api/v1returns an index with links to the OpenAPI document, the OAuth metadata and the MCP endpoint, without a token. - To revoke the token you just used, send
DELETE /api/v1/auth/tokenwith it as the bearer.