Make your first GenHealth API request
Authenticate with a GenHealth API key and retrieve the first page of cases for your organization.
- 1
- 2
- 3
Understand the response
Successful list requests return a data array and pagination metadata. Store resource IDs from the response instead of depending on display text, which may change over time.
{
"data": [{ "id": "case_123", "status": "open" }],
"pagination": { "page": 1, "limit": 10, "has_more": false }
}Handle errors
| Status | Meaning | What to do |
|---|---|---|
| 401 | Credential was not accepted | Check the bearer token and its expiration |
| 404 | Resource was not found | Confirm the ID and organization access |
| 422 | Request parameters are invalid | Use the error details to correct the request |