Skip to main content

Getting Started

At Auco, to give you full control over the integration with each created process, we offer a webhook system that allows you to receive notifications at each stage of every workflow, from start to finish.

For configuring the webhook, there are two ways, via the API and the web platform:

Creating from app.auco.ai:

You must be an admin or have admin permissions to configure this. From the platform, you can only create one webhook, which will be the 'default' webhook.

  • Log in with your email and password.
  • Go to your profile at www.auco.ai/profile
  • Enter the development options
  • At the bottom, you will find options to modify your webhook and authentication headers if needed.

Creating via the Auco API

Is it possible to have multiple webhooks?

🆕 Yes! Through the API you can create multiple webhooks. Each webhook must have an id. Your first webhook must have the id 'default', which is where all notifications will be sent by default; subsequent webhooks can have any id you prefer.

important

To define which webhooks will receive notifications for the process states, you must save the list of webhook ids during document creation.

Authentication

Include your private key in the Authorization header.

Authorization: prk_xxx...

Webhook Creation Parameters

NameTypeRequiredDescription
idStringRequiredIdentifier name of the webhook, the first webhook must be default.
descriptionStringRequiredDescription of the webhook's purpose.
headerBooleanOptionalParameter where the authentication header is registered.
keyStringConditionalWhen sending a header, the authentication key is required.
valueStringConditionalWhen sending a header, the authentication value is required.

Usage Example:

Creating Multiple Webhooks

curl --location --request PUT 'https://dev.auco.ai/v1.5/ext/company' \
--header 'Authorization: prk_private_key_company' \
--header 'Content-Type: application/json' \
--data '{"webhooks":[
{
"id": "default",
"description": "It'\''s my first webhook",
"url": "https://...",
"header": {
"key": "Authorization",
"value": "{Bearer ...}"
}
},
{
"id": "Billing",
"description": "It'\''s billing webhook",
"url": "https://...",
"header": {
"key": "Authorization",
"value": "Bearer ..."
}
}
]}'

⚠️ Error Responses

CodeDescription
400Missing the 'default' webhook
401Invalid or missing authentication