Skip to main content
POST
/
stores
/
{storeId}
/
webhooks
Create or Update Webhook
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

storeId
string
required

Store ID

Example:

"64e5a8a1af49a89df37e4ee7"

Body

application/json
webhook
Webhook create · object

Webhook create.

Response

Updated

webhook
Webhook read · object

Webhook read.