Start connecting with OAuth
View as MarkdownPOST
/v1/workspaces/{workspaceId}/connections/authorizeReturns the provider's sign-in URL. After the person approves, the provider returns to the API, which creates the connection (or re-authorises connectionId) and redirects to the web app's connection settings with ?connection=<id> or ?error=. Owners and admins only.
curl -X POST "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA/connections/authorize" \
-H "Authorization: Bearer $LYDIE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"connector": "string",
"name": "Notes"
}'Path parameters
Body
- settingsobject
Default
{} Default
null
Response
- expiresAttimestamp
{
"authorizeUrl": "string",
"expiresAt": "2026-11-12T09:30:00.000Z"
}Errors use one envelope for every endpoint. See Errors and versions.