POST
/
api
/
v2
/
webhookRelay
/
{type}
curl --request POST \
  --url https://api.vida.dev/api/v2/webhookRelay/{type} \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://example.com/webhook/twilio",
  "timeout": 5000,
  "headers": [
    {
      "Authorization": "Bearer xyz"
    },
    {
      "X-Customer-ID": "abc123"
    }
  ],
  "successStatusCodes": [
    200,
    201,
    202
  ]
}'
{
  "success": true,
  "message": "Webhook Relay for type 'twilioSMS' configured successfully."
}

Authorizations

token
string
query
required

Vida API Token

Path Parameters

type
object
required

Relay type (e.g. twilioSMS, chargebee)

Body

application/json

Response

200
application/json

Relay stored

The response is of type object.