What are Callbacks?
Callbacks are functions that are passed as arguments to other functions or methods, and they are invoked (or “called back”) after the completion of a task or operation. Callbacks are a common pattern in programming, particularly in asynchronous operations, where you want to execute a piece of code after a certain task is done without blocking the main execution thread.What are Webhooks?
Webhooks are a type of callback that operates over the web, allowing one system to send real-time data to another system as soon as an event occurs. Unlike traditional callbacks, which are typically defined within the same codebase or application, webhooks are used for communication between different applications or services over the internet.PDF.co & Webhooks
The webhook or callback endpoint must respond immediately within a few seconds. If the endpoint does not respond within 20-30 seconds, the PDF.co API considers the attempt failed and will retry the callback up to 3 times.
callback object with the URL of your choice, which triggers a POST request to the specified webhook URL upon completion of the job process.
Basic Authentication in Callback URLs
You can specify Basic Authentication credentials directly in the callback URL like this:PDF from Markdown rejects callback URLs with embedded credentials. Use a callback URL without a username or password for that endpoint.