Admin API / Mutations

createApiClient

Creates an API client for a storefront that the owner runs, and returns its publishable key. The key reads the catalogue and carts from the Marketplace API and signs customers in on redirectUris. It cannot call this API. The key is shown once: a repeat with the same idempotencyKey and input within 24 hours returns the same client and a null apiKey; after 24 hours the same key creates a second client. A repeat after deleteApiClient returns the deleted client with deletedAt set. A new key and its redirect URIs can take about 60 seconds to work. updateApiClientRedirectUris replaces the redirect URIs of a client, and deleteApiClient removes a client. No operation lists clients or rotates a key. Requires the OWNER role or higher.

Requires a client key with one of these scopes: admin:clients:manageRequires this member role or higher: OWNER
createApiClient(
  input: CreateApiClientInput!
): CreateApiClientPayload!

Arguments

ArgumentTypeDescription
inputCreateApiClientInput!The client to create.

Return type

CreateApiClientPayload!