Skip to content
Docs

Connect a tool in one click

POST
/api/workspaces/{ws}/connect/{type}

For catalog entries with oneClick: true: makes the connection (status: "pending") and answers the tool's page to approve it; afterwards the tool sends people back to returnTo (a path in the app), connected. Cancelling there removes the pending connection. With connectionId, reconnects that connection instead.

Authorization

session
cookiebetter-auth.session_token<token>

Set by POST /api/auth/sign-in/email.

Path Parameters

ws*string

The workspace id (from GET /api/me).

type*string

The tool, e.g. linear.

Request Body

application/json
  1. body
returnTo?string
connectionId?string

Response Body

{ url }: send the person there.

application/json
Example Request
curl -X POST 'https://app.useroster.work/api/workspaces/string/connect/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "url": "https://mcp.example.com/authorize?client_id=…"}