Create a company API key

Issue another API key for a client company.

Use this endpoint to create an API key for a company you created. The response contains the key once. Store it with the company's record in your system: it can't be retrieved again, and every later response shows it redacted. If you lose it, rotate the key to issue a replacement.

The key is the same kind of key as the one returned when you create the company. It begins with tsk_prod_2 for a Production company, or tsk_test_2 for a Sandbox company. Give each integration its own key, with a label that says what it is for, so you can rotate or retire one without touching the rest.

Errors

StatusMeaning
401The API key is missing, malformed or expired.
404No company with this ID belongs to your partner account.
412Custom API integrations aren't enabled for this company.
422label is missing, blank or too long.
📘

Part of Company API keys. Authenticate with your partner API key, as for every endpoint in this section: see Authentication.

Path Params
integer
required

The company's ID, as returned when the company was created.

Body Params
string
required

A label for the key. Up to 255 characters.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json