POST
/
customers
curl --request POST \
  --url https://base_url/api/v1/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "John Doe",
  "corporation_id": "b6d009b0-d174-463f-b030-94643c28e209"
}'
{
  "data": {
    "id": "b6d009b0-d174-463f-b030-94643c28e209",
    "corporation_id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
    "name": "John Doe",
    "created_at": 1727284490
  },
  "message": "Successfully created customer."
}

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

A display name for this customer.

Example:

"John Doe"

corporation_id
string
required

The unique identifier for a corporation this customer belongs to.

Example:

"b6d009b0-d174-463f-b030-94643c28e209"

Response

200
application/json
Information about the created customer
data
object
message
string
Example:

"Successfully created customer."