Skip to Content
SendlySendly
API ReferenceConnections

Get a one-time link that starts a connection

POST
/api/v1/connections/links

slack (the default) opens Slack's consent screen bound to this project; opening it needs a project admin. dodomain starts DoDomain's guided DNS setup for domainId: a metered session is minted now, so a second call for the same domain within 60 seconds answers 429 DODOMAIN_SESSION_COOLDOWN. Each link works once, for 15 minutes, for the account it was made for.

Requires the connections:write scope — Connect, re-verify and disconnect services.

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.

application/json
  1. body
provider?string
Default"slack"
Value in"slack""dodomain"
domainId?string
Length1 <= length <= 64

Response Body

OK

application/json
  1. response
links*array<>
Example Request
curl -X POST 'https://api.sendly.now/api/v1/connections/links' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "links": [    {      "provider": "slack",      "domainId": "string",      "status": "action_required",      "url": "http://example.com",      "expires_in": 0,      "what": "string",      "instruction": "string"    }  ]}