POST /companies/{companyId}/apiCredentials

Creates an API credential for the company account identified in the path. In the request, you can specify which merchant accounts the new API credential will have access to, as well as its roles and allowed origins.

The response includes several types of authentication details:

Make sure you store the API key securely in your system. You won't be able to retrieve it later.

If your API key is lost or compromised, you need to generate a new API key.

To make this request, your API credential must have the following roles:

Servers

Path parameters

Name Type Required Description
companyId String Yes

The unique identifier of the company account.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
description String No

Description of the API credential.

associatedMerchantAccounts[] Array No

List of merchant accounts that the API credential has access to.

roles[] Array No

List of roles for the API credential. Only roles assigned to 'ws@Company.' can be assigned to other API credentials.

allowedOrigins[] Array No

List of allowed origins for the new API credential.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.