Skip to main content
POST
/
organizations
/
setup
Set up an organization for an authenticated user
curl --request POST \
  --url http://localhost:3000/organizations/setup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orgName": "<string>",
  "billingEmail": "jsmith@example.com"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "membershipId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organization": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "subscription_status": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

price
string
product
string

Body

application/json
orgName
string
required
Minimum string length: 2
billingEmail
string<email>

Response

Default Response

statusCode
number
message
string
default:OK
data
object