Skip to main content
GET
List Pats
Organization API keys (ak_…) are AnyCRM’s own credential type — see Authentication for how they differ from user personal access tokens. All eight PAT/key management endpoints are gated on the token-management scopes (pats:read, pats:create, pats:delete), which every default role carries.

Auth

Requires pats:read and an active organization. Results are filtered to the caller’s own user_id and, through row-level security, the token’s active organization. A caller holding organizations:manage (the admin role) instead gets every key in the organization, so an admin can revoke a departed member’s key — see Delete an Organization API Key. Keys owned by another member carry owner_user_id and owner_name; the admin’s own keys leave both null, so the two are always distinguishable.

Response

200 OK — a bare JSON array (no envelope), ordered newest-first.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

id
string
required
name
string
required
key_id
string
required
pat_key
string | null
expires_at
string | null
created_at
string | null
owner_user_id
string | null
owner_name
string | null