Skip to main content
POST
/
projects
/
{project_reference}
/
environments
/
{environment_id}
/
domains
Create Domain
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/environments/{environment_id}/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "app.example.com"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "protected": true,
  "domains": [
    "<string>"
  ],
  "environment_variables": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

UUID of the project

environment_id
string<uuid>
required

UUID of the environment

Body

application/json
domain
string
required

Custom domain name to add to the environment

Minimum string length: 1

Response

Domain added successfully

id
string<uuid>
required
name
string
required
protected
boolean
required
domains
string[]
required
environment_variables
object[]
required
created_at
string
updated_at
string