Skip to content

View user information

Request

A view to retrieve current user details.

Security
Api-Key
curl -i -X GET \
  https://api-v2.forager.ai/api/users/current/ \
  -H 'X-API-KEY: YOUR_API_KEY_HERE'

Responses

Bodyapplication/json
idintegerread-onlyrequired
usernamestring, <= 150 characters^[\w.@+-]+$required

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

emailstring, (email), <= 254 characters(Email address)required
first_namestring, <= 150 characters
last_namestring, <= 150 characters
accountsArray of objects(Account)read-onlyrequired
Response
{ "id": 0, "username": "string", "email": "user@example.com", "first_name": "string", "last_name": "string", "accounts": [ { … } ] }