# Endpoints

> Search, quotes, registrations, transfers, domains, zones, records and connections.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://domains.docs.sypnia.com/api/endpoints/

For agents: Domains API endpoints: GET /search, GET /prices, POST /quotes, POST /registrations (202 op), POST /transfers (202 op), GET /operations/{id}; GET/PATCH /domains/{name}, POST renew/auth-code/move, PUT contacts/nameservers; zones GET/POST/DELETE, records GET, POST changes (batch) and undo, export/import, dnssec; connections GET/POST, repair, DELETE.

## Search, quotes and purchases

| Method and path        | Does                                                                    |
| ---------------------- | ----------------------------------------------------------------------- |
| `GET /search?q=&tlds=` | Free names and final prices                                             |
| `GET /prices?tld=`     | The price list                                                          |
| `POST /quotes`         | `{ name, years, contactId? }` → a quote valid for 15 minutes            |
| `POST /registrations`  | `{ quoteId, privacy?, autoRenew?, connect? }` → `202` with an operation |
| `POST /transfers`      | `{ name, authCode, importDns? }` → `202` with an operation              |
| `GET /operations/{id}` | The state of an operation                                               |

## Domains

| Method and path                       | Does                                                         |
| ------------------------------------- | ------------------------------------------------------------ |
| `GET /domains`, `GET /domains/{name}` | Your domains, dates and settings                             |
| `PATCH /domains/{name}`               | `{ autoRenew?, locked?, privacy? }`                          |
| `POST /domains/{name}/renew`          | `{ years }` → `202` with an operation                        |
| `POST /domains/{name}/auth-code`      | The auth code to transfer out (owners only, re-confirmation) |
| `POST /domains/{name}/move`           | `{ awsAccountId }`                                           |
| `PUT /domains/{name}/contacts`        | Registrant, administrative and technical contacts            |
| `PUT /domains/{name}/nameservers`     | Name servers (registration only)                             |

## DNS

| Method and path                                            | Does                                                                                 |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `GET /zones`, `POST /zones`, `DELETE /zones/{name}`        | Zones, including DNS-only zones                                                      |
| `GET /zones/{name}/records`                                | Records with their owner (you or a connection)                                       |
| `POST /zones/{name}/changes`                               | `{ changes: [{ action, name, type, ttl, values }] }` → one change batch, with its id |
| `POST /zones/{name}/changes/{id}/undo`                     | Revert a change                                                                      |
| `GET /zones/{name}/export`, `POST /zones/{name}/import`    | Zone files                                                                           |
| `POST /zones/{name}/dnssec`, `DELETE /zones/{name}/dnssec` | DNSSEC                                                                               |

## Connections

| Method and path                                             | Does                        |
| ----------------------------------------------------------- | --------------------------- |
| `GET /domains/{name}/connections`                           | Connections and their state |
| `POST /domains/{name}/connections`                          | `{ host, target }`          |
| `POST /connections/{id}/repair`, `DELETE /connections/{id}` | Repair, remove              |

The OpenAPI document is in the engine's repository, at `spec/openapi.yaml`.
