Make Your First API Request
Verify that your credentials are working correctly by retrieving your user information.
GET /api/auth/me — Get the currently authenticated user
bash
1
2
curl https://exacoola.innorix.com/api/auth/me \
-H "Authorization: Bearer <ACCESS_TOKEN>"
Response:
json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"status_code": 200,
"message": "success",
"data": {
"user": {
"userId": "usr_abc123",
"email": "user@example.com",
"userName": "User Name",
"state": 1,
"level": 1,
"apiKey": "a3f2c1..."
}
}
}
A 200 response indicates that authentication was successful. If you receive 401 Unauthorized, verify your Access Token and request headers.
Tip — Most resources are scoped to a workspace. Include the target Workspace ID in the
x-workspace-idheader when making resource requests.