---
title: "Get provider call"
method: GET
path: "/api/provider-calls/{sid}"
tags: ["provider_calls"]
---

# Get provider call

`GET /api/provider-calls/{sid}`

## Request

- Base URL: `https://beta.getsales.io/integrations/v1`
- URL: `https://beta.getsales.io/integrations/v1/api/provider-calls/{sid}`
- Auth: HTTP bearer and API key in header `Team-SID`

One call with its capped snapshots: the sanitized request (the rendered prompt), the raw response, the normalized output, the tokens and the price. Why did this cell produce that.

Contract:
- MCP tool `get_provider_call`, registry package `mcp.integrations/provider_calls`, mount `integrations.providers`.
- Operation `get`, response envelope `get`.
- Flags: read only.

## Path parameters

- `sid` string, required: The in_pc_* sid of the row to read.

## Query parameters

- `include[]` string[]: Relations to attach to the row; omit for the bare row.

## Response `200`

`get` success envelope.

- GetProviderCallResponse
  - `success` true, required
  - `operation` 'get', required
  - `item` object, required
    - `sid` string, required: Call sid (in_pc_...).
    - `team_sid` string, required: The workspace (ts_tm_...).
    - `source_service` string, required: Who asked: playtables, unibox, agents, api, app.
    - `tool_type` string, nullable, required: The caller's tool kind: playtable_field (a cell), playtable_action, workflow_task, agent_run, custom_tool, dictation.
    - `tool_sid` string, nullable, required: The invoking row (a field pt_fd_, a run...); opaque, may dangle.
    - `object_type` string, nullable, required: The row the call was about: people, company, conversation.
    - `object_sid` string, nullable, required: Its sid; opaque, may dangle.
    - `operation` 'llm.generate' | 'llm.embed' | 'email.find' | 'email.verify' | 'http.request' | 'crm.contact_upsert' | 'crm.company_upsert' | 'crm.associate' | 'crm.properties_list' | 'serp.search' | 'audio.transcribe', required: What was called.
    - `provider` 'openai' | 'anthropic' | 'google' | 'deepseek' | 'xai' | 'voyage' | 'cohere' | 'hunter' | 'findymail' | 'anymailfinder' | 'emaillistverify' | 'custom' | 'hubspot' | 'serper', required: The adapter that ran it.
    - `model` string, nullable, required: The model on an llm or audio call: the price axis; null elsewhere.
    - `custom_tool_sid` string, nullable, required: The custom tool of an http.request (in_tl_...); null elsewhere.
    - `provider_connection_sid` string, nullable, required: The team grant of a crm call or the tool's connection; null = the platform key.
    - `status` 'pending' | 'in_progress' | 'success' | 'failed' | 'retrying' | 'cancelled', required: success | failed for a finished call; pending = an http.request claimed and never finalized (outcome unknown).
    - `http_code` integer, nullable, required: The provider's answer; null on a network error or timeout.
    - `duration_ms` integer, nullable, required: Wall clock of the attempt.
    - `error_code` 'auth_error' | 'rate_limited' | 'timeout' | 'network_error' | 'invalid_input' | 'provider_error' | 'not_found', nullable, required: The classified failure; not_found = an operation-level miss (no email exists); null on success.
    - `error_message` string, nullable, required: A tenant-readable rendering; the raw body is in response.
    - `request` object, nullable, required: The sanitized provider request (no auth material); capped at 64 KB; null on search rows.
    - `response` object, nullable, required: The raw provider body, truncated to 16 KB; null on search rows.
    - `output` object, nullable, required: The normalized result the caller received; null on search rows.
    - `prompt_tokens` integer, nullable, required: llm calls only.
    - `completion_tokens` integer, nullable, required: llm calls only.
    - `total_tokens` integer, nullable, required: llm calls only.
    - `cache_hit` boolean, required: true = answered from the cross-team result cache, no round-trip, 0 credits.
    - `credits_charged` union, required: Credits priced at call time (a decimal); 0 on a failure, a cache hit, a bundled call.
      - number
      - string
    - `billing` 'standard' | 'bundled' | 'caller', nullable, required: standard = the catalog rate, held and settled on the team wallet by the platform (the billing bus, 2026-10-22); bundled = folded into a charge the caller already made (0); caller = the caller meters it against the wallet itself under the same key (the email finder and verifier of a waterfall); null on rows before the column.
    - `idempotency_key` string, required: The caller's end-to-end dedup key; a replay returns the stored outcome.
    - `created_at` string, required: ISO 8601 UTC: the metrics period column.
    - `updated_at` string, required: ISO 8601 UTC.
  - `included` object, required
    - `provider_connection` object, nullable: The connection the call ran through (ProviderConnectionDomain); null for platform-key calls and dangling refs.
  - `includes` string[], required
  - `meta` object, required
    - `trace_id` string, required: UUID v7; same 128-bit value as the X-Trace-Id header.
    - `span_id` string, required: 16 hex chars, root span of this request.
    - `timestamp` string, required: ISO 8601 UTC (Y-m-dTH:i:sZ), response time.
    - `duration_ms` integer, required: Server-side wall clock.
    - `team_sid` string, nullable: The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends.
    - `actor_type` string, nullable: user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends.

## Other responses

- `4XX`: MCP error envelope. `error.code` is one of validation_failed, nothing_to_update, not_found, relation_not_found, invalid_transition, limit_exceeded, payment_required, duplicate_rejected, conflict, delete_blocked, unauthorized, forbidden, rate_limited, not_implemented.
- `5XX`: MCP error envelope with `error.code` internal_error or service_unavailable.

---

[API](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-integrations.md) - [All operations](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-integrations/llms.txt) - [OpenAPI document](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-integrations/revisions/2e7105d58335?raw)
