cloudflare.auth.validate_token ​
Validate a Cloudflare API token
Validate a Cloudflare API token by calling the token verification endpoint.
Inputs: none (token comes from the cloudflare plugin).
Outputs (terminal state_data):
- token_id: str — token ID
- token_name: str — token name as configured in the Cloudflare dashboard
- status: str — active | disabled | expired
- expires_on: str | None — ISO-8601 expiry timestamp
Plugin required: context.get_plugin("cloudflare") must expose .api_token.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
No input fields required.
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
expires_on | string | No | — | — |
status | string | No | — | — |
token_id | string | No | — | — |
token_name | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.auth.validate_token",
"initial_data": { }
}