GET/profile

User Details

The GET /user endpoint retrieves the user's account details, including the number of calls consumed so far for the current month.

Responses

StatusMeaningDescriptionSchema
200OKSuccess
400Bad RequestRequest data failed validation(s)None
401UnauthorizedAuthentication Failed!None
429Too Many RequestsToo Many Requests.None
500Internal Server ErrorInternal Server ErrorNone

Code Samples

# You can also use wget
curl -X GET /api/v1/profile \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Example Response

200 Response
{
  "error": false,
  "user": {
    "name": {
      "first": "Flight",
      "last": "Rates",
      "full": "Flight Rates"
    },
    "_id": "6507eacf83f9b7f200e541ab",
    "_primaryAirline": "601bb896f764ad17a4b71e74",
    "targetSite": "http://localhost:3000/targetsite",
    "isTableau": true,
    "userName": "user@flightrates.com",
    "email": "user@flightrates.com",
    "isActiveStatus": true,
    "customerType": "demo",
    "validTill": "2025-03-20T00:00:00.000Z",
    "id": "6507eacf83f9b7f200e541ab"
  }
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.