listSpaceCalls
Records › Calls.
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.
The Calls pills. MISSED is an incoming call nobody answered; INCOMING is every other incoming call.
A teammate or an AI employee. Give one of the two.
Matches the contact's name. Transcripts are not searched: no index covers them.
Default 50.
Every field, all the way down
[
{
"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.
{
"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
unknown_variableA variable the operation does not declare. A typo is refused rather than silently dropped.
unauthorizedNo bearer header, or the key is invalid or revoked.
insufficient_scopeThe key lacks the scope the operation requires.
forbiddenA referenced record does not exist, was deleted, or is outside your organization. The gateway cannot tell those apart.
Behaviour
A read. It rejects an Idempotency-Key header with 400 bad_request.