Skip to main content
POST
/
platform
/
beta
/
organization
cURL
curl -X POST 'https://api.useautumn.com/v1/platform/beta/organization' \
-H 'Authorization: Bearer am_sk_test_...' \
-H 'Content-Type: application/json' \
-d '{
  "user_email": "tenant@example.com",
  "name": "Tenant Organization",
  "slug": "tenant-org",
  "env": "both"
}'
{
  "test_secret_key": "<string>",
  "live_secret_key": "<string>"
}
Creates a new organization for a platform tenant. If a user with the provided email already exists, it will be reused. If an organization with the slug already exists for this user, it will be reused.

Authorizations

Authorization
string
header
required

Autumn API key with Bearer prefix

Body

application/json
user_email
string<email>
required

Email address of the organization owner. User will be created if it doesn't exist.

name
string
required

Display name for the organization.

slug
string
required

Unique slug for the organization.

env
enum<string>
default:both

Environment(s) to create API keys for.

Available options:
test,
live,
both

Response

Organization created successfully

test_secret_key
string | null

Autumn test API key for the organization (if env is 'test' or 'both').

live_secret_key
string | null

Autumn live API key for the organization (if env is 'live' or 'both').

I