Welcome to the new Golem Cloud Docs! 👋
API Domain

Api Domain API

Get all API domains

PathMethodProtected
/v1/api/domainsGETYes

Returns a list of API domains for the given project.

Query Parameters

NameTypeRequiredDescription
project-idstringYes-

Example Response JSON

[
  {
    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
    "domainName": "string",
    "nameServers": [
      "string"
    ],
    "createdAt": "2019-08-24T14:15:22Z"
  }
]

Create or update an API domain

PathMethodProtected
/v1/api/domainsPUTYes

Example Request JSON

{
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "domainName": "string"
}

Example Response JSON

{
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "domainName": "string",
  "nameServers": [
    "string"
  ],
  "createdAt": "2019-08-24T14:15:22Z"
}

Delete an API domain

PathMethodProtected
/v1/api/domainsDELETEYes

Query Parameters

NameTypeRequiredDescription
project-idstringYes-
domainstringYes-

Example Response JSON

"string"

Api Domain API Errors

Status CodeDescriptionBody
400{"errors":["string"]}
401{"error":"string"}
403{"error":"string"}
404{"error":"string"}
409{"error":"string"}
500{"error":"string","workerError":{"cause":"string","stderr":"string"}}