Skip to content

Create a capture link (deep link or keyword)

POST
/v1/brands/{brand}/capture-links
curl --request POST \
--url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/capture-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "connectionId": "example", "channel": "whatsapp", "kind": "wa_me", "preMessage": "example", "keyword": "example", "toAddress": "example", "sourceName": "example", "description": "example" }'
brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
Media typeapplication/json
object
connectionId
required
string
/^ccc_[0-9a-z]{26}$/
channel
required
string
Allowed values: whatsapp sms
kind
required
string
Allowed values: wa_me sms_to keyword
preMessage
string
nullable <= 1000 characters /^[^\x00-\x1f\x7f]*$/
keyword
string
nullable >= 1 characters <= 32 characters /^[A-Za-z0-9]+$/
toAddress
required
string
>= 1 characters <= 32 characters /^[^\x00-\x1f\x7f]*$/
sourceName
required
string
>= 1 characters <= 200 characters /^[^\x00-\x1f\x7f]*$/
description
string
nullable <= 1000 characters /^[^\x00-\x1f\x7f]*$/

Capture link created

Media typeapplication/json
object
id
required
string
organizationId
required
string
brandId
required
string
connectionId
required
string
channel
required
string
Allowed values: whatsapp sms
kind
required
string
Allowed values: wa_me sms_to keyword
preMessage
required
string
nullable
keyword
required
string
nullable
refCode
required

Unique link key (wa_me/sms_to): travels inside the prefilled message and ties the signup to its source

string
nullable
toAddress
required
string
sourceName
required
string
description
required
string
nullable
status
required
string
Allowed values: active paused archived
deepLink
required
string
createdAt
required
string
updatedAt
required
string

Example

{
"channel": "whatsapp",
"kind": "wa_me",
"status": "active"
}

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