Welcome to the new Golem Cloud Docs! 👋
Documentation
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"]
  }
]

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"]
}

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{"type":"Messages","errors":["string"]}
401{"error":"string"}
403{"error":"string"}
404{"message":"string"}
409"string"
500{"error":"string"}