Get the user behind the token, each workspace they can use and each project they hold a grant on, with their role in each, including a workspace where they are a member scoped to projects (scope: projects).
curl -X GET "https://api.nevia.cloud/v1/me" \
-H "Authorization: Bearer $TOKEN"{
"me": {
"principal": {
"id": "01d4cnjmn4fbb1r5btxb5mypv62",
"auth": "email",
"email": "[email protected]",
"name": "Ada Lovelace"
},
"workspaces": [
{
"id": "01d4cnjjq40hnnh0nwmkg35nv2h",
"name": "acme",
"role": "admin",
"scope": "workspace"
},
{
"id": "01d4cnjjq40hnnh0nwmkg35nv3k",
"name": "globex",
"role": "editor",
"scope": "projects"
}
],
"projects": [
{
"id": "01ck8y1dm5qqnf88mytnh4m0h4g",
"name": "agent-evals",
"workspace": "01d4cnjjq40hnnh0nwmkg35nv3k",
"role": "editor"
}
],
"usage": {
"computers": 3,
"databases": 2
},
"limits": {
"max_resources": 20,
"max_computers": 20,
"max_databases": 20,
"scope": "user",
"max_destinations": 10
},
"unreported": {
"metrics": [
"network"
],
"used": [
"cpu",
"memory",
"disk"
],
"events": [
"command_finished"
],
"streams": [
"app"
],
"destinations": true
}
}
}Authorization
bearerAuth Send the token in the Authorization: Bearer <token> header. See Authenticate.
In: header
Behavior
usage counts your live computers and databases, including those your private keys created. limits.max_resources is the most you may have of both together. A private key gets the usage and limits of the user who created it. unreported is what this deployment does not report yet, the same as the metrics and logs answers carry, so a client can mark it coming soon on any page.
Response
application/jsonThe caller's identity.