> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.joincandidhealth.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.joincandidhealth.com/_mcp/server.

# Get Eligibility Timeline

GET https://pre-api.joincandidhealth.com/patients/v1/{id}/eligibility-timeline

Gets a patient's eligibility audit timeline, newest-first.  Org-scoped and keyset-paginated.

Reference: https://docs.joincandidhealth.com/api-reference/pre-encounter/patients/v-1/get-eligibility-timeline

## Authentication

- OAuth2 — send the obtained token as `Authorization: Bearer <token>`

## Servers

- `https://pre-api.joincandidhealth.com` (Production, default)
- `https://pre-api-staging.joincandidhealth.com` (Staging)
- `https://sandbox-pre-api.joincandidhealth.com` (CandidSandbox)
- `https://staging-pre-api.joincandidhealth.com` (CandidStaging)
- `http://localhost:4000` (Local)

## Request

### Path parameters

- `id` (string, required) — The unique identifier for a Patient

### Query parameters

- `event_types` (enum, optional)
  - Allowed values: `APPOINTMENT_STATUS_CHANGED`, `APPOINTMENT_WORK_QUEUE_CHANGED`, `APPOINTMENT_COPAY_UPDATED`, `COVERAGE_CREATED`, `COVERAGE_UPDATED`, `ELIG_CHECK_COMPLETED`, `PATIENT_TAGS_UPDATED`
- `coverage_id` (UUID, optional) — The unique identifier for a Coverage in the database
- `appointment_id` (string, optional) — The unique identifier for an Appointment.
- `page_token` (string, optional) — A token that can be used to retrieve the next or previous page of results
- `limit` (integer, optional)

## Response

### 200

- `items` (list of EligibilityTimelineEvent, required)
- `total` (integer, required)
- `next_page_token` (string, optional) — A token that can be used to retrieve the next or previous page of results
- `prev_page_token` (string, optional) — A token that can be used to retrieve the next or previous page of results

## Types

### EligibilityTimelineEvent

A single eligibility audit event.

- `id` (string, required)
- `event_type` (enum, required)
  - Allowed values: `APPOINTMENT_STATUS_CHANGED`, `APPOINTMENT_WORK_QUEUE_CHANGED`, `APPOINTMENT_COPAY_UPDATED`, `COVERAGE_CREATED`, `COVERAGE_UPDATED`, `ELIG_CHECK_COMPLETED`, `PATIENT_TAGS_UPDATED`
- `patient_id` (string, required) — The unique identifier for a Patient
- `timestamp` (datetime, required)
- `user_id` (string, required)
- `user_name` (string, required) — Actor display name; "Candid Health" for automated writes.
- `payload` (map from string to any, required) — Event-type-specific payload.
- `coverage_id` (UUID, optional) — The unique identifier for a Coverage in the database
- `appointment_id` (string, optional) — The unique identifier for an Appointment.
- `appointment_date` (datetime, optional)

## Examples

**Response**

```json
{
  "items": [
    {
      "id": "id",
      "event_type": "APPOINTMENT_STATUS_CHANGED",
      "patient_id": "patient_id",
      "timestamp": "2024-01-15T09:30:00Z",
      "user_id": "user_id",
      "user_name": "user_name",
      "payload": {
        "payload": {
          "key": "value"
        }
      },
      "coverage_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
      "appointment_id": "appointment_id",
      "appointment_date": "2024-01-15T09:30:00Z"
    },
    {
      "id": "id",
      "event_type": "APPOINTMENT_STATUS_CHANGED",
      "patient_id": "patient_id",
      "timestamp": "2024-01-15T09:30:00Z",
      "user_id": "user_id",
      "user_name": "user_name",
      "payload": {
        "payload": {
          "key": "value"
        }
      },
      "coverage_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
      "appointment_id": "appointment_id",
      "appointment_date": "2024-01-15T09:30:00Z"
    }
  ],
  "total": 1,
  "next_page_token": "next_page_token",
  "prev_page_token": "prev_page_token"
}
```

**SDK Code**

```python
import requests

url = "https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline"

headers = {"Authorization": "<token>."}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline';
const options = {method: 'GET', headers: {Authorization: '<token>.'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<token>.")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<token>.'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline")
  .header("Authorization", "<token>.")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline', [
  'headers' => [
    'Authorization' => '<token>.',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<token>.");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<token>."]

let request = NSMutableURLRequest(url: NSURL(string: "https://pre-api.joincandidhealth.com/patients/v1/id/eligibility-timeline")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```