Skip to main content
Documentation

Comms

comms.get_call

Get one call — direction, outcome, duration and voicemail message
Read-onlyRead budget

REST

Shipping
POST /api/v1/comms/get_call

MCP tool

Live
comms.get_call

Exposed on: REST API · Shop MCP server · Claude connector · Dash (in-app copilot) · Zapier. Part of the Comms domain.

Operating contract

One call's own record: which way it went, which numbers, when it started and ended, how long it ran, who picked it up, and which of the four artefacts exist (recording, voicemail, transcript, AI recap).

THE ARTEFACTS ARE FLAGS, NOT CONTENT. has_recording true means audio exists and comms.get_call_recording will mint a link for it; it does not put the audio in this response. Same for the transcript and the AI recap. That separation is what lets a shop grant an integration the call LOG without granting it every word a customer said.

duration_seconds is the whole call. recording_duration_seconds is only the recorded part, which starts when somebody answers — they differ on a call that rang for twenty seconds first, and reporting one as the other overstates talk time.

conversation is the thread this call is filed into, for comms.list_messages. A call with conversation: null was never matched to a contact — comms.resolve_contact on its from number is how to find out who it was.

Who may call it

Permission
calls.accessThe caller must hold Calls at the ACT level. A read-only dashboard grant on the same section is refused.
Plan
Every planNo plan gate. Available on every Service VIN plan.
Retries
naturalNaturally idempotent — running it twice leaves the same world as running it once. A retrying integration needs no key.
Rate class
readCounted against the read budget — the widest of the four.

Input

FieldTypeDescription
callrequiredstringuuid

The call's id, as returned by comms.list_calls or comms.list_missed_calls.

Output

FieldTypeDescription
idstring

conversationstring | null

customer_idstring | null

directionstring

statusstring

fromstring

tostring

started_atstring

ended_atstring | null

duration_secondsnumber | null

answered_bystring | null

has_recordingboolean

recording_duration_secondsnumber | null

has_voicemailboolean

voicemail_duration_secondsnumber | null

has_transcriptboolean

has_ai_summaryboolean

Examples

Built from this capability's own schema — required fields and the ones carrying a default, and nothing invented. Paste one and it validates.

curl
export SERVICEVIN_API_KEY=svk_live_…

curl -X POST https://www.servicevin.com/api/v1/comms/get_call \
  -H "Authorization: Bearer $SERVICEVIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call":"…"}'

TypeScript (fetch)
const res = await fetch("https://www.servicevin.com/api/v1/comms/get_call", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SERVICEVIN_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "call": "…"
  }),
});

// Success and failure are both envelopes. Switch on error.code, never
// on error.message — the codes are stable, the messages are for people.
const payload = await res.json();
if (!res.ok) throw new Error(payload.error.code);
const data = payload.data;

Python (requests)
import os, requests

res = requests.post(
    "https://www.servicevin.com/api/v1/comms/get_call",
    headers={"Authorization": f"Bearer {os.environ['SERVICEVIN_API_KEY']}"},
    json={
    "call": "…"
},
    timeout=30,
)
payload = res.json()
if not res.ok:
    raise RuntimeError(payload["error"]["code"])
data = payload["data"]

MCP tools/call — https://www.servicevin.com/api/mcp
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comms.get_call",
    "arguments": {
      "call": "…"
    }
  }
}

Refusals

The four gates run in this order on every surface, and the order is not arbitrary — see Authentication.

StatusCodeWhen
404not_foundThe id is unknown, or the feature is not enabled for this account. Deliberately the same answer for both.
403forbiddenThis login does not hold calls.access.
422validation_errorAn argument was wrong. The message names the field.
429rate_limitedToo many read calls. Back off and retry.
500internal_errorSomething failed on our side. Nothing was changed.