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

Every call the credential proxy (/api/credential-proxy/proxy, 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 that may have sent the credential, successful or not. 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, 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 made at or after this instant (ISO 8601 with an offset).

Formatdate-time
end_date?string

Only the calls made at or before this instant (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",
      "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",
      "integration_package_id": "string",
      "owner_type": "user",
      "owner_id": "string",
      "actor_type": "user",
      "actor_id": "string",
      "apiKeyId": "string",
      "auth_method": "string",
      "runId": "string",
      "method": "string",
      "host": "string",
      "outcome": "string",
      "duration_ms": 0,
      "request_id": "string"
    }
  ],
  "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
}