POST
/
v2
/
session
/
apps
/
{appID}
/
domains
curl --request POST \
  --url https://api.prelude.dev/v2/session/apps/{appID}/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "session.example.com"
}'
{
  "domain": {
    "id": "dom_01jqebhswje1ka1z7ahr9rfsgt",
    "domain": "session.example.com",
    "status": "active",
    "cname_record": "customers.prld.dev",
    "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.

Examples:

"54e9ujn"

"fvua38g"

Body

application/json

Response

201
application/json

Created

The response is of type object.