The account of this API key
GET
/account
const url = 'https://api.europlaybook.com/v1/account';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.europlaybook.com/v1/account \ --header 'Authorization: Bearer <token>'The account the API key belongs to, the key’s name and the scopes in force now. Any scope. Use it to check a key.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
AccountOut
object
id
required
Id
The account (brand) this API key belongs to.
string format: uuid
name
required
Name
Account name.
string
plan
required
Plan
Subscription plan.
string
token_name
required
Token Name
Name of the API key making this call.
string
token_prefix
required
Token Prefix
Public prefix of the API key (ep_<prefix>_…).
string
scopes
required
Scopes
Scopes in force for this key now: its own scopes limited by its creator’s current role.
Array<string>
Example
{ "id": "0199f5a2-7c1e-7b4a-9d0e-3f6c2a1b8e44", "name": "Demo Garden", "plan": "pilot", "token_name": "Shopify sync", "token_prefix": "k3x9a2mf", "scopes": [ "catalogue:read", "sales:write" ]}Bad Request
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Unauthorized
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Forbidden
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Not Found
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Conflict
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Unprocessable Content
Media typeapplication/json
PublicValidationErrorOut
object
detail
required
Detail
What went wrong, in English, for people and logs.
string
code
required
Code
Stable machine-readable error code; translate and branch on this.
string
errors
Errors
Per-field problems (pydantic format: loc, msg, type).
Array<object>
object
key
additional properties
any
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }, "errors": []}Too Many Requests
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}