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"
}
}Create a new 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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Organization created successfully
Organization created successfully
Show child attributes
{
"id": "org_123",
"name": "Acme Corp",
"slug": "acme-corp"
}