Skip to content

Test a mapping (the one sent or the saved one) against the last received body, without saving anything (reports.read)

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

Example

ibw_01hx0000000000000000000000
Media typeapplication/json
object
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}$/

Mapping result

Media typeapplication/json
object
ok
required
boolean
field
string
event
nullable

Example generated

{
"ok": true,
"field": "example",
"event": "example"
}

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"
}
}

Conflict

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"
}
}