Skip to main content
POST
/
api
/
canary
/
authentication
/
organization
/
create
Create Organization
curl --request POST \
  --url http://localhost:3000/api/canary/authentication/organization/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Acme Corp",
  "slug": "acme-corp",
  "logo": "https://example.com/logo.png",
  "metadata": {
    "plan": "pro"
  }
}
'
{
  "statusCode": 400,
  "message": [
    "Invalid input data"
  ],
  "error": "Bad Request"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

The name of the organization

Example:

"Acme Corp"

slug
string
required

The slug of the organization

Example:

"acme-corp"

The logo of the organization

Example:

"https://example.com/logo.png"

metadata
object

Metadata for the organization

Example:
{ "plan": "pro" }

Response

Organization created successfully