Me
Self-service endpoints for authenticated users. Export personal data for GDPR compliance.
Delete current user and all associated data (GDPR Article 17 - Right to Erasure)
Authorization
api_key API key authentication using Bearer token format
In: header
Response Body
application/json
application/json
application/json
curl -X DELETE "https://loading/admin/v1/me"{
"api_keys_deleted": 0,
"conversations_deleted": 0,
"deleted": true,
"dynamic_providers_deleted": 0,
"usage_records_deleted": 0,
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}List current user's API keys
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Maximum number of results to return
int64Cursor for keyset pagination. Encoded as base64 string.
Pagination direction: "forward" (default) or "backward".
Include soft-deleted records in results
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/api-keys"{
"data": [
{
"allowed_models": [
"string"
],
"budget_limit_cents": 0,
"budget_period": {},
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ip_allowlist": [
"string"
],
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"rate_limit_rpm": 0,
"rate_limit_tpm": 0,
"revoked_at": "2019-08-24T14:15:22Z",
"rotated_from_key_id": "4020a89e-8741-4a95-bbec-f0b312e899f2",
"rotation_grace_until": "2019-08-24T14:15:22Z",
"scopes": [
"string"
],
"sovereignty_requirements": {}
}
],
"pagination": {
"has_more": true,
"limit": 100,
"next_cursor": "MTczMzU4MDgwMDAwMDphYmMxMjM0NS02Nzg5LTAxMjMtNDU2Ny0wMTIzNDU2Nzg5YWI",
"prev_cursor": "string"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Create an API key for the current user
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
Allowed models (null = all models)
Budget limit in cents
int64date-timeIP allowlist in CIDR notation (null = all IPs)
Requests per minute override
int32Tokens per minute override
int32Permission scopes (null = full access)
Response Body
application/json
application/json
application/json
curl -X POST "https://loading/admin/v1/me/api-keys" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"allowed_models": [
"string"
],
"budget_limit_cents": 0,
"budget_period": {},
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ip_allowlist": [
"string"
],
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"rate_limit_rpm": 0,
"rate_limit_tpm": 0,
"revoked_at": "2019-08-24T14:15:22Z",
"rotated_from_key_id": "4020a89e-8741-4a95-bbec-f0b312e899f2",
"rotation_grace_until": "2019-08-24T14:15:22Z",
"scopes": [
"string"
],
"sovereignty_requirements": {},
"key": "string"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Get an API key by ID (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
API key ID
uuidResponse Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"allowed_models": [
"string"
],
"budget_limit_cents": 0,
"budget_period": {},
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ip_allowlist": [
"string"
],
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"rate_limit_rpm": 0,
"rate_limit_tpm": 0,
"revoked_at": "2019-08-24T14:15:22Z",
"rotated_from_key_id": "4020a89e-8741-4a95-bbec-f0b312e899f2",
"rotation_grace_until": "2019-08-24T14:15:22Z",
"scopes": [
"string"
],
"sovereignty_requirements": {}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Revoke an API key (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
API key ID
uuidResponse Body
application/json
curl -X DELETE "https://loading/admin/v1/me/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Rotate an API key (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
API key ID to rotate
uuidRequest Body
application/json
Grace period in seconds during which both old and new keys are valid. Default: 86400 (24 hours). Maximum: 604800 (7 days).
int640 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://loading/admin/v1/me/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate" \ -H "Content-Type: application/json" \ -d '{}'{
"allowed_models": [
"string"
],
"budget_limit_cents": 0,
"budget_period": {},
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ip_allowlist": [
"string"
],
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"rate_limit_rpm": 0,
"rate_limit_tpm": 0,
"revoked_at": "2019-08-24T14:15:22Z",
"rotated_from_key_id": "4020a89e-8741-4a95-bbec-f0b312e899f2",
"rotation_grace_until": "2019-08-24T14:15:22Z",
"scopes": [
"string"
],
"sovereignty_requirements": {},
"key": "string"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}List built-in providers from the gateway configuration
Authorization
api_key API key authentication using Bearer token format
In: header
Response Body
application/json
curl -X GET "https://loading/admin/v1/me/built-in-providers"{
"data": [
{
"base_url": "string",
"name": "string",
"provider_type": "string"
}
]
}Export current user's data (GDPR Article 15 - Right of Access)
Authorization
api_key API key authentication using Bearer token format
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://loading/admin/v1/me/export"{
"api_keys": [
{
"budget_limit_cents": 0,
"budget_period": "string",
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key_prefix": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"name": "string",
"revoked_at": "2019-08-24T14:15:22Z"
}
],
"audit_logs": [
{
"action": "string",
"actor_id": "04f37679-bfbf-4906-b749-01756515cecf",
"actor_type": "user",
"details": null,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ip_address": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
"resource_type": "string",
"timestamp": "2019-08-24T14:15:22Z",
"user_agent": "string"
}
],
"conversations": [
{
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"messages": [
{
"content": "string",
"role": "string"
}
],
"models": [
"string"
],
"owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
"owner_type": "project",
"pin_order": 0,
"title": "string",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"exported_at": "2019-08-24T14:15:22Z",
"memberships": {
"organizations": [
{
"joined_at": "2019-08-24T14:15:22Z",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"org_name": "string",
"org_slug": "string",
"role": "string",
"source": "manual"
}
],
"projects": [
{
"joined_at": "2019-08-24T14:15:22Z",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
"project_name": "string",
"project_slug": "string",
"role": "string",
"source": "manual"
}
],
"teams": [
{
"joined_at": "2019-08-24T14:15:22Z",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"role": "string",
"source": "manual",
"team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba",
"team_name": "string",
"team_slug": "string"
}
]
},
"sessions": [
{
"created_at": "2019-08-24T14:15:22Z",
"device_description": "string",
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ip_address": "string",
"last_activity": "2019-08-24T14:15:22Z"
}
],
"usage_summary": {
"first_request_at": "2019-08-24T14:15:22Z",
"last_request_at": "2019-08-24T14:15:22Z",
"request_count": 0,
"total_cost_microcents": 0,
"total_tokens": 0
},
"user": {
"created_at": "2019-08-24T14:15:22Z",
"email": "string",
"external_id": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}List current user's dynamic providers
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Maximum number of results to return
int64Cursor for keyset pagination. Encoded as base64 string.
Pagination direction: "forward" (default) or "backward".
Include soft-deleted records in results
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/providers"{
"data": [
{
"base_url": "string",
"config": null,
"created_at": "2019-08-24T14:15:22Z",
"has_api_key": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_enabled": true,
"models": [
"string"
],
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"provider_type": "string",
"sovereignty": {},
"updated_at": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"has_more": true,
"limit": 100,
"next_cursor": "MTczMzU4MDgwMDAwMDphYmMxMjM0NS02Nzg5LTAxMjMtNDU2Ny0wMTIzNDU2Nzg5YWI",
"prev_cursor": "string"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Create a dynamic provider for the current user
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
Raw API key (stored in secrets manager if available, otherwise stored directly)
Base URL for the provider (required for OpenAI/Anthropic/Azure, optional for Bedrock/Vertex)
Provider-specific configuration (e.g., region, credentials for Bedrock/Vertex)
List of supported model names
Provider type (e.g., "openai", "anthropic", "bedrock", "vertex")
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://loading/admin/v1/me/providers" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "provider_type": "string" }'{
"base_url": "string",
"config": null,
"created_at": "2019-08-24T14:15:22Z",
"has_api_key": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_enabled": true,
"models": [
"string"
],
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"provider_type": "string",
"sovereignty": {},
"updated_at": "2019-08-24T14:15:22Z"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Test credentials before creating a provider
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
Raw API key (stored in secrets manager if available, otherwise stored directly)
Base URL for the provider (required for OpenAI/Anthropic/Azure, optional for Bedrock/Vertex)
Provider-specific configuration (e.g., region, credentials for Bedrock/Vertex)
List of supported model names
Provider type (e.g., "openai", "anthropic", "bedrock", "vertex")
Response Body
application/json
application/json
curl -X POST "https://loading/admin/v1/me/providers/test-credentials" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "provider_type": "string" }'{
"latency_ms": 0,
"message": "string",
"status": "string"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Get a dynamic provider by ID (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Dynamic provider ID
uuidResponse Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"base_url": "string",
"config": null,
"created_at": "2019-08-24T14:15:22Z",
"has_api_key": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_enabled": true,
"models": [
"string"
],
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"provider_type": "string",
"sovereignty": {},
"updated_at": "2019-08-24T14:15:22Z"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Update a dynamic provider (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Dynamic provider ID
uuidRequest Body
application/json
Raw API key (stored in secrets manager if available, otherwise stored directly)
Provider-specific configuration (e.g., region, credentials for Bedrock/Vertex)
List of supported model names
Response Body
application/json
application/json
curl -X PATCH "https://loading/admin/v1/me/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"base_url": "string",
"config": null,
"created_at": "2019-08-24T14:15:22Z",
"has_api_key": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_enabled": true,
"models": [
"string"
],
"name": "string",
"owner": {
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"type": "organization"
},
"provider_type": "string",
"sovereignty": {},
"updated_at": "2019-08-24T14:15:22Z"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Delete a dynamic provider (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Dynamic provider ID
uuidResponse Body
application/json
curl -X DELETE "https://loading/admin/v1/me/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Test connectivity for a dynamic provider (current user only)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Dynamic provider ID
uuidResponse Body
application/json
application/json
curl -X POST "https://loading/admin/v1/me/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/test"{
"latency_ms": 0,
"message": "string",
"status": "string"
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}List current user's active sessions.
Authorization
api_key API key authentication using Bearer token format
In: header
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/sessions"{
"current_session_id": "d988c88f-5c99-433f-a9ad-20df4ed60745",
"data": [
{
"created_at": "2019-08-24T14:15:22Z",
"device": {},
"expires_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"last_activity": "2019-08-24T14:15:22Z"
}
],
"enhanced_enabled": true
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Revoke a specific session belonging to the current user.
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Session ID to revoke
uuidResponse Body
application/json
application/json
application/json
curl -X DELETE "https://loading/admin/v1/me/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"sessions_revoked": 0
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Get current user's usage summary
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/usage"{
"audio_seconds": 0,
"character_count": 0,
"first_request_at": "string",
"image_count": 0,
"input_tokens": 0,
"last_request_at": "string",
"output_tokens": 0,
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Get current user's usage by date
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-date"[
{
"audio_seconds": 0,
"character_count": 0,
"date": "string",
"image_count": 0,
"input_tokens": 0,
"output_tokens": 0,
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Get current user's usage by date and model
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-date-model"[
{
"audio_seconds": 0,
"character_count": 0,
"date": "string",
"image_count": 0,
"input_tokens": 0,
"model": "string",
"output_tokens": 0,
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]Get current user's usage by date and pricing source
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-date-pricing-source"[
{
"audio_seconds": 0,
"character_count": 0,
"date": "string",
"image_count": 0,
"input_tokens": 0,
"output_tokens": 0,
"pricing_source": "string",
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]Get current user's usage by date and provider
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-date-provider"[
{
"audio_seconds": 0,
"character_count": 0,
"date": "string",
"image_count": 0,
"input_tokens": 0,
"output_tokens": 0,
"provider": "string",
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]Get current user's usage by model
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-model"[
{
"audio_seconds": 0,
"character_count": 0,
"image_count": 0,
"input_tokens": 0,
"model": "string",
"output_tokens": 0,
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}Get current user's usage by pricing source
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-pricing-source"[
{
"audio_seconds": 0,
"character_count": 0,
"image_count": 0,
"input_tokens": 0,
"output_tokens": 0,
"pricing_source": "string",
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]Get current user's usage by provider
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Response Body
application/json
application/json
curl -X GET "https://loading/admin/v1/me/usage/by-provider"[
{
"audio_seconds": 0,
"character_count": 0,
"image_count": 0,
"input_tokens": 0,
"output_tokens": 0,
"provider": "string",
"request_count": 0,
"total_cost": 0.1,
"total_tokens": 0
}
]{
"error": {
"code": "budget_exceeded",
"message": "Budget limit exceeded for monthly period",
"param": null,
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "invalid_request_error"
}
}List current user's usage logs
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
uuiduuiduuiduuiduuiduuiddate-timedate-timeint64Response Body
application/json
curl -X GET "https://loading/admin/v1/me/usage/logs"{
"data": [
{
"api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd",
"audio_seconds": 0,
"cached_tokens": 0,
"cancelled": true,
"character_count": 0,
"cost": 0.1,
"finish_reason": "string",
"http_referer": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"image_count": 0,
"input_tokens": 0,
"latency_ms": 0,
"model": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"output_tokens": 0,
"pricing_source": "string",
"project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
"provider": "string",
"provider_source": "string",
"reasoning_tokens": 0,
"recorded_at": "string",
"request_id": "string",
"service_account_id": "81f92c7b-60ae-411e-bc6f-e2dc93db8886",
"status_code": 0,
"streamed": true,
"team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
],
"pagination": {
"has_more": true,
"limit": 100,
"next_cursor": "MTczMzU4MDgwMDAwMDphYmMxMjM0NS02Nzg5LTAxMjMtNDU2Ny0wMTIzNDU2Nzg5YWI",
"prev_cursor": "string"
}
}Export current user's usage logs
Authorization
api_key API key authentication using Bearer token format
In: header
Query Parameters
uuiduuiduuiduuiduuiduuiddate-timedate-timeExport format for usage logs
"csv" | "jsonl"Response Body
application/x-ndjson
curl -X GET "https://loading/admin/v1/me/usage/logs/export"