Get a one-time link that starts a connection
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.
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.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/v1/connections/links" \ -H "Content-Type: application/json" \ -d '{}'{
"links": [
{
"provider": "slack",
"domainId": "string",
"status": "action_required",
"url": "http://example.com",
"expires_in": 0,
"what": "string",
"instruction": "string"
}
]
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"errors": [
{
"pointer": "string",
"code": "string",
"message": "string"
}
],
"next": {
"tool": "string",
"args": {
"property1": null,
"property2": null
}
}
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"errors": [
{
"pointer": "string",
"code": "string",
"message": "string"
}
],
"next": {
"tool": "string",
"args": {
"property1": null,
"property2": null
}
}
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"errors": [
{
"pointer": "string",
"code": "string",
"message": "string"
}
],
"next": {
"tool": "string",
"args": {
"property1": null,
"property2": null
}
}
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"errors": [
{
"pointer": "string",
"code": "string",
"message": "string"
}
],
"next": {
"tool": "string",
"args": {
"property1": null,
"property2": null
}
}
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"errors": [
{
"pointer": "string",
"code": "string",
"message": "string"
}
],
"next": {
"tool": "string",
"args": {
"property1": null,
"property2": null
}
}
}