/api-keysThe answer is the only time the whole key is shown. It acts as you, limited to its scopes. You’re emailed a security notice.
collector.createMyApiKey()Idempotency-KeyX-Request-Idnamestringrequired1–80 characters
scopesarray of enumrequired1–40 items
catalog:readcollection:readcollection:writewishlist:readwishlist:writescans:writescans:readlabels:readlabels:writeinsights:readinsights:writeexports:readholds:readholds:writequestions:readquestions:writeaccount:readaccount:writeaccount:deletereports:writestores:readstores:writeassistant:usewebhooks:readwebhooks:writestore:readstore:inventory:readstore:inventory:writestore:holds:readstore:holds:writestore:questions:readstore:questions:writestore:storefront:writestore:staff:readstore:staff:writestore:billing:readstore:webhooks:readstore:webhooks:writeadmin:catalog:readadmin:catalog:writeadmin:moderation:readadmin:moderation:writeadmin:imports:readadmin:imports:writeadmin:users:readadmin:users:piiadmin:users:writeadmin:support:writeadmin:ops:readadmin:ops:writeadmin:webhooks:readadmin:webhooks:writeexpiresInDays"7" or "30" or "90" or "180" or "365" or nullDays until it stops working, or null for never. Admin keys must expire within 90 days.
default null
Option 1: "7"
Option 2: "30"
Option 3: "90"
Option 4: "180"
Option 5: "365"
ipAllowlistarray of string or nullAdmin keys only: the addresses or CIDR ranges it may be used from.
at most 20 items
201CreatedThe new key, shown once.
invalid_requestinvalid_jsoninvalid_idempotency_key
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
invalid_idempotency_key: The Idempotency-Key isn’t 1–255 visible ASCII characters.
unauthorized: Not signed in (no session or token, or an expired one).
idempotency_in_progresssecret_already_issuedtoo_many_keys
idempotency_in_progress: The first request with this key is still running.
secret_already_issued: A retry of a request that already succeeded: its secret is shown only once, so it isn’t answered again. issued is what was made; rotate it for a new secret.
too_many_keys: Already 25 active keys here: revoke one first.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
idempotency_key_reused: This key was used for a different request.
rate_limitedtemporarily_blocked
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
internal: Something went wrong on our side (quote the requestId).
api_keys_unavailable: This deployment isn’t set up for API keys.