Thanks to visit codestin.com
Credit goes to docs.refly.ai

Skip to content

Webhook Documentation

Trigger the current canvas workflow via Webhook and track executions in Run History.

How to Enable Webhook

Steps to get Webhook URL:

  1. Visit https://refly.ai/workspace and enter any workflow.

    1. Visit https://refly.ai/workspace and enter any workflow.

  2. Click the "Integration" button in the top right corner.

    2. Click the "Integration" button in the top right corner.

  3. Click the "Webhook" tab at the top, then toggle the Enable switch at the top.

    3. Click the "Webhook" tab at the top, then toggle the Enable switch at the top.

  4. Copy the generated Webhook URL for integration.

Request Body

Webhook variables payload

NameTypeRequiredDescription
variablesobjectNoWebhook variables as key-value pairs

Request Body Example

json
{}

File Upload

If you need to send file variables, upload files via /openapi/files/upload to get fileKey (requires API Key), then pass fileKey or fileKey[] under variables in the webhook body.

View file upload API docs

Error Codes

Common error codes for webhook and API integrations.

Error CodeHTTP StatusMessageDescription
CANVAS_NOT_FOUND404Canvas not foundAssociated canvas cannot be found.
INSUFFICIENT_CREDITS402Insufficient creditsInsufficient credits for this operation.
INVALID_REQUEST_BODY400Invalid request bodyRequest body format is invalid.
WEBHOOK_DISABLED403Webhook disabledWebhook is disabled and cannot be triggered.
WEBHOOK_NOT_FOUND404Webhook not foundWebhook does not exist or has been deleted.
WEBHOOK_RATE_LIMITED429Webhook rate limitedRequest rate exceeds the limit.