Skip to Content
SendlySendly
API ReferenceKeyless

Resend a keyless start's code

POST
/api/v1/keyless/resend

Mail a new 6-digit code, replacing the old code and its tries. Bearer: the keyless key. At most 3 codes in a start's life (the first included), at least 60 seconds apart.

Requires the emails:test scope — Send test emails to your own address from the Sendly sandbox.

headerAuthorizationBearer <API Key>

API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.

Response Body

New code mailed

application/json
  1. response

A new code, sent.

email*string

The address the new code was sent to.

Formatemail
code_expires_at*string

When the new code stops working.

Formatdate-time
codes_left*integer

How many more codes this start can be sent.

next*

The next step.

Example Request
curl -X POST 'https://api.sendly.now/api/v1/keyless/resend'
Example Response
{  "email": "user@example.com",  "code_expires_at": "2019-08-24T14:15:22Z",  "codes_left": 0,  "next": {    "call": "string",    "say": "string"  }}