Check credentials
GET
/v1/meReturns the company, scopes and type of these credentials. Needs no scope, so use it to test a key or token.
Errors
401Invalid or missing authentication403Missing scope, or the company is archived404The resource does not exist in this company429Rate limit exceeded
Every error has the same shape. See Errors.
curl https://api.numina.app/v1/me \
-H "Authorization: Bearer numi_YOUR_API_KEY"const response = await fetch("https://api.numina.app/v1/me", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.NUMINA_API_KEY}`,
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://api.numina.app/v1/me",
headers={
"Authorization": f"Bearer {os.environ['NUMINA_API_KEY']}",
},
)
data = response.json()Response
{
"user": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "string",
"first_name": "string",
"last_name": "string"
},
"company": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "string",
"slug": "string"
},
"scopes": [
"contacts:read",
"invoices:read"
],
"auth_type": "oauth"
}