Developers
Set your API contextPick a region and space ID once. Every sample fills in your base URL.
Where do I find these?

In Coevera: open your space's API application and choose Show Access. It shows the space ID and the base URL, whose host starts with your region.

From the API: if you know the space ID, the discovery endpoint GET /api/discovery/spaces/{space_id} returns its region and base URLs, without credentials.

Only the region and space ID are kept, in this browser. Never paste a key or password here.

More in the quickstart

GraphQLRepositoriescall

entities.call

Read call records with the call repository, and change them with the call mutations. Same records as the REST Calls entity.

Queries

Fields of entities { call { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
CallEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[CallEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: CallFilterInput, orderBy: [CallOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[CallEntity!]!
QUERYgetByCriteria(filter: CallFilterInput, orderBy: [CallOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
CallEntityConnection
QUERYgetChangedFieldsSinceRevision(id: UUID!, revision: Int!)
Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.
[UUID!]!
QUERYgetBySid(entitySid: String!)
Returns the call with the given call SID assigned by the telephony provider. An error is returned when no such call exists.
CallEntity

Mutations

KindMutationDoesReturns
MUTATIONcreateCall(input: CreateCallInput!, validationLevel: [ValidationLevel!])Create one recordCreateCallPayload
MUTATIONupdateCall(input: UpdateCallInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateCallPayload
MUTATIONbulkUpdateCall(input: [CreateOrUpdateCallInput!]!, deleteInput: [DeleteCallInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateCallPayload
MUTATIONdeleteCall(input: DeleteCallInput!)Soft-deleteDeleteCallPayload

Types

The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.

CallEntity object 34 fields: isDeleteProtected, id, isDeleted, …

Phone call logged in the space, linked to the user who made it and to the contact, account, lead or opportunity it concerns.

FieldTypeDescription
isDeleteProtectedBoolean!True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
accountAccountEntityAccount the call is linked to, when applicable.
callerClientEntityUser who initiated the call.
clientClientEntityUser the call was made with, when the call was an internal user-to-user call.
contactContactEntityContact the call is linked to, when applicable.
leadLeadEntityLead the call is linked to, when the call is associated with a lead.
opptyOpportunityEntityOpportunity the call is linked to, when the call is associated with an opportunity.
opptyProductRelationOpptyProductRelationEntitySpecific opportunity line-item discussed on the call, when applicable.
productProductEntityProduct discussed on the call, when applicable.
accountIdIDId of the linked account.
callerIdID!Id of the calling user.
clientIdIDId of the user the call was made with.
contactIdIDId of the linked contact.
leadOpptyIdIDId of the linked lead or opportunity, or empty when not linked.
opptyProductRelationIdIDId of the linked opportunity product line-item.
phoneNumberStringExternal phone number called or received, in E.164 format.
productIdIDId of the linked product.
transcriptionIdStringExternal transcription identifier from the calling provider.
transcriptionLanguageStringLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US").
transcriptionSummaryStringAI-generated summary of the call transcription.
twilioCallLogIdID!Id of the call-log record from the calling provider that this call is associated with.
transcriptionFileIdUUIDId of the cloud object holding the transcription payload, when available.
audioIdUUIDId of the cloud object holding the call audio recording, when available.
twilioCallSidString!External call identifier from the calling provider (e.g. Twilio Call SID).
audioStatusAudioStatusRecording and transcription status of the call, computed by the server. The only accepted inputs are Uploading on create, to announce that a recording will be uploaded, and NoRecording on update, to mark that the call has no recording.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
audioCloudObjectEntityAudio recording of the call (MP3 file); empty when none is stored.
taskTaskEntityTask that represents this phone call; empty when there is none.
transcriptionFileCloudObjectEntityTranscription of the call as a JSON file; empty when none is stored.
mediaTranscriptionMediaEntityRecording of this call, with its transcription and summary when available; null when there is none.
CallEntityConnection object pageInfo: PageInfo!, edges: [CallEntityEdge]!, totalCount: Int

Paginated list of Call records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[CallEntityEdge]!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.
CallEntityEdge object node: CallEntity, cursor: String!

A Relay edge containing a CallEntity and its cursor.

FieldTypeDescription
nodeCallEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
CallFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

Filter conditions for Call records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

Input fieldTypeDescription
OR[CallFilterInput!]Matches records that meet at least one of the listed filters.
AND[CallFilterInput!]Matches records that meet all of the listed filters.
NOTCallFilterInputMatches records that do not meet this filter.
globalSearchQueryStringSearch term matched against the fields that the global search covers for this entity.
idEntityFilterStringFieldUnique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
accountIdEntityFilterStringFieldId of the linked account.
callerIdEntityFilterStringFieldId of the calling user.
clientIdEntityFilterStringFieldId of the user the call was made with.
contactIdEntityFilterStringFieldId of the linked contact.
leadOpptyIdEntityFilterStringFieldId of the linked lead or opportunity, or empty when not linked.
opptyProductRelationIdEntityFilterStringFieldId of the linked opportunity product line-item.
phoneNumberEntityFilterStringFieldExternal phone number called or received, in E.164 format.
productIdEntityFilterStringFieldId of the linked product.
transcriptionIdEntityFilterStringFieldExternal transcription identifier from the calling provider.
transcriptionLanguageEntityFilterStringFieldLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US").
transcriptionSummaryEntityFilterStringFieldAI-generated summary of the call transcription.
twilioCallLogIdEntityFilterStringFieldId of the call-log record from the calling provider that this call is associated with.
accountAccountFilterInputAccount the call is linked to, when applicable. Matches records where a related record meets these conditions.
callerClientFilterInputUser who initiated the call. Matches records where a related record meets these conditions.
clientClientFilterInputUser the call was made with, when the call was an internal user-to-user call. Matches records where a related record meets these conditions.
contactContactFilterInputContact the call is linked to, when applicable. Matches records where a related record meets these conditions.
leadLeadFilterInputLead the call is linked to, when the call is associated with a lead. Matches records where a related record meets these conditions.
opptyOpportunityFilterInputOpportunity the call is linked to, when the call is associated with an opportunity. Matches records where a related record meets these conditions.
opptyProductRelationOpptyProductRelationFilterInputSpecific opportunity line-item discussed on the call, when applicable. Matches records where a related record meets these conditions.
productProductFilterInputProduct discussed on the call, when applicable. Matches records where a related record meets these conditions.
CallOrderByInput input Asc or Desc per field

Sorting of Call records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
account[AccountOrderByNestedInput!]Account the call is linked to, when applicable. Sorts by fields of the related record, listed in order of priority.
caller[ClientOrderByNestedInput!]User who initiated the call. Sorts by fields of the related record, listed in order of priority.
client[ClientOrderByNestedInput!]User the call was made with, when the call was an internal user-to-user call. Sorts by fields of the related record, listed in order of priority.
contact[ContactOrderByNestedInput!]Contact the call is linked to, when applicable. Sorts by fields of the related record, listed in order of priority.
lead[LeadOrderByNestedInput!]Lead the call is linked to, when the call is associated with a lead. Sorts by fields of the related record, listed in order of priority.
oppty[OpportunityOrderByNestedInput!]Opportunity the call is linked to, when the call is associated with an opportunity. Sorts by fields of the related record, listed in order of priority.
opptyProductRelation[OpptyProductRelationOrderByNestedInput!]Specific opportunity line-item discussed on the call, when applicable. Sorts by fields of the related record, listed in order of priority.
product[ProductOrderByNestedInput!]Product discussed on the call, when applicable. Sorts by fields of the related record, listed in order of priority.
accountIdOrderByEnumId of the linked account.
callerIdOrderByEnumId of the calling user.
clientIdOrderByEnumId of the user the call was made with.
contactIdOrderByEnumId of the linked contact.
leadOpptyIdOrderByEnumId of the linked lead or opportunity, or empty when not linked.
opptyProductRelationIdOrderByEnumId of the linked opportunity product line-item.
phoneNumberOrderByEnumExternal phone number called or received, in E.164 format.
productIdOrderByEnumId of the linked product.
transcriptionIdOrderByEnumExternal transcription identifier from the calling provider.
transcriptionLanguageOrderByEnumLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US").
transcriptionSummaryOrderByEnumAI-generated summary of the call transcription.
CreateCallInput input 17 fields: clientMutationId, modified, created, …

Field values of a new Call record.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
opptyProductRelationCreateOpptyProductRelationInputSpecific opportunity line-item discussed on the call, when applicable.
accountIdIDId of the linked account.
callerIdID!Id of the calling user.
clientIdIDId of the user the call was made with.
contactIdIDId of the linked contact.
leadOpptyIdIDId of the linked lead or opportunity, or empty when not linked.
opptyProductRelationIdIDId of the linked opportunity product line-item.
phoneNumberStringExternal phone number called or received, in E.164 format.
productIdIDId of the linked product.
transcriptionIdStringExternal transcription identifier from the calling provider.
transcriptionLanguageStringLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US").
transcriptionSummaryStringAI-generated summary of the call transcription.
twilioCallLogIdID!Id of the call-log record from the calling provider that this call is associated with.
audioStatusAudioStatusRecording and transcription status of the call, computed by the server. The only accepted inputs are Uploading on create, to announce that a recording will be uploaded, and NoRecording on update, to mark that the call has no recording.
CreateOrUpdateCallInput input 18 fields: clientMutationId, id, modified, …

Field values of a Call record to create, or to update when its id is set.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idIDUnique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
opptyProductRelationCreateOpptyProductRelationInputSpecific opportunity line-item discussed on the call, when applicable.
accountIdIDId of the linked account.
callerIdIDId of the calling user.
clientIdIDId of the user the call was made with.
contactIdIDId of the linked contact.
leadOpptyIdIDId of the linked lead or opportunity, or empty when not linked.
opptyProductRelationIdIDId of the linked opportunity product line-item.
phoneNumberStringExternal phone number called or received, in E.164 format.
productIdIDId of the linked product.
transcriptionIdStringExternal transcription identifier from the calling provider.
transcriptionLanguageStringLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US").
transcriptionSummaryStringAI-generated summary of the call transcription.
twilioCallLogIdIDId of the call-log record from the calling provider that this call is associated with.
audioStatusAudioStatusRecording and transcription status of the call, computed by the server. The only accepted inputs are Uploading on create, to announce that a recording will be uploaded, and NoRecording on update, to mark that the call has no recording.
DeleteCallInput input clientMutationId: String, id: ID!, leadOpptyId: ID

Id of the Call record to delete.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
leadOpptyIdIDId of the linked lead or opportunity, or empty when not linked.
UpdateCallInput input 18 fields: clientMutationId, id, modified, …

Id of a Call record and the field values to change.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
opptyProductRelationCreateOpptyProductRelationInputSpecific opportunity line-item discussed on the call, when applicable.
accountIdIDId of the linked account.
callerIdIDId of the calling user.
clientIdIDId of the user the call was made with.
contactIdIDId of the linked contact.
leadOpptyIdIDId of the linked lead or opportunity, or empty when not linked.
opptyProductRelationIdIDId of the linked opportunity product line-item.
phoneNumberStringExternal phone number called or received, in E.164 format.
productIdIDId of the linked product.
transcriptionIdStringExternal transcription identifier from the calling provider.
transcriptionLanguageStringLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US").
transcriptionSummaryStringAI-generated summary of the call transcription.
twilioCallLogIdIDId of the call-log record from the calling provider that this call is associated with.
audioStatusAudioStatusRecording and transcription status of the call, computed by the server. The only accepted inputs are Uploading on create, to announce that a recording will be uploaded, and NoRecording on update, to mark that the call has no recording.
BulkUpdateCallPayload object result: BulkUpdateResults!

Result of the bulkUpdateCall mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateCallPayload object call: CallEntity, clientMutationId: String

Result of the createCall mutation.

FieldTypeDescription
callCallEntityThe created record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
DeleteCallPayload object call: CallEntity, clientMutationId: String

Result of the deleteCall mutation.

FieldTypeDescription
callCallEntityThe deleted record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateCallPayload object call: CallEntity, clientMutationId: String

Result of the updateCall mutation.

FieldTypeDescription
callCallEntityThe updated record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
AudioStatus enum NoRecording, Uploading, Uploaded, TranscriptionInProgress, TranscriptionError, TranscriptionCompleted, UploadError, TranscriptionEmpty

Recording and transcription status of a call.

ValueDescription
NoRecordingThe call has no recording.
UploadingThe recording is not available yet.
UploadedThe recording is available; no transcription is in progress.
TranscriptionInProgressThe recording is being transcribed.
TranscriptionErrorTranscription of the recording failed.
TranscriptionCompletedThe transcription is available.
UploadErrorA transcription was requested but the recording could not be obtained.
TranscriptionEmptyThe recording contained nothing to transcribe, for example because the call was too short.