GoliathDevelopersGet an API key
Reference/Spacesgenerated from the gateway manifest

listSpaceCalls

Records › Calls.

POST/api/v1/callREADreadruns as the key's owner
View as Markdown

Records › Calls: the organization's calls, newest first: direction, when, how long, whether recorded, the contact, status and disposition. Filter by direction, contactId, handledBy ({ userId } or { agentId }) or query (the contact's name; transcripts are not searched). Read one call's recording, transcript and summary with the conversations domain's getCallRecording(callId). Page with after = nextCursor.

curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listSpaceCalls",
    "variables": {}
  }'
import { GoliathClient } from '@goliath-data/sdk'

const goliath = new GoliathClient({
  apiKey: process.env.GOLIATH_API_KEY!,
  baseUrl: 'https://server.goliathdata.com',
})

const result = await goliath.spaces.listSpaceCalls({})
const res = await fetch('https://server.goliathdata.com/api/v1/call', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.GOLIATH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    operationId: 'listSpaceCalls',
    variables: {}
  }),
})
const { data, errors } = await res.json()

limit is clamped to 50.

Variables

The example sends only what the schema requires. Some operations also need one of several optional variables (one filter or another, say); the description above says which.

filterSpacesCallsFilter
directionSpacesCallDirection

The Calls pills. MISSED is an incoming call nobody answered; INCOMING is every other incoming call.

INCOMINGOUTGOINGMISSED
handledBySpacesCallHandlerInput

A teammate or an AI employee. Give one of the two.

contactIdID
queryString

Matches the contact's name. Transcripts are not searched: no index covers them.

limitInt

Default 50.

afterString
Every field, all the way down
variables
[
  {
    "name": "filter",
    "type": "SpacesCallsFilter",
    "required": false,
    "description": null,
    "defaultValue": null,
    "fields": [
      {
        "name": "direction",
        "type": "SpacesCallDirection",
        "required": false,
        "description": "The Calls pills. MISSED is an incoming call nobody answered; INCOMING is every other incoming call.",
        "defaultValue": null,
        "enumValues": [
          "INCOMING",
          "OUTGOING",
          "MISSED"
        ]
      },
      {
        "name": "handledBy",
        "type": "SpacesCallHandlerInput",
        "required": false,
        "description": "A teammate or an AI employee. Give one of the two.",
        "defaultValue": null,
        "fields": [
          {
            "name": "userId",
            "type": "ID",
            "required": false,
            "description": null,
            "defaultValue": null
          },
          {
            "name": "agentId",
            "type": "ID",
            "required": false,
            "description": null,
            "defaultValue": null
          }
        ]
      },
      {
        "name": "contactId",
        "type": "ID",
        "required": false,
        "description": null,
        "defaultValue": null
      },
      {
        "name": "query",
        "type": "String",
        "required": false,
        "description": "Matches the contact's name. Transcripts are not searched: no index covers them.",
        "defaultValue": null
      }
    ]
  },
  {
    "name": "limit",
    "type": "Int",
    "required": false,
    "description": null,
    "defaultValue": "50"
  },
  {
    "name": "after",
    "type": "String",
    "required": false,
    "description": null,
    "defaultValue": null
  }
]

Response

What comes back under data: a list shows as one entry, and a value as its type.

response shape
{
  "data": {
    "spacesQuery": {
      "records": {
        "calls": {
          "nodes": [
            {
              "id": "<ID>",
              "direction": "INCOMING",
              "startedAt": "2026-01-01T00:00:00.000Z",
              "durationSeconds": 0,
              "hasRecording": true,
              "contact": {
                "id": "<ID>",
                "name": "…"
              },
              "call": {
                "id": "<ID>",
                "status": "RINGING",
                "disposition": "Connected"
              }
            }
          ],
          "hasNextPage": true,
          "nextCursor": "…"
        }
      }
    }
  }
}

Errors

Behaviour

A read. It rejects an Idempotency-Key header with 400 bad_request.