GET/v1/account/idGet current account id

Get the account id that belongs to the current session
headerAuthorizationAuthentication token (bearer token or API key).

Response

status200All ok, returned found account
status401Invalid authentication token
status403Insufficient rights
{
"id" : Number
}

Example: Get account id, using the current API context

GET/v1/account/id

headerAuthorizationBearer 27d9e3e3-c063-4338-9e7a-ea1bc4661cd0

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{
"id": 1
}