AdminCreate a tenant

Create a tenant

Create a tenant. Superadmin key only.

curl -X POST "https://api.autopil.ai/v1/admin/tenants" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "name": "my_app"
}'
{
  "tenant_id": "ten_abc123",
  "admin_key": "apl_..."
}
POST
/v1/admin/tenants
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

Body

application/json

Responses