curl --request POST \
--url https://api.hyperline.co/v1/companies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Acme",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "CA",
"country": "FR"
}
}'
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Acme",
"logo_url": "<string>",
"favicon_url": "<string>",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "CA",
"country": "FR"
}
}
Create a new company to which the authentication token will have access to.
curl --request POST \
--url https://api.hyperline.co/v1/companies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Acme",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "CA",
"country": "FR"
}
}'
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Acme",
"logo_url": "<string>",
"favicon_url": "<string>",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "CA",
"country": "FR"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?