Skip to content

Update the name, mapping, status (active, paused) or signature; `hmac: null` removes the signature (captures.write)

PATCH
/v1/inbound-webhooks/{webhook}
curl --request PATCH \
--url https://api.replifier.com/v1/inbound-webhooks/ibw_01hx0000000000000000000000 \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "mapping": { "email": "example", "name": { "path": "example" }, "externalId": "example", "occurredAt": "example", "value": "example", "currency": { "path": "example" }, "properties": {} }, "status": "active", "hmac": { "header": "example", "algorithm": "sha256-hex", "prefix": "", "secret": "example" } }'
webhook
required
string
/^ibw_[a-z0-9]{26}$/

Example

ibw_01hx0000000000000000000000
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
mapping
object
email
required
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
name
required
Any of:
object
path
required
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
externalId
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
occurredAt
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
value
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
currency
Any of:
object
path
required
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
properties
object
key
additional properties
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
status
string
Allowed values: active paused
hmac
object
header
required
string
/^[A-Za-z0-9-]{1,64}$/
algorithm
required
string
Allowed values: sha256-hex sha256-base64
prefix
string
"" <= 16 characters /^[^\x00-\x1f\x7f]*$/
secret
required
string
>= 8 characters <= 256 characters /^[^\x00-\x1f\x7f]*$/

Webhook

Media typeapplication/json
object
id
required
string
brandId
required
string
name
required
string
status
required
string
Allowed values: active paused
mapping
required
object
email
required
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
name
required
Any of:
object
path
required
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
externalId
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
occurredAt
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
value
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
currency
Any of:
object
path
required
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
properties
object
key
additional properties
string
<= 200 characters /^\$(\.[A-Za-z_][A-Za-z0-9_-]{0,63}|\[\d{1,4}\]){1,12}$/
hmac
required
object
header
required
string
algorithm
required
string
Allowed values: sha256-hex sha256-base64
prefix
required
string
lastReceivedAt
required
string
nullable
lastResult
required
string
nullable
Allowed values: accepted duplicate mapping_failed unauthorized
lastBody
nullable
createdAt
required
string
updatedAt
required
string
url
string

Example

{
"status": "active",
"mapping": {
"properties": {}
},
"hmac": {
"algorithm": "sha256-hex"
},
"lastResult": "accepted"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Service temporarily unavailable

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}