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>" } }
Create a new organization. The creator is automatically added as a member of the organization.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Organization creation parameters
The name of the organization to create
"My New Label"
The account ID of the creator
"123e4567-e89b-12d3-a456-426614174000"
Organization created successfully
Status of the request
success
The created organization
Show child attributes