Skip to content

Create Organization

Create a new organization. The creator is automatically added as a member of the organization.

Endpoint

POST https://api.recoupable.com/api/organizations

Request Body

NameTypeRequiredDescription
namestringYesThe name of the organization to create
accountIdstringYesThe account ID of the creator

Request Examples

cURL
curl -X POST "https://api.recoupable.com/api/organizations" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My New Label",
    "accountId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Response Format

{
  "status": "success",
  "organization": {
    "id": "new-org-uuid",
    "name": "My New Label"
  }
}
{
  "status": "error",
  "message": "name and accountId are required"
}

Response Properties

PropertyTypeDescription
statusstringStatus of the request ("success" or "error")
organizationobjectThe created organization
organization.idstringUUID of the new organization account
organization.namestringName of the organization
messagestringError message (only present if status is "error")

What Happens

When you create an organization:

  1. A new account is created for the organization
  2. An account_info record is created for org settings
  3. The creator is added as a member via account_organization_ids

Next Steps

After creating an organization, you can: