Skip to content
Proud to collaborate with Microsoft for Startups

bunnycdn.auth.validate_token ​

Validate a Bunny CDN API key

Validate a Bunny CDN API key by retrieving the account billing summary.

Inputs: none (API key comes from the bunnycdn plugin).

Outputs (terminal state_data):

  • balance: float — account balance
  • this_month_charges: float — charges for the current month
  • authenticated: bool — always true on success

Plugin required: context.get_plugin("bunnycdn") must expose .api_key.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bunnycdn
Version1.0

Input Schema ​

No input fields required.

Output Schema ​

FieldTypeRequiredDefaultDescription
authenticatedbooleanNo——
balanceintegerNo——
this_month_chargesintegerNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "bunnycdn.auth.validate_token",
  "initial_data": { }
}