Skip to content

User

IPMonitor's User API provides an endpoint for retrieving information about the currently authenticated user. This documentation outlines the purpose, request, and response format of the User API endpoint.

Retrieve Authenticated User Details

GET /api/v1/user

This endpoint is designed to fetch details about the user who is currently authenticated via the API.

bash
curl -X 'GET' \
  'http://ipmonitor.mydomain.com/api/v1/user' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer api_token_here'
curl -X 'GET' \
  'http://ipmonitor.mydomain.com/api/v1/user' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer api_token_here'
json
{
  "id": 1,
  "name": "John",
  "email": "[email protected]",
  "project_id": 1
}
{
  "id": 1,
  "name": "John",
  "email": "[email protected]",
  "project_id": 1
}

Response Status Codes:

  • 200 Success
  • 401 Unauthorized
  • 403 Forbidden