ReferenceAPI

Get the current user

Get the user behind the token and each workspace they can use, with their role in it.

GET https://api.nevia.cloud/v1/me
curl -X GET "https://api.nevia.cloud/v1/me" \
  -H "Authorization: Bearer $TOKEN"
{
  "me": {
    "principal": {
      "id": "01d4cnjmn4fbb1r5btxb5mypv62",
      "auth": "email",
      "email": "ada@example.com",
      "name": "Ada Lovelace"
    },
    "workspaces": [
      {
        "id": "01d4cnjjq40hnnh0nwmkg35nv2h",
        "name": "acme",
        "role": "admin"
      },
      {
        "id": "01d4cnjjq40hnnh0nwmkg35nv3k",
        "name": "acme-staging",
        "role": "viewer"
      }
    ],
    "usage": {
      "computers": 3,
      "databases": 2
    },
    "limits": {
      "max_computers": 50,
      "max_databases": 20,
      "scope": "user"
    }
  }
}

Authorization

bearerAuth
Authorization Bearer <token>

Send the token in the Authorization: Bearer <token> header. See Authenticate.

In: header

Response

application/json

The caller's identity.