Ask members to connect an integration
Notifies every recipient that has not already connected. The integration must be placed in the space and the scope set must belong to this integration auth (404 otherwise). Each recipient must be a member holding integrations:connect in the space: a 400 on recipient_user_ids otherwise (GET /api/connection-requests/recipients lists them). Requires connection-requests:write (space presets admin and builder), never granted to an API key. Made from the dashboard, signed in as a person: any other credential is a 403 dashboard_session_required.
/api/connection-requestsCookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Header Parameters
Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).
uuidSpace ID. Required for space-scoped routes (agents, runs, schedules, and space-scoped module routes). Not needed for API key auth (space resolved from key).
Request Body
application/json
curl -X POST "https://your-instance/api/connection-requests" \ -H "Content-Type: application/json" \ -d '{ "integration_package_id": "string", "auth_key": "string", "scope_set_id": "e3b61958-87f2-462a-b8c7-b9dfa5937d2d", "recipient_user_ids": [ "string" ] }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"integration_package_id": "string",
"auth_key": "string",
"scope_set": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"message": "string",
"created_by_name": "string",
"createdAt": "2019-08-24T14:15:22Z",
"recipients": [
{
"userId": "string",
"name": "string",
"email": "string",
"status": "pending",
"declined_at": "2019-08-24T14:15:22Z",
"fulfilled_at": "2019-08-24T14:15:22Z"
}
]
}{
"type": "https://docs.appstrate.dev/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"detail": "name: Invalid input: expected string, received undefined (+2 more)",
"code": "validation_failed",
"request_id": "req_abc123",
"errors": [
{
"field": "name",
"code": "required",
"message": "Invalid input: expected string, received undefined"
},
{
"field": "email",
"code": "invalid_format",
"message": "Invalid email address"
},
{
"field": "age",
"code": "invalid_type",
"message": "Invalid input: expected number, received string"
}
]
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Insufficient permissions",
"code": "forbidden",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Resource not found",
"code": "not_found",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/rate-limited",
"title": "Rate Limited",
"status": 429,
"detail": "Too many requests. Please try again shortly.",
"code": "rate_limited",
"request_id": "req_abc123",
"retry_after": 30
}