POST - Webhook
This API allows authenticated users to create a new webhook for automatic processing of uploaded documents. The webhook will be triggered when documents are processed using the specified API template.
Key Notes:
- Requires authentication and a valid API template ID from the webhook templates endpoint.
- The
secret_hashfield is encrypted using encryption for security. - Each user can only create one webhook per API template (duplicate prevention).
- Returns the created webhook details including the generated UUID.
Required Fields:
- api_template: UUID of the webhook template (from webhook templates endpoint)
- endpoint_url: The URL where webhook notifications will be sent
- secret_hash: Optional secret key for webhook authentication (will be encrypted)
Scenario: Setting Up Document Processing Webhook
- A developer wants to receive automatic notifications when assignment answer sheets are processed.
- They first call the webhook templates endpoint to get the template ID for ‘assignment_answer_sheet_extraction’.
- They then call this endpoint with the template ID, their webhook URL, and optional secret hash.
- The system creates the webhook and returns the webhook details for future reference.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
UUID of the webhook template to use for processing
"488f4644-057d-41e7-9a74-72c040602647"
The URL where webhook notifications will be sent
"https://example.com/webhook/assignment-processing"
Optional secret key for webhook authentication (will be encrypted)
"my-secret-key-123"
Response
Webhook created successfully.