Zum Inhalt

Reference

Me

GET/api/v1/meWhoami

Returns the nxva.base user this agent acts as, the roles they hold, the client or access token it came in through, the scopes an access token was given, and the modules this nxva.base instance has booked. Call it first to see what the agent may do.

Response 200

userIdstring | null
namestring
rolesstring[]
channelstring
clientIdstring
labelstring
scopesstring[] | null
modulesstring[]
Schema
{
  "type": "object",
  "properties": {
    "userId": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "channel": {
      "type": "string"
    },
    "clientId": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "scopes": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "modules": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "userId",
    "name",
    "roles",
    "channel",
    "clientId",
    "label",
    "scopes",
    "modules"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.