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
}
]
}
List all API keys for your organization
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
}
]
}
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
}
]
}