The caller's pins and schedules a connection delete would rewrite
Lists the caller's own member pins and schedules whose connection set names this connection — the references DELETE /api/me/connections/{connectionId} rewrites — so a client can say, before confirming, what each loses. Each set keeps connection_count - 1 connections; a pin left with none is removed (the agent falls back to the default resolution), and a schedule override left with none drops that integration AND disables the schedule (disables: true) — an unattended run never silently falls back to another account; its owner re-picks and re-enables it. One schedule entry per (schedule, integration). Other actors' enabled schedules naming the connection are disabled by the delete with their overrides kept (disabled_reason: connection_deleted); they are counted in other_schedules_disabled_count, never listed. Other members' pins, admin pins and org defaults are not listed: the delete leaves them untouched. The lists are empty for an id that is not a UUID, unknown, or of a connection the caller does not own. A delegated or end-user credential sees its bound organization (and space) only: a connection outside it answers empty lists, and only the owner's schedules inside it are listed, though the delete also rewrites the owner's schedules outside it. A pinned connection is still listed, though its delete answers 409 connection_pinned. An end user has no pins.
/api/me/connections/{connectionId}/delete-impactCookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Path Parameters
curl -X GET "https://your-instance/api/me/connections/string/delete-impact"{
"other_schedules_disabled_count": 0,
"pins": [
{
"agent_package_id": "string",
"agent_display_name": "string",
"integration_package_id": "string",
"connection_count": 1
}
],
"schedules": [
{
"scheduleId": "string",
"schedule_name": "string",
"agent_package_id": "string",
"agent_display_name": "string",
"integration_package_id": "string",
"connection_count": 1,
"disables": true
}
]
}{
"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"
}