> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "List custom domains"
description: "List all custom domains for a project."
api: "GET /api/v0/domains/{projectId}"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```bash title="cURL" lines=false
    curl -X GET "https://api.example.com/api/v0/domains/<projectId>"
    ```
  </RequestExample>
</Aside>

<OpenAPIEndpoint {...{"method":"get","path":"/api/v0/domains/{projectId}","summary":"List custom domains","description":"List all custom domains for a project.","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project ULID.","schema":{"type":"string"}}],"responses":[{"status":"200","description":"","schema":{"type":"object","required":["domains"],"properties":{"domains":{"type":"array","items":{"type":"object","required":["id","hostname","status","sslStatus","cnameTarget","createdAt"],"properties":{"id":{"type":"string"},"hostname":{"type":"string"},"status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"cnameTarget":{"type":"string","description":"CNAME target for DNS configuration."},"createdAt":{"type":"number"}}}}}},"examples":[]},{"status":"default","description":"","examples":[]}],"security":[],"servers":[]}} />
