Skip to main content
POST
/
api
/
v2
/
external
/
orgs
Create Org
curl --request POST \
  --url https://api.example.com/api/v2/external/orgs \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "slug": "<string>",
  "billing_email": "jsmith@example.com"
}
'
{
  "slug": "<string>",
  "name": "<string>",
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "billing_email": "<string>",
  "billing_details": {
    "billing_company_name": "<string>",
    "billing_address_line1": "<string>",
    "billing_address_line2": "<string>",
    "billing_city": "<string>",
    "billing_state": "<string>",
    "billing_postal_code": "<string>",
    "billing_country": "<string>",
    "billing_tax_id": "<string>",
    "billing_tax_id_type": "<string>"
  }
}

Body

application/json
name
string
required
Required string length: 1 - 100
slug
string | null

Optional. Auto-generated from name if omitted.

Required string length: 1 - 64
Pattern: ^[a-z0-9][a-z0-9-]*$
billing_email
string<email> | null

Response

Successful Response

slug
string
required
Required string length: 1 - 64
Pattern: ^[a-z0-9][a-z0-9-]*$
name
string
required
Required string length: 1 - 100
id
string
required
created_at
string<date-time>
required
billing_email
string | null
billing_details
OrgBillingDetails · object

An org's company billing details (stored in org_billing_details, 1:1 with the org). Synced onto the Stripe customer at checkout so they render on the generated invoice (Bill to / VAT). All optional — an org with none set falls back to Stripe's default (customer email only).