Cloudflare Accounts
1. Connector Overview
Cloudflare connectors store API credentials and manage the connection to Cloudflare accounts. Each connector must be validated before it can be used to manage DNS records.
Fields
- Name - Account name/identifier (required, tracked)
- API Key - Cloudflare API token for authentication (required, password field)
- State - Connector status: Draft, Confirmed, or Cancelled (tracked)
- Company - Company context for multi-company support
2. Connector Lifecycle
Draft → Confirmed → Cancelled
| State | Description |
|---|---|
| Draft | Initial setup, API key editable |
| Confirmed | API key validated against Cloudflare, ready for use |
| Cancelled | Deactivated |
3. Actions
| Action | From State | Description |
|---|---|---|
| Confirm Server | Draft | Validates the API key via Cloudflare's verification endpoint, transitions to Confirmed |
| Reset to Draft | Any | Returns to editable Draft state |
| Cancel | Any | Deactivates the connector |
API Validation
On confirmation, the system sends a request to https://api.cloudflare.com/client/v4/user/tokens/verify to validate the API key. If validation fails, an error message is posted to the chatter.