Skip to main content
POST
/
api
/
canary
/
authentication
/
organization
/
create
Create Organization
curl --request POST \
  --url https://api.cashful.africa/api/canary/authentication/organization/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Acme Corp",
  "slug": "acme-corp"
}
'
{
  "organization": {
    "id": "org_123",
    "name": "Acme Corp",
    "slug": "acme-corp"
  }
}

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://www.cashful.africa/logo.png"

metadata
object

Metadata for the organization

Example:
{ "plan": "pro" }

Response

Organization created successfully

organization
object
required

Organization created successfully

Example:
{
"id": "org_123",
"name": "Acme Corp",
"slug": "acme-corp"
}