The credential proxy's calls made with one of the caller's connections

Every call the credential proxy (/api/credential-proxy/proxy, /api/credential-proxy/tools and /tools/call, and the MCP exchanges of POST /api/integrations/{packageId}/discover) made with a connection the caller owns, whoever made it and from whichever space: a colleague using a connection shared into a space, a run, an API key. One row per call or MCP operation dispatched to the upstream, and so may have sent the credential, successful or not; connection_id is never null here. Authorized by ownership, capped by a delegated credential's integrations:read ceiling. A delegated or end-user credential reads inside its bound organization (and space, when it pins one) only. Ownership is read on the connection itself: once it is deleted this route answers 404, and its calls remain listed by GET /api/integrations/calls in the spaces they were made in. Newest first by id, the order rows were recorded in (a run's sidecar reports its calls in batches, so it can differ slightly from called_at), keyset-paginated on id: the Link header names the next page. An unknown query parameter is a 400, never an ignored filter. Rate-limited to 60/min.

GET/api/me/connections/{connectionId}/calls

Authorization

better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

Path Parameters

connectionId*string
Formatuuid

Query Parameters

actor_id?string

Only the calls this principal made.

runId?string

Only the calls that declared this run.

start_date?string

Only the calls recorded at or after this instant (createdAt; ISO 8601 with an offset).

Formatdate-time
end_date?string

Only the calls recorded at or before this instant (createdAt; ISO 8601 with an offset).

Formatdate-time
limit?integer
Default50
Range1 <= value <= 200
startingAfter?string

Cursor: the id of the last call of the previous page. Follow the RFC 5988 Link: <…>; rel="next" response header instead of building it by hand.

Match^[1-9][0-9]{0,14}$
curl -X GET "https://your-instance/api/me/connections/497f6eca-6276-4993-bfeb-53cbbbba6f08/calls"
{
  "object": "list",
  "data": [
    {
      "id": 0,
      "createdAt": "2019-08-24T14:15:22Z",
      "spaceId": "string",
      "integration_package_id": "string",
      "owner_type": "user",
      "owner_id": "string",
      "actor_type": "user",
      "actor_id": "string",
      "apiKeyId": "string",
      "auth_method": "string",
      "runId": "string",
      "chat_session_id": "string",
      "method": "string",
      "host": "string",
      "outcome": "string",
      "duration_ms": 0,
      "request_id": "string",
      "called_at": "2019-08-24T14:15:22Z",
      "call_id": "0d0a16ab-a508-4d58-bf24-5dc3cb248f3e",
      "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9"
    }
  ],
  "hasMore": true
}

{
  "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
}