Skip to main content
GET
https://api.unleeshed.ai
/
partner
/
v1
/
api-keys
curl -X GET "https://api.unleeshed.ai/partner/v1/api-keys" \
  -H "Authorization: Bearer YOUR_SUPABASE_JWT"
{
  "success": true,
  "data": [
    {
      "id": "key-abc-123",
      "name": "Production Server",
      "key_prefix": "pk_live_abc12",
      "scopes": ["topics:submit", "topics:read", "personas:read"],
      "created_at": "2026-01-15T10:00:00Z",
      "last_used_at": "2026-01-30T14:22:00Z"
    },
    {
      "id": "key-xyz-789",
      "name": "Development",
      "key_prefix": "pk_test_xyz78",
      "scopes": ["topics:submit", "topics:read", "personas:read"],
      "created_at": "2026-01-20T09:00:00Z",
      "last_used_at": null
    }
  ]
}
This endpoint requires Bearer authentication with your Supabase JWT, not an API key.

Response

data
array
Array of API key metadata (keys are masked).
curl -X GET "https://api.unleeshed.ai/partner/v1/api-keys" \
  -H "Authorization: Bearer YOUR_SUPABASE_JWT"
{
  "success": true,
  "data": [
    {
      "id": "key-abc-123",
      "name": "Production Server",
      "key_prefix": "pk_live_abc12",
      "scopes": ["topics:submit", "topics:read", "personas:read"],
      "created_at": "2026-01-15T10:00:00Z",
      "last_used_at": "2026-01-30T14:22:00Z"
    },
    {
      "id": "key-xyz-789",
      "name": "Development",
      "key_prefix": "pk_test_xyz78",
      "scopes": ["topics:submit", "topics:read", "personas:read"],
      "created_at": "2026-01-20T09:00:00Z",
      "last_used_at": null
    }
  ]
}