Skip to main content
WEBHOOK
agentFailed
{
  "success": false,
  "type": "agent.failed",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "webhookId": "d4e5f6a7-0004-0000-0000-000000000000",
  "data": [
    {
      "creditsUsed": 8
    }
  ],
  "error": "Max credits exceeded",
  "metadata": {}
}

Headers

X-Firecrawl-Signature
string

HMAC-SHA256 signature of the raw request body, formatted as sha256=<hex>. Present when an HMAC secret is configured in your account settings. See Webhook Security for verification details.

Example:

"sha256=abc123def456789..."

Body

application/json
success
boolean
required

Always false for this event.

type
string
required
Allowed value: "agent.failed"
id
string<uuid>
required

The agent job ID.

webhookId
string<uuid>
required

Unique identifier for this webhook delivery.

data
object[]
required
error
string
required

Human-readable error message describing the failure.

metadata
object

The custom metadata object you provided in the webhook configuration. Echoed back in every delivery.

Response

200

Return any 2xx status code to acknowledge receipt.