commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Api-client → Create ApiClient

AI-generated

Summary

Create a new API client in the commercetools project with specified name, scope, access token validity, and refresh token validity.

Inputs

  • Name (required) — The name identifier for the new API client.
  • Scope (required) — The scope string defining permissions for the API client.
  • Access Token Validity Seconds (required) — The number of seconds the access token issued to this client will be valid.
  • Refresh Token Validity Seconds (required) — The number of seconds the refresh token issued to this client will be valid.

Output shape

a single JSON object representing the created API client, including its assigned details as returned by the commercetools API

If the creation fails, an error is thrown. The output contains the full JSON response from the API client creation endpoint in commercetools.

Links

Discussion