Skip to content

Public: send the 6-digit code to the email of the send's recipient (it is not revealed to anyone else who has the link)

POST
/v1/doc-links/{token}/code
curl --request POST \
--url https://api.replifier.com/v1/doc-links/example/code \
--header 'Content-Type: application/json' \
--data '{ "r": "example" }'

Requires the signed r from the email. Maximum 3 codes per hour per send; each code is valid for 10 minutes and 5 attempts.

token
required
string
/^[a-z2-7]{26}$/
Media typeapplication/json
object
r
required
string
>= 10 characters <= 2000 characters

Example generated

{
"r": "example"
}

Code sent

Media typeapplication/json
object
sent
required
boolean

Example

{
"sent": true
}

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

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

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

Too many attempts

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