Sourced
llms.txt
View Markdown

Domains ยท version 0.1.0

List docs domains for a project

GET/api/projects/{projectId}/domains

Request

cURL
curl -X GET 'https://sourced.sh/api/projects/{projectId}/domains' \
  -H 'Authorization: Bearer $SOURCED_API_KEY'
TypeScript
const response = await fetch("https://sourced.sh/api/projects/{projectId}/domains", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SOURCED_API_KEY}`,
  },
});
const data = await response.json();
Python
import os
import requests

response = requests.request(
    "GET",
    "https://sourced.sh/api/projects/{projectId}/domains",
    headers={"Authorization": f"Bearer {os.environ['SOURCED_API_KEY']}"},
)

data = response.json()

Parameters

Path parameters

NameTypeRequiredDescription
projectIdstringYesProject identifier.

Responses

200

Domains configured for the project.

application/json

Schema
type: object
required: project, domains, dns
properties:
  project (required): Project
    Project:
      type: object
      required: id, name, createdAt
      properties:
        id (required): string
        name (required): string
        apiName: string
        mode: string enum flagship | stainless_compatible | custom | openapi | stainless_migration
          New writes use `flagship` or `stainless_compatible`; legacy `custom`, `openapi`, and `stainless_migration` records may still be returned.
        status: string enum created | active | archived
        createdAt (required): string
        updatedAt: string
        runCount: integer
  domains (required): array
    type: array
  dns (required): array
    DNS records grouped by domain id so the dashboard can show setup instructions after reload.
    type: array
    description: DNS records grouped by domain id so the dashboard can show setup instructions after reload.

401

403

404

Was this helpful?