# List

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

`GET /workspaces/:workspace/domains/:domain_id/records`

Get all records for domain

**Required Scopes:** `DOMAIN_READ`

## URL Parameters

```typescript
interface URLParameters {
  /** The human-readable ID of the workspace */
  workspace: string; // Example: "my-company"
  /** The ID of the domain */
  domain_id: string; // Example: "4krmDRPw"
}
```

## Response Body

```typescript
interface ResponseBody {
  /** API endpoint to GET this object */
  url?: string;
  /** Web URL to view this object in Buddy.works */
  html_url?: string;
  records?: RecordViewIds[];
}
```

## Type Definitions

```typescript
interface RecordViewIds {
  /** API endpoint to GET this object */
  url?: string;
  /** Web URL to view this object in Buddy.works */
  html_url?: string;
  /** The record name (subdomain or @ for root) */
  name?: string;
  /** The record type */
  type?: "SOA" | "NS" | "A" | "AAAA" | "CNAME" | "ALIAS" | "CAA" | "SPF" | "MX" | "TXT" | "SRV" | "NAPTR" | "PTR";
}

```

## Request Example

```bash
curl -X GET "https://api.buddy.works/workspaces/:workspace/domains/:domain_id/records" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "Content-Type: application/json"
```

## Response Example

**Status:** `200 OK`

```json
{
  "url": "https://api.buddy.works/workspaces/my-company/domains/4krmDRPw/records",
  "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
  "records": [
    {
      "url": "https://api.buddy.works/workspaces/my-company/domains/4krmDRPw/records/example.com./SOA",
      "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
      "type": "SOA",
      "name": "@"
    },
    {
      "url": "https://api.buddy.works/workspaces/my-company/domains/4krmDRPw/records/example.com./NS",
      "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
      "type": "NS",
      "name": "@"
    },
    {
      "url": "https://api.buddy.works/workspaces/my-company/domains/4krmDRPw/records/www.example.com./A",
      "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
      "type": "A",
      "name": "www"
    },
    {
      "url": "https://api.buddy.works/workspaces/my-company/domains/4krmDRPw/records/api.example.com./A",
      "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
      "type": "A",
      "name": "api"
    },
    {
      "url": "https://api.buddy.works/workspaces/my-company/domains/4krmDRPw/records/blog.example.com./CNAME",
      "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
      "type": "CNAME",
      "name": "blog"
    }
  ]
}
```

---
Original source: https://buddy.works/docs/api/domains/records/list