tokens

Return one API token by id (metadata only).

Return one API token by id (metadata only).

Org permission: token:read.

get/v1/tokens/{token_id}

Request

  • Base URL: https://api.kody.codes
  • URL: https://api.kody.codes/v1/tokens/{token_id}
  • Auth: HTTP bearer

Path parameters

token_idstring required

API token id (path param on /v1/tokens/{token_id}).

Query parameters

idstring

Alias for token_id (same value as tokenList / tokenGet output id).

Response

Success.

idstring required
namestring required
org_idstring required

For org-bound tokens: the fixed org id. For user-owned tokens: the personal org id (placeholder; each request picks an org via ?org=).

org_binding'org' | 'user' required

org: fixed to org_id. user: person-owned; pass ?org=<slug> on each request (default personal org). Membership/grants are checked live.

scopesstring[] required
status'active' | 'expired' | 'revoked' required
idle_ttl_secondsinteger required
expires_atstring required

Sliding expiry. Each successful request pushes it forward.

max_expires_atstring required

Absolute expiry. The token never outlives it.

created_viastring required
created_atstring required
last_used_atstring nullable required
rotated_atstring nullable required
revoked_atstring nullable required
profile_namestring nullable required

Named connection profile this token is bound to, or null for unlimited.

Changes

No recorded changes to this operation across all 1 revision of this API.