Who am I

​

The user behind the bearer token, their roles, the token’s kind and expiry, and which capability groups they can view or edit.

Responses

  • application/json
  • application/json
Request Example for get/me
curl https://api.weddingoperatingsystems.com/api/v1/me \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "email": "hello@example.com",
    "name": "string",
    "roles": [
      "string"
    ],
    "token": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "kind": "session",
      "expiresAt": null,
      "label": "string"
    },
    "can": {
      "additionalProperty": true
    }
  }
}