curl --request POST \
--url https://api.getredo.com/v2.2/stores/{storeId}/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook": {
"callback": {
"auth": {
"bearer": {
"token": "abc123"
}
},
"url": "https://subscriber.example.org/events"
},
"topic": "return",
"backfill": false,
"externalId": null,
"kind": "redo"
}
}
'{
"webhook": {
"callback": {
"auth": {
"bearer": {
"token": "abc123"
}
},
"url": "https://subscriber.example.org/events"
},
"createdAt": "2023-11-07T05:31:56Z",
"topic": "return",
"updatedAt": "2023-11-07T05:31:56Z",
"externalId": null,
"id": "<string>",
"kind": "redo"
}
}Create webhook for store. Or if webhook already exists with externalId, update it.
curl --request POST \
--url https://api.getredo.com/v2.2/stores/{storeId}/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook": {
"callback": {
"auth": {
"bearer": {
"token": "abc123"
}
},
"url": "https://subscriber.example.org/events"
},
"topic": "return",
"backfill": false,
"externalId": null,
"kind": "redo"
}
}
'{
"webhook": {
"callback": {
"auth": {
"bearer": {
"token": "abc123"
}
},
"url": "https://subscriber.example.org/events"
},
"createdAt": "2023-11-07T05:31:56Z",
"topic": "return",
"updatedAt": "2023-11-07T05:31:56Z",
"externalId": null,
"id": "<string>",
"kind": "redo"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Store ID
"64e5a8a1af49a89df37e4ee7"
Webhook create.
Show child attributes
HTTPS callback to POST events.
Show child attributes
HTTPS callback URL.
"https://subscriber.example.org/events"
Topic.
return Create events for already-existing items
Optional external identifier.
Kind.
redo, loop Updated
Webhook read.
Show child attributes
HTTPS callback URL to POST events.
Show child attributes
HTTPS callback URL.
"https://subscriber.example.org/events"
Time created.
Topic.
return Last time updated.
Optional external identifier.
Webhook ID.
Kind.
redo, loop Was this page helpful?