Skip to main content
POST
/
api
/
organizations
cURL
curl --request POST \
  --url https://recoup-api.vercel.app/api/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My New Label",
  "accountId": "123e4567-e89b-12d3-a456-426614174000"
}
'
{
  "status": "success",
  "organization": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Organization creation parameters

name
string
required

The name of the organization to create

Example:

"My New Label"

accountId
string<uuid>
required

The account ID of the creator

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Organization created successfully

status
enum<string>
required

Status of the request

Available options:
success
organization
object
required

The created organization