Learn how to use webhooks to get notified when Tensorlake Jobs finishes.
You can use webhooks to get notified about the status of Document Ingestion Jobs.
Webhooks are configured on a per-project basis. The project associated with the API key that is being used to configure the webhook is the one for which the webhook will be triggered.
Our webhooks events are managed by Svix, please note none of your data is sent to Svix, only event statuses.
To use Webhooks with Tensorlake, make sure you have created a project on Tensorlake Cloud.
Create a webhook
Go to the project that you want to create the webhook for, and click into the Webhooks tab.
Set up your webhook
Give the webhook a name, and provide a URL that you control.
Configure access for your webhook
Configure your webhook by selecting the event types that you want to listen to.
The three event types are:
tensorlake.document_ingestion.job.created
: Triggered when Tensorlake receives the request to parse a document and kicks off the parsing.tensorlake.document_ingestion.job.failed
: Triggered when a parsing job fails.tensorlake.document_ingestion.job.completed
: Triggered when a parsing job succeeds.The payload of the webhook will depend on the event type received. The payload will be a JSON object with the following structure:
We have a UI to test webhooks. After creating a webhook, select on the event type you want to test.
Without signature verification, anyone could send forged requests to your endpoint. Each webhook endpoint has a unique secret to verify the authenticity of incoming requests.
To get your webhook secret:
You can use the Svix libraries to handle secret verification automatically in your application code.
Alternatively, you can manually verify the signature using the secret. The verification process involves:
svix-signature
headerFor more details and other verification methods, refer to the following resources: