Skip to main content
POST
/
v2
/
session
/
apps
/
{appID}
/
domains
Create domain
curl --request POST \
  --url https://api.prelude.dev/v2/session/apps/{appID}/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "<string>"
}
'
{
  "domain": {
    "id": "<string>",
    "domain": "<string>",
    "status": "active",
    "cname_record": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

appID
string
required

The id of the app the request refers to. An application's unique identifier.

Body

application/json
domain
string
required

The domain name to create. It should be an RFC 1035 compliant domain name.

Maximum string length: 255

Response

Created

domain
object
required