cloudflare.pages.add-domain ​
Bind a custom domain to a Cloudflare Pages project and wait for SSL/validation to become active.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | Yes | — | Pages project name. |
domain | string | Yes | — | Custom domain to bind (e.g. calendar.senai.example). |
wait_active | boolean | No | — | Poll until the domain becomes active; default true. |
timeout_seconds | integer | No | — | Max seconds to wait for activation; default 300. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Echoed organization UUID. |
project_name | string | No | — | Pages project name. |
domain | string | No | — | Bound domain. |
domain_status | string | No | — | Domain/certificate status (pending, active). |
verification_data | json | No | — | Any DNS/ownership records the caller must create. |
status | string | No | — | Workflow status. |
completed_at | string | No | — | ISO8601 timestamp when the workflow completed. |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | add | Inputs accepted |
activating | No | No | — | — | Domain bound; waiting for activation via scheduled polling |
completed | No | Yes | Yes | — | Domain active and persisted |
failed | No | Yes | No | — | Domain binding/activation failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | add | activating | — |
activating | poll | activating | — |
activating | persist | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.pages.add-domain",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"project_name": "value",
"domain": "value"
}
}