Skip to main content
POST
/
cloudflare_connections
Create Cloudflare credential
curl --request POST \
  --url https://api.akua.dev/v1/cloudflare_connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Production Cloudflare",
  "account_id": "<string>",
  "origin_zone_id": "<string>",
  "origin_hostname_suffix": "<string>",
  "api_token": "<string>"
}
'
{
  "errors": [
    {
      "code": 7002,
      "message": "Resource not found",
      "path": [
        "body",
        "name"
      ],
      "metadata": {}
    }
  ],
  "result": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.akua.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Headers

akua-context
string

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens — a workspace-owned token implies its workspace.

Required string length: 1 - 53
Example:

"ws_j572abc123def456"

Body

application/json
name
string
required
Required string length: 1 - 100
Example:

"Production Cloudflare"

account_id
string
required

Cloudflare account ID.

Required string length: 1 - 200
Pattern: ^[A-Za-z0-9_-]+$
origin_zone_id
string
required

Cloudflare zone ID used for Access-protected origin hostnames.

Required string length: 1 - 200
Pattern: ^[A-Za-z0-9_-]+$
origin_hostname_suffix
string
required

Hostname suffix used for Access-protected origin hostnames.

Required string length: 1 - 253
api_token
string
required

Cloudflare API token. Stored as a platform Secret; never returned.

Required string length: 1 - 2000

Response

Cloudflare credential created