PassThrough Requests for Brevo
Sample PassThrough requeat for getting the list of possible values of taskTypeId field for create an engagement and update an engagement apis in Brevo.
Get all task types
Use the id field, in the response, as the taskTypeId in create an engagementandupdate an engagement apis.
A cURL request could look like this:
curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"method":"GET",
"path": "crm/tasktypes"
}'and the response could look like the following:
{
"success": true,
"data": {
"response": {
"body": "[{\"id\":\"693aa5ec1c7faec29ecdc9e1\",\"title\":\"Todo\"},{\"id\":\"693aa5ec1c7faec29ecdc9df\",\"title\":\"Email\"},{\"id\":\"693aa5ec1c7faec29ecdc9e0\",\"title\":\"Call\"},{\"id\":\"693aa5ec1c7faec29ecdc9e3\",\"title\":\"Lunch\"},{\"id\":\"693aa5ec1c7faec29ecdc9e2\",\"title\":\"Meeting\"},{\"id\":\"693aa5ec1c7faec29ecdc9e4\",\"title\":\"Deadline\"},{\"id\":\"693aa61a8b859ae9bb73d12d\",\"title\":\"LinkedIn\"}]\n",
"headers": {
"Date": "Fri, 26 Dec 2025 07:18:00 GMT",
"Content-Type": "application/json",
"Connection": "keep-alive",
"CF-RAY": "9b3ecd3e6d0cef8f-WAW",
"access-control-allow-headers": "Content-Type, Content-Disposition, Authorization, Origin, Accept,*",
"access-control-allow-methods": "POST, GET, OPTIONS, PUT, DELETE, PATCH,PUT, POST, GET, DELETE, PATCH, OPTIONS",
"access-control-allow-origin": "http://api.brevo.com,*",
"access-control-request-headers": "*",
"cache-control": "no-cache",
"x-envoy-upstream-service-time": "141",
"access-control-allow-credentials": "true",
"sib-request-id": "c98510d3-b3da-9777-891d-624e2fd4d870",
"cf-cache-status": "DYNAMIC",
"Server": "cloudflare",
"content-length": "358"
}
}
}
}Updated 2 months ago