Users API
Overview
The Users API will return a JSON that lists all users in your portal account.
Endpoint (6.7)
https://feed-api.ehawk.net/users/
The API accepts both HTTPS POST and HTTPS GET.
For GET use the format:
https://feed-api.ehawk.net/users/?keyword=value
GET API call example:
https://feed-api.ehawk.net/users/?apikey=your_PRIMARY_apikey
CRUL POST API call example:
curl -X POST -H Content-Type:application/x-www-form-urlencoded -d 'apikey=your_PRIMARY_apikey' https://feed-api.ehawk.net/users/
Keywords
The API call requires the Primary apikey.
| Keyword | Value and Format |
|---|---|
| apikey | Your Primary E-HAWK Vetting API KEY (required) |
JSON Response
The returned JSON wis in the following format:
{
"response": {
"account": {
"name": "E-Hawk Demo Account",
"count": 7
},
"users": [
{
"id": 2,
"email": "test@ehawk.net",
"firstname": "First",
"lastname": "Last",
"last_login": "2025-03-18 12:50:40",
"account_type": "admin"
},
{
"id": 6,
"email": "myemail@ehawk.net",
"firstname": "First",
"lastname": "Last",
"last_login": "2021-08-18 16:10:11",
"account_type": "standard"
}
]
},
"status": 200
}
Status Codes
| Status | Response |
|---|---|
| 200 | OK (no errors) |
| -6 | IP not in ACL |
| 502 | Invalid APIKEY or URL |
