# Data and Files

> Your own api. and cdn. addresses for the Data API and Files content.

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

For agents: Domains connect to Data and Files: api.<domain> data:<project> → CNAME to project API + certificate validation; Data API and auth on api.<domain>, auth e-mails and OAuth redirects use it; cdn.<domain> files:<bucket> → CNAME to content host; public files, transforms and signed URLs served there; Files API stays on its host.

| Command                                 | Writes                                                                | Result                                                 |
| --------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------ |
| `connect api.laespiga.co data:laespiga` | a `CNAME` to the project's API address and the certificate validation | the Data API and auth answer on `api.laespiga.co`      |
| `connect cdn.laespiga.co files:public`  | a `CNAME` to the content host and the certificate validation          | public files and image transforms on `cdn.laespiga.co` |

Data's auth e-mails and OAuth redirects use the custom address once it is connected, so sign-in screens show your domain. For Files, only public buckets and signed URLs are served on the custom address; the API stays on its own host.
