Skip to main content
POST
/
api
/
organizations
Create a new organization
curl --request POST \
  --url https://your-instance.example.com/api/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "phoneNumber": "<string>",
  "adminDetails": {
    "email": "<string>",
    "password": "<string>",
    "fullName": "<string>",
    "phoneNumber": "<string>",
    "designation": "<string>",
    "sinchPhoneNumber": "<string>"
  },
  "address": "<string>",
  "creds": {
    "anthropicApiKey": "<string>",
    "sinchServicePlanId": "<string>",
    "sinchApiToken": "<string>",
    "sinchMmsApiKey": "<string>",
    "sinchMmsServiceId": "<string>"
  }
}
'
{
  "message": "<string>",
  "data": {}
}

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
phoneNumber
string
required
adminDetails
object
required
address
string
creds
object

Response

Organization created

message
string
data
object