POST
/
webhooks
curl --request POST \
  --url https://api.loopreturns.com/api/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "topic": "return",
  "trigger": "return.created",
  "url": "https://example.com/webhook",
  "status": "inactive"
}'
{
  "id": 12345,
  "shop_id": 65432,
  "topic": "return",
  "trigger": "return.created",
  "url": "https://example.com/webhook",
  "status": "active"
}

Authorizations

X-Authorization
string
header
required

Body

application/json

Response

200
application/json
Success

The response is of type object.