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

# List programs records

GET https://app.defdex.io/api/v1/datasets/programs

Published programs collection. Existing generic route with a concrete dataset name. Requires data:read. Stable-key identity; ordered by id. q searches name, description. 

Reference: https://docs.defdex.io/api-reference/programs/list-programs-records

## Authentication

- `Authorization` header (bearer token, required) — Create a scoped key at https://app.defdex.io/developer/keys. Keep it private.

## Request

### Query parameters

- `limit` (integer, optional, default: 25) — Maximum records per page.
- `cursor` (string, optional) — Opaque next_cursor from the preceding page. Keep dataset, q and filters unchanged.
- `q` (string, optional) — Case-insensitive substring on available name, title, description, summary or recipient_name fields; no ranked or fuzzy search.
- `filters` (string, optional) — URL-encoded JSON object; exact equality on up to 12 published fields, AND-combined. Primitive or null values only; strings at most 500 characters. No range, array-containment, OR or sort operators. Allowed fields: id, entity_type, kind, code, slug, name, aliases, parent_id, agency_id, country, status, started_on, budget_lines, description, confidence, as_of, updated_at, image.

## Response

### 200

Success

- `data` (list of ProgramsRecord, required)
- `next_cursor` (string, required, nullable)
- `build_id` (string, required) — Publication observed for this response; compare across related reads.

## Errors

### 400 Bad Request Error

Invalid query, typed filter, cursor or query exceeds the database budget. Narrow exact filters.

- `error` (string, required)

### 401 Unauthorized Error

Missing, invalid or revoked key.

- `error` (string, required)

### 403 Forbidden Error

Key lacks the required scope.

- `error` (string, required)

### 404 Not Found Error

Unknown dataset, record or account-owned proposal.

- `error` (string, required)

### 409 Conflict Error

Build changed during a read, a build-scoped cursor expired, or an idempotency key conflicts.

- `error` (string, required)

### 429 Too Many Requests Error

Account request limit or correction submission limit reached.

- `error` (string, required)

### 503 Service Unavailable Error

Service temporarily unavailable.

- `error` (string, required)

## Types

### ProgramsRecord

- `record_id` (string, required) — Opaque lookup ID. Pass unchanged; do not substitute attributes.id or slug.
- `attributes` (ProgramsAttributes, required)

### ProgramsAttributes

- `id` (string, optional, nullable)
- `entity_type` (string, optional, nullable) — Published enum value. Treat new values as forward-compatible; see the resource guide for commonly used values.
- `kind` (string, optional, nullable) — Published enum value. Treat new values as forward-compatible; see the resource guide for commonly used values.
- `code` (string, optional, nullable)
- `slug` (string, optional, nullable)
- `name` (string, optional, nullable)
- `aliases` (list of any, optional, nullable) — Published array; preserve its JSON values. Exact filters do not provide array containment.
- `parent_id` (string, optional, nullable)
- `agency_id` (string, optional, nullable)
- `country` (string, optional, nullable)
- `status` (string, optional, nullable) — Published enum value. Treat new values as forward-compatible; see the resource guide for commonly used values.
- `started_on` (date, optional, nullable)
- `budget_lines` (list of any, optional, nullable) — Published array; preserve its JSON values. Exact filters do not provide array containment.
- `description` (string, optional, nullable)
- `confidence` (string, optional, nullable) — Published enum value. Treat new values as forward-compatible; see the resource guide for commonly used values.
- `as_of` (date, optional, nullable)
- `updated_at` (datetime, optional, nullable)
- `image` (any, optional) — Published JSON value; retain its original structure. Nested numeric JSON is not converted to decimal strings.

## Examples

**Response**

```json
{
  "data": [
    {
      "record_id": "string",
      "attributes": {
        "id": "string",
        "entity_type": "string",
        "kind": "string",
        "code": "string",
        "slug": "string",
        "name": "string",
        "aliases": [
          null
        ],
        "parent_id": "string",
        "agency_id": "string",
        "country": "string",
        "status": "string",
        "started_on": "2023-01-15",
        "budget_lines": [
          null
        ],
        "description": "string",
        "confidence": "string",
        "as_of": "2023-01-15",
        "updated_at": "2024-01-15T09:30:00Z",
        "image": null
      }
    }
  ],
  "next_cursor": "string",
  "build_id": "string"
}
```

**SDK Code**

```python
import requests

url = "https://app.defdex.io/api/v1/datasets/programs"

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

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

print(response.json())
```

```javascript
const url = 'https://app.defdex.io/api/v1/datasets/programs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <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://app.defdex.io/api/v1/datasets/programs"

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

	req.Header.Add("Authorization", "Bearer <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://app.defdex.io/api/v1/datasets/programs")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <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://app.defdex.io/api/v1/datasets/programs")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.defdex.io/api/v1/datasets/programs', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.defdex.io/api/v1/datasets/programs");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://app.defdex.io/api/v1/datasets/programs")! 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()
```