Token info

What the token you are holding is, and what it can do. The first call to make when something returns 403 and you do not know why.

The object#

FieldTypeDescription
tokenobjectThe token itself.
companyobjectThe one company this token acts in.
userobjectThe user it acts as.
scopesarray of MeScopeEvery scope on the token, sorted.

Endpoints#

GET/me 200401

What this token can do.

Returns the token, its company, its user and every scope on it. No scope is required - this is the endpoint you call when a token is not working. A scope whose feature is not active on the install comes back with usable: false and the feature named, which answers the most common "I granted the scope and still get 403" question without a support ticket.

When it fails
StatusCodeMeaning
401unauthorizedNo token, or not a valid one.
curl \
  'https://acme.nolapro.com/!/api/v2/me' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "scopes": [
        {
            "scope": "items:write",
            "resource": "items",
            "access": "write",
            "usable": true,
            "requires": "inventory",
            "reason": ""
        }
    ]
}