List the connection requests of the space
Newest first, paginated with limit (default 50, at most 200) and offset. Each recipient's status is stored: declined, or fulfilled with the covering connection. Requires connection-requests:read (space presets admin and builder), never granted to an API key.
/api/connection-requestsCookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Query Parameters
501 <= value <= 200Number of items to skip before the first returned item. A value that is not a non-negative integer is refused with 400 (param: offset).
00 <= valueReturn only the requests of this agent (@scope/name). A package the caller cannot read yields an empty page, not a refusal. A value that is not a package id is rejected with 400; an empty value reads as absent.
^@[a-z0-9]([a-z0-9-]*[a-z0-9])?\/[a-z0-9]([a-z0-9-]*[a-z0-9])?$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).
curl -X GET "https://your-instance/api/connection-requests"{
"object": "list",
"hasMore": true,
"data": [
{
"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"
}