Skip to main content
GET
/
api-keys
curl https://api.rigbox.dev/api/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "api_keys": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Production Bot",
      "key_preview": "rb_...a1b2c3d4",
      "is_workspace_key": false,
      "created_at": "2025-01-15T10:30:00Z",
      "last_used_at": "2025-01-16T08:00:00Z"
    }
  ]
}

List API Keys

Returns all API keys belonging to the authenticated user. Only key previews are shown — the full key is only returned at creation time.
curl https://api.rigbox.dev/api/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "api_keys": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Production Bot",
      "key_preview": "rb_...a1b2c3d4",
      "is_workspace_key": false,
      "created_at": "2025-01-15T10:30:00Z",
      "last_used_at": "2025-01-16T08:00:00Z"
    }
  ]
}
api_keys
array
Array of API key objects