DocslothAPI tokens
checking session

API tokens

API tokens displays real server state with a next action, not placeholder statistics.

API tokens

Personal tokens for the CLI and API. Revoking a token takes effect immediately.

Loading…

Use a token

Send the token as a bearer credential. Keep it out of source control.

export DOCSLOTH_TOKEN="<token>"
# CLI (until it is published, run it from the checkout with npx --yes "$CLI")
docsloth auth login --token "$DOCSLOTH_TOKEN" --org <org-id> --api https://app.docsloth.com
# API
curl -H "Authorization: Bearer $DOCSLOTH_TOKEN" https://app.docsloth.com/v1/me

Create API token

Name the token, list its scopes and choose an expiry. The plaintext value is shown once, after creation.

Revoke API token