Data schemas
Get an access token — Response
ApiResponse_TokenData_ · Fields, types and constraints of data accepted or returned by the API.
dataTokenDataRequiredResponse example · TokenData.
metaContextPageMetaContextMetaPageMetaRequestMetaRequiredResponse metadata.
Additional fields: No
Revoke token · ApiResponse
ApiResponse_TokenRevokedData_ · Fields, types and constraints of data accepted or returned by the API.
dataTokenRevokedDataRequiredResponse example · TokenRevokedData.
metaContextPageMetaContextMetaPageMetaRequestMetaRequiredResponse metadata.
Additional fields: No
Get an access token — Response
TokenData · Fields, types and constraints of data accepted or returned by the API.
access_tokenStringRequiredToken for the Authorization: Bearer header. Set SHOPENTLY_ACCESS_TOKEN before running the separate example.
expires_atStringRequiredExpiration time in UTC. Current access restrictions can block the token earlier.
format:"date-time"expires_inIntegerRequiredActual lifetime in seconds; this example requests 1800. Requests do not extend it. expires_at is the expiration time in UTC.
minimum:300maximum:3600permissionsArray <String> Requiredpermissions lists the current effective permissions: the intersection of the key, its author's permissions and the store plan, including active addon grants. Access is checked again on every request.
rate_limitsTokenRateLimitsDataRequiredEngine ≥ 4.143.0. Each token response includes data.rate_limits from the store policy at issuance. All keys share these budgets; a new token does not reset them. A plan change may apply before the token expires.
token_typeStringOptionalBearer. Authentication scheme for the returned token.
const:"Bearer"warningsArray <TokenLifetimeWarning> RequiredAn integer outside the range uses 900 seconds and returns warnings with token.ttl_out_of_range and a documentation_url on learn.shopently.com. Omission produces no warning; invalid types return 422.
Additional fields: No
TokenLifetimeWarning
TokenLifetimeWarning · An integer outside the range uses 900 seconds and returns warnings with token.ttl_out_of_range and a documentation_url on learn.shopently.com. Omission produces no warning; invalid types return 422.
applied_secondsIntegerOptional900 s (15 min)
codeStringOptionaltoken.ttl_out_of_range
const:"token.ttl_out_of_range"documentation_urlStringOptionalhttps://learn.shopently.com/en/api/docs/authentication/#token-lifetime
fieldStringOptionalttl_seconds
const:"ttl_seconds"max_secondsIntegerOptional3600 s (60 min)
messageStringOptionalAn integer outside the range uses 900 seconds and returns warnings with token.ttl_out_of_range and a documentation_url on learn.shopently.com. Omission produces no warning; invalid types return 422.
min_secondsIntegerOptional300 s (5 min)
Additional fields: No
Rate limits
TokenRateLimitsData · Engine ≥ 4.143.0. Each token response includes data.rate_limits from the store policy at issuance. All keys share these budgets; a new token does not reset them. A plan change may apply before the token expires. Zero means unavailable, not unlimited.
auth_per_minuteIntegerRequiredToken issuance and revocation requests per minute, including failed authentication attempts. Both operations share the auth budget.
minimum:0maximum:1000000read_per_minuteIntegerRequiredRead requests per minute.
minimum:0maximum:1000000write_per_minuteIntegerRequiredWrite requests per minute; this value does not grant write permissions.
minimum:0maximum:1000000
Additional fields: No
Get an access token — Request body
TokenRequest · Fields, types and constraints of data accepted or returned by the API.
ttl_secondsIntegerOptionalOptional integer ttl_seconds: 300–3600 seconds (5–60 minutes). If omitted, the default is 900 seconds (15 minutes).
Additional fields: No
Revoke token · TokenRevokeRequest
TokenRevokeRequest · Send POST /api/v1/auth/revoke with the issuing key in Authorization: ApiKey and the token in JSON access_token. After success, subsequent use returns 401. Repeated, unknown or foreign tokens return the same revoked: true; other keys' tokens are never deleted.
access_tokenStringRequiredSend POST /api/v1/auth/revoke with the issuing key in Authorization: ApiKey and the token in JSON access_token. After success, subsequent use returns 401. Repeated, unknown or foreign tokens return the same revoked: true; other keys' tokens are never deleted.
minLength:1maxLength:256
Additional fields: No
Revoke token · TokenRevokedData
TokenRevokedData · Send POST /api/v1/auth/revoke with the issuing key in Authorization: ApiKey and the token in JSON access_token. After success, subsequent use returns 401. Repeated, unknown or foreign tokens return the same revoked: true; other keys' tokens are never deleted.
revokedBooleanOptionalSend POST /api/v1/auth/revoke with the issuing key in Authorization: ApiKey and the token in JSON access_token. After success, subsequent use returns 401. Repeated, unknown or foreign tokens return the same revoked: true; other keys' tokens are never deleted.
const:true
Additional fields: No