Get token

get /web/Token

This endpoint is used to retrieve or create a token for a store and user.

Requirements

Authentication Required
Bearer access_token
Request Headers
Authorization: Bearer access_token
Parameter Name Type Description
email string, optional User’s email address.
firstName string, optional User’s first name.
lastName string, optional User’s last name.
createOnly boolean Default: false. If true, only creates a new token; if false, retrieves existing token if available.
urlId string (uuid) Unique URL identifier.
adminUrl string, optional Admin URL of the store.
storeId string, optional Store identifier.
publicDomain string, optional Public domain name of the store.

Response

200
//Success — token successfully retrieved or created.