Current user

GET /api/user returns the authenticated user. Use it to confirm which account a token belongs to before calling other endpoints.

The user model

Properties

  • Name
    id
    Type
    integer
    Description

    Unique identifier for the user.

  • Name
    name
    Type
    string
    Description

    The user's name.

  • Name
    email
    Type
    string
    Description

    The user's email address.


GET/api/user

Retrieve the current user

Requires a bearer token. The user must belong to a team. See Authentication.

Request

GET
/api/user
curl https://app.riskadvisor.insure/api/user \
  -H "Authorization: Bearer {token}" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 7,
    "name": "Frank McCallister",
    "email": "[email protected]"
  }
}