Skip to main content
POST
Create Setup Link
Call this endpoint from your backend to create a Setup Link for a Connected User. Send the returned url to your user. They open it, connect their accounts, and choose what content to sync. This endpoint is served from https://zeus.useparagon.com (US Cloud) or https://zeus.eu.paragon.so (EU Cloud), not the Agent OS base URL used by Search Context. Use the server dropdown in the API playground to switch regions.

Authentication

Authenticate with either of the following in the Authorization header: Setup Links must be enabled for your project. If they aren’t, the request returns a 403 with the error code 56016.

Expiration

Links expire after 1 hour by default. Set expiresIn (in seconds) to change this, up to a maximum of 24 hours. The url contains a signed token. Treat it like a credential and share it only with the intended user.

Limiting integrations

By default, a Setup Link offers every integration enabled for the project. Pass integrations to limit it to specific ones, using the same type names as the Connect SDK. If any name isn’t enabled for the project, the request returns a 400 with the error code 56004. When you authenticate with a Paragon User Token that restricts integration permissions, the link only offers integrations the token allows.

Authorizations

Authorization
string
header
required

A Paragon API key (starting with api_key_) that has the Setup Links API scope. Create one in the Paragon dashboard.

Path Parameters

projectId
string<uuid>
required

Your Paragon Project ID.

Body

application/json
endUserId
string

The Connected User the Setup Link is for. Required when you authenticate with an API key. When you authenticate with a Paragon User Token, it must match the token's sub claim, and defaults to it when omitted.

expiresIn
integer
default:3600

How long the link stays valid, in seconds. Values above 86400 (24 hours) are capped at 86400.

Required range: 1 <= x <= 86400
integrations
string[]

Limit the link to these integrations, using the same type names as the Connect SDK (for example, googledrive). Every integration must be enabled for the project. Omit to allow all enabled integrations.

Response

The Setup Link was created.

url
string
required

The hosted Setup Link URL to send to your user. The URL carries a signed token, so treat it like a credential.

expiresAt
string<date-time>
required

When the link expires, as an ISO 8601 timestamp.