POST
/
companies
curl --request POST \
  --url http://staging.api.commenda.io/api/v1/companies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Initech"
}'
{
  "id": "<string>",
  "name": "Initech"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

The name of the company to create

Example:

"Initech"

Response

200
application/json
Company created successfully
id
string

Unique identifier for this company.

name
string

The company's name.

Example:

"Initech"