API Token
A legacy CLI/MCP bearer token (`drop_…`). Shown only once at creation. New auth uses Cognito SSO; tokens remain for backwards compatibility.
An API Token is a long-lived bearer credential for the CLI and MCP server. Tokens are prefixed drop_ and stored only as a SHA-256 hash — the plaintext is shown exactly once at creation. Today, drop login provisions Cognito JWTs via OAuth + PKCE (auto-refreshing in ~/.drop/credentials.json); API tokens are the legacy path, accepted alongside JWTs until the LEGACY_TOKEN_CUTOFF_DATE. Prefer drop login for new setups.
The API Token object
Every API Token carries these attributes.
Attributes
"CLI Token". Helps identify which token to revoke when you no longer need it.null until the token is used for the first time.More attributes+ Show 2− Hide
tokenId when revoking via Revoke.{
"id": "clxtok1...",
"userId": "usr_alex",
"name": "CI deploy token",
"lastUsed": "2026-06-02T08:42:00.000Z",
"expiresAt": "2027-06-01T00:00:00.000Z",
"createdAt": "2026-06-01T00:00:00.000Z"
}Methods
Endpoints to operate on a API Token. The example switches between curl, drop CLI, and MCP via the dropdown — your choice persists across the page.
List tokens
List your own API tokens. Token hashes and raw values are never returned — only metadata (name, lastUsed, createdAt). Session auth only (the web UI). Token-authenticated callers cannot list other tokens.
# Not yet in the CLI — manage tokens at /settings in the dashboard.{
"tokens": [
{
"id": "clxtok1...",
"name": "CI deploy token",
"lastUsed": "2026-06-02T08:42:00.000Z",
"createdAt": "2026-06-01T00:00:00.000Z"
}
]
}Create a token
Generate a new API token. The raw token is returned only once in the response — store it immediately (a password manager or your CI secret store). Tokens are prefixed drop_, hashed at rest, and default to a 1-year expiry. Session auth only. For most workflows, prefer drop login (which provisions auto-refreshing Cognito JWTs and writes them to ~/.drop/credentials.json).
# Not yet in the CLI — create tokens at /settings in the dashboard.
# For everyday use, prefer:
drop login{
"token": "drop_Abc123Def456Ghi789...",
"name": "CI deploy token"
}Revoke a token
Revoke a token by id. The token stops working immediately for CLI and MCP auth. Use this if a token leaked or a CI environment was decommissioned.
# Not yet in the CLI — revoke tokens at /settings in the dashboard.{
"success": true
}