API reference · v1.0.0
Webhooks
Flavio sends the events of an account to your URL as they happen. Each webhook belongs to one account.
- Base URL
- There is no single base URL: each partner works on its own domain, under its own brand, so your customers never see ours. We give you yours when we set you up together. The examples use app.acmeseo.com.
/api/accounts/{uuid}/flavio/webhooksList webhooks
Returns the webhooks of the account, oldest first, each with how its last delivery went. An account has at most 10.
Authentication
Authorizationheader · Bearer JWTThe JWT of one account (HMAC-SHA256, signed with the API Key), sent as
Authorization: Bearer <JWT>. It gives access to that account only: every operation of Flavio Agent, Webhooks, Site data and Keywords, competitors and pages, and updating the account.
Parameters
uuidpath · stringrequiredUUID of the Account
Responses
200 OK
data[].type"webhook"data[].id- string
ID of the webhook
data[].attributes
urlstringWhere Flavio sends the events
eventsstring[]The types of event it receives. Empty, all of them.
secretstringThe key of the signatures. Only in the answer of Create a webhook.
created_atstringWhen it was created (UTC)
last_delivery_atstringnullableWhen Flavio last tried to send it an event (UTC);
nulluntil the first timelast_statusintegernullableThe HTTP status of that try;
nullwhen it got no answer, or before the firstlast_errorstringnullableWhy that try failed, such as
timeoutorHTTP 500;nullwhen it workedfailing_sincestringnullableSince when its deliveries fail (UTC);
nullwhile the last one worked
403 Forbidden
errorsobject[]Child attributes
statusnumberNumerical status code of the error
titlestringA descriptive message of the error
404 Not Found
errorsobject[]Child attributes
statusnumberHTTP status
titlestringError message title
detailstringError message detail
Request
curl https://app.acmeseo.com/api/accounts/{uuid}/flavio/webhooks \
-H "Authorization: Bearer <JWT>" \
-H "Accept: application/vnd.marketgoo.api+json"GET /api/accounts/{uuid}/flavio/webhooks HTTP/1.1
Host: app.acmeseo.com
Authorization: Bearer <JWT>
Accept: application/vnd.marketgoo.api+jsonResponse
{
"data": [
{
"type": "webhook",
"id": "7",
"attributes": {
"url": "https://hooks.example-builder.com/flavio",
"events": [
"plan.ready",
"intervention.opened",
"intervention.resolved"
],
"created_at": "2026-11-04T11:02:05Z",
"last_delivery_at": "2026-11-06T04:12:10Z",
"last_status": 200,
"last_error": null,
"failing_since": null
}
}
]
}{
"errors": [
{
"status": 403,
"title": "Forbidden"
}
]
}{
"errors": [
{
"status": 404,
"title": "Not Found",
"detail": "The requested account ID was not found"
}
]
}/api/accounts/{uuid}/flavio/webhooksCreate a webhook
Flavio sends each event of the account to url as it happens: a POST with the event in
JSON, the envelope that Events describes. Leave events out to receive all of them, or
list the types you want. Only what happens after the webhook exists is sent: what happened
before is on the timeline.
url must be https and reachable on the internet. The answer brings secret, only this
once: keep it to check that each delivery comes from Flavio. Each one carries the header
X-Flavio-Signature: t=<timestamp>,v1=<signature>, where the signature is the
HMAC-SHA256, in hexadecimal, of <timestamp>.<body> with secret. Compute it over the
body exactly as it arrives and compare it with v1; reject a t more than five minutes
old.
Answer with a 2xx within 10 seconds and do the work afterwards. Any other answer, or none,
is retried with longer and longer waits for 24 hours; after that the event is not sent
again. Flavio can send the same event twice, so deduplicate by its id, and events can
arrive out of order, so sort them by created_at. To check your endpoint right away, use
Test a webhook.
Authentication
Authorizationheader · Bearer JWTThe JWT of one account (HMAC-SHA256, signed with the API Key), sent as
Authorization: Bearer <JWT>. It gives access to that account only: every operation of Flavio Agent, Webhooks, Site data and Keywords, competitors and pages, and updating the account.
Parameters
uuidpath · stringrequiredUUID of the Account
Request body
data.type"webhook"required
data.attributes
urlstringrequiredWhere Flavio sends the events.
https, reachable on the internet.eventsstring[]The types of event to send, from the catalog of Events. Empty or left out, all of them.
Responses
201 Created
data.type"webhook"data.id- string
ID of the webhook
data.attributes
urlstringWhere Flavio sends the events
eventsstring[]The types of event it receives. Empty, all of them.
secretstringThe key of the signatures. Only in the answer of Create a webhook.
created_atstringWhen it was created (UTC)
last_delivery_atstringnullableWhen Flavio last tried to send it an event (UTC);
nulluntil the first timelast_statusintegernullableThe HTTP status of that try;
nullwhen it got no answer, or before the firstlast_errorstringnullableWhy that try failed, such as
timeoutorHTTP 500;nullwhen it workedfailing_sincestringnullableSince when its deliveries fail (UTC);
nullwhile the last one worked
400 Bad Request
errorsobject[]Child attributes
titlestringError message title
detailstringError message detail
sourceobjectThe field that triggered the error
Child attributes
pointerstring
403 Forbidden
errorsobject[]Child attributes
statusnumberNumerical status code of the error
titlestringA descriptive message of the error
404 Not Found
errorsobject[]Child attributes
statusnumberHTTP status
titlestringError message title
detailstringError message detail
409 Conflict
errorsobject[]Child attributes
statusnumberHTTP status
titlestringError message title
detailstringError message detail
Request
curl -X POST https://app.acmeseo.com/api/accounts/{uuid}/flavio/webhooks \
-H "Authorization: Bearer <JWT>" \
-H "Accept: application/vnd.marketgoo.api+json" \
-H "Content-Type: application/vnd.marketgoo.api+json" \
-d '{
"data": {
"type": "webhook",
"attributes": {
"url": "https://hooks.example-builder.com/flavio",
"events": [
"plan.ready",
"intervention.opened",
"intervention.resolved"
]
}
}
}'POST /api/accounts/{uuid}/flavio/webhooks HTTP/1.1
Host: app.acmeseo.com
Authorization: Bearer <JWT>
Accept: application/vnd.marketgoo.api+json
Content-Type: application/vnd.marketgoo.api+json
{
"data": {
"type": "webhook",
"attributes": {
"url": "https://hooks.example-builder.com/flavio",
"events": [
"plan.ready",
"intervention.opened",
"intervention.resolved"
]
}
}
}Response
{
"data": {
"type": "webhook",
"id": "7",
"attributes": {
"url": "https://hooks.example-builder.com/flavio",
"events": [
"plan.ready",
"intervention.opened",
"intervention.resolved"
],
"secret": "3f9c1a7e5b2d4f6081a3c5e7f9b1d3e5a7c9e1f3b5d7f9a1c3e5",
"created_at": "2026-11-04T11:02:05Z",
"last_delivery_at": null,
"last_status": null,
"last_error": null,
"failing_since": null
}
}
}{
"errors": [
{
"title": "Invalid field",
"detail": "Must be an https address reachable on the internet",
"source": {
"pointer": "/data/attributes/url"
}
}
]
}{
"errors": [
{
"status": 403,
"title": "Forbidden"
}
]
}{
"errors": [
{
"status": 404,
"title": "Not Found",
"detail": "The requested account ID was not found"
}
]
}{
"errors": [
{
"status": 409,
"title": "Conflict",
"detail": "An account has at most 10 webhooks"
}
]
}/api/accounts/{uuid}/flavio/webhooks/{webhook_id}Update a webhook
Changes url or events. secret stays the same: to change it, delete the webhook and
create another one.
Authentication
Authorizationheader · Bearer JWTThe JWT of one account (HMAC-SHA256, signed with the API Key), sent as
Authorization: Bearer <JWT>. It gives access to that account only: every operation of Flavio Agent, Webhooks, Site data and Keywords, competitors and pages, and updating the account.
Parameters
uuidpath · stringrequiredUUID of the Account
webhook_idpath · stringrequiredID of the webhook
Request body
data.type"webhook"required
data.attributes
urlstringWhere Flavio sends the events.
https, reachable on the internet.eventsstring[]The types of event to send, from the catalog of Events. Empty, all of them.
Responses
200 OK
data.type"webhook"data.id- string
ID of the webhook
data.attributes
urlstringWhere Flavio sends the events
eventsstring[]The types of event it receives. Empty, all of them.
secretstringThe key of the signatures. Only in the answer of Create a webhook.
created_atstringWhen it was created (UTC)
last_delivery_atstringnullableWhen Flavio last tried to send it an event (UTC);
nulluntil the first timelast_statusintegernullableThe HTTP status of that try;
nullwhen it got no answer, or before the firstlast_errorstringnullableWhy that try failed, such as
timeoutorHTTP 500;nullwhen it workedfailing_sincestringnullableSince when its deliveries fail (UTC);
nullwhile the last one worked
400 Bad Request
errorsobject[]Child attributes
titlestringError message title
detailstringError message detail
sourceobjectThe field that triggered the error
Child attributes
pointerstring
403 Forbidden
errorsobject[]Child attributes
statusnumberNumerical status code of the error
titlestringA descriptive message of the error
404 Not Found
errorsobject[]Child attributes
statusnumberHTTP status
titlestringError message title
detailstringError message detail
Request
curl -X PATCH https://app.acmeseo.com/api/accounts/{uuid}/flavio/webhooks/7 \
-H "Authorization: Bearer <JWT>" \
-H "Accept: application/vnd.marketgoo.api+json" \
-H "Content-Type: application/vnd.marketgoo.api+json" \
-d '{
"data": {
"type": "webhook",
"attributes": {
"events": []
}
}
}'PATCH /api/accounts/{uuid}/flavio/webhooks/7 HTTP/1.1
Host: app.acmeseo.com
Authorization: Bearer <JWT>
Accept: application/vnd.marketgoo.api+json
Content-Type: application/vnd.marketgoo.api+json
{
"data": {
"type": "webhook",
"attributes": {
"events": []
}
}
}Response
{
"data": {
"type": "webhook",
"id": "7",
"attributes": {
"url": "https://hooks.example-builder.com/flavio",
"events": [
"plan.ready",
"intervention.opened",
"intervention.resolved"
],
"created_at": "2026-11-04T11:02:05Z",
"last_delivery_at": "2026-11-06T04:12:10Z",
"last_status": 200,
"last_error": null,
"failing_since": null
}
}
}{
"errors": [
{
"title": "Invalid field",
"detail": "Must be an https address reachable on the internet",
"source": {
"pointer": "/data/attributes/url"
}
}
]
}{
"errors": [
{
"status": 403,
"title": "Forbidden"
}
]
}{
"errors": [
{
"status": 404,
"title": "Not Found",
"detail": "The requested webhook was not found"
}
]
}/api/accounts/{uuid}/flavio/webhooks/{webhook_id}Delete a webhook
Flavio stops sending events to the webhook, the ones still being retried too.
Authentication
Authorizationheader · Bearer JWTThe JWT of one account (HMAC-SHA256, signed with the API Key), sent as
Authorization: Bearer <JWT>. It gives access to that account only: every operation of Flavio Agent, Webhooks, Site data and Keywords, competitors and pages, and updating the account.
Parameters
uuidpath · stringrequiredUUID of the Account
webhook_idpath · stringrequiredID of the webhook
Responses
204 No Content
403 Forbidden
errorsobject[]Child attributes
statusnumberNumerical status code of the error
titlestringA descriptive message of the error
404 Not Found
errorsobject[]Child attributes
statusnumberHTTP status
titlestringError message title
detailstringError message detail
Request
curl -X DELETE https://app.acmeseo.com/api/accounts/{uuid}/flavio/webhooks/7 \
-H "Authorization: Bearer <JWT>"DELETE /api/accounts/{uuid}/flavio/webhooks/7 HTTP/1.1
Host: app.acmeseo.com
Authorization: Bearer <JWT>Response
{
"errors": [
{
"status": 403,
"title": "Forbidden"
}
]
}{
"errors": [
{
"status": 404,
"title": "Not Found",
"detail": "The requested webhook was not found"
}
]
}/api/accounts/{uuid}/flavio/webhooks/{webhook_id}/testTest a webhook
Sends the webhook a webhook.test event within a minute, signed like any other. It is
not on the timeline. How it went shows in last_status and last_error of the webhook.
Authentication
Authorizationheader · Bearer JWTThe JWT of one account (HMAC-SHA256, signed with the API Key), sent as
Authorization: Bearer <JWT>. It gives access to that account only: every operation of Flavio Agent, Webhooks, Site data and Keywords, competitors and pages, and updating the account.
Parameters
uuidpath · stringrequiredUUID of the Account
webhook_idpath · stringrequiredID of the webhook
Responses
202 Accepted
403 Forbidden
errorsobject[]Child attributes
statusnumberNumerical status code of the error
titlestringA descriptive message of the error
404 Not Found
errorsobject[]Child attributes
statusnumberHTTP status
titlestringError message title
detailstringError message detail
Request
curl -X POST https://app.acmeseo.com/api/accounts/{uuid}/flavio/webhooks/7/test \
-H "Authorization: Bearer <JWT>"POST /api/accounts/{uuid}/flavio/webhooks/7/test HTTP/1.1
Host: app.acmeseo.com
Authorization: Bearer <JWT>Response
{
"errors": [
{
"status": 403,
"title": "Forbidden"
}
]
}{
"errors": [
{
"status": 404,
"title": "Not Found",
"detail": "The requested webhook was not found"
}
]
}No matching properties.