Skip to main content
POST
/
event-subscriptions
/
connections
/
{id}
/
authorization
Start OAuth2 authorization
curl --request POST \
  --url https://panel.sendcloud.sc/api/v3/event-subscriptions/connections/{id}/authorization \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": {
    "authorization_url": "https://www.klaviyo.com/oauth/authorize?client_id=sendcloud&response_type=code&redirect_uri=https%3A%2F%2Fpanel.sendcloud.sc%2Fapi%2Fv3%2Fevent-subscriptions%2Fconnections%2Fauthorization%2Fcallback&state=abc123"
  }
}
Start the OAuth2 authorization flow for a Klaviyo connection. This endpoint returns an authorization URL that the user should be redirected to in their browser. After the user authorizes access, the OAuth provider will redirect back to the Sendcloud callback URL, completing the connection setup.
1

Create a Klaviyo connection

Use the Create a connection endpoint with type: "klaviyo".
2

Start OAuth2 authorization

Call this endpoint to get the authorization URL.
3

Redirect the user

Open the authorization_url in the user’s browser to complete the OAuth2 flow.

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Path Parameters

id
integer
required

The id of the connection to authorize.

Response

OK

OAuth2 authorization URL

data
Authorization Response · object

Response containing the OAuth2 authorization URL for connecting external services like Klaviyo.