# Get

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

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

Get one record by type

**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"
  /** The full record name with domain */
  record_name: string; // Example: "api.example.com"
  /** The record type */
  type: "SOA" | "NS" | "A" | "AAAA" | "CNAME" | "ALIAS" | "CAA" | "SPF" | "MX" | "TXT" | "SRV" | "NAPTR" | "PTR"; // Example: "A"
}
```

## Response Body

```typescript
interface ResponseBody {
  /** The record type */
  type?: "SOA" | "NS" | "A" | "AAAA" | "CNAME" | "ALIAS" | "CAA" | "SPF" | "MX" | "TXT" | "SRV" | "NAPTR" | "PTR";
  /** 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;
  values?: string[];
  /** Time To Live in seconds for the DNS record */
  ttl?: number;
  /** Routing strategy for the record (`Simple` or `Geolocation`) */
  routing?: string;
  /** Country-specific routing configuration for geolocation records (only used when routing is `Geolocation`). Keys are ISO 3166-1 alpha-2 country codes */
  country?: object;
  /** Continent-specific routing configuration for geolocation records (only used when routing is `Geolocation`). Available values: Africa, Antarctica, Asia, Europe, NorthAmerica, Oceania, SouthAmerica */
  continent?: object;
  /** Note for this resource */
  note?: string;
  /** YAML note for AI agents operating on this resource */
  agent_note?: string;
}
```

## Request Example

```bash
curl -X GET "https://api.buddy.works/workspaces/:workspace/domains/:domain_id/records/:record_name/:type" \
  -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/example.com./A",
  "html_url": "https://app.buddy.works/my-company/-/domain/4krmDRPw",
  "name": "@",
  "type": "A",
  "values": [
    "192.168.1.100",
    "192.168.1.101"
  ],
  "ttl": 300,
  "routing": "simple"
}
```

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