POST
/
orgs
Create a new organization
curl --request POST \
  --url https://api.withampersand.com/v1/orgs \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "label": "org-123"
}'
{
  "id": "9f7c3e2a-61b8-4f5c-8d1a-eb24f3b05d79",
  "label": "Acme Inc",
  "defaultTeamId": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "updateTime": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
label
string
required

The organization label.

Example:

"org-123"

Response

The newly created org

id
string
required

The organization ID.

Example:

"9f7c3e2a-61b8-4f5c-8d1a-eb24f3b05d79"

label
string
required

The organization label.

Example:

"Acme Inc"

defaultTeamId
string
required

The ID of the Everyone team for the org.

createTime
string<date-time>
required

The time the organization was created.

updateTime
string<date-time>

The time the organization was updated.