Get current user

GET /user

Gets the currently logged-in user

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • Unauthorized

  • 422 application/json

    Unexpected error

    Hide response attribute Show response attribute object
    • errors object Required
      Hide errors attribute Show errors attribute object
GET /user
curl \
 --request GET '/api/user' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "user": {
    "bio": "I work at State Farm.",
    "email": "jake@jake.jake",
    "image": null,
    "token": "jwt.token.here",
    "username": "jake"
  }
}
Response examples (422)
{
  "errors": {
    "body": [
      "string"
    ]
  }
}