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

GraphQLRepositoriesmedia

entities.media

Read media records with the media repository, and change them with the media mutations. Same records as the REST Medias entity.

Queries

Fields of entities { media { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
MediaEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[MediaEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: MediaFilterInput, orderBy: [MediaOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[MediaEntity!]!
QUERYgetByCriteria(filter: MediaFilterInput, orderBy: [MediaOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
MediaEntityConnection
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!]!

Mutations

KindMutationDoesReturns
MUTATIONupdateMedia(input: UpdateMediaInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateMediaPayload
MUTATIONbulkUpdateMedia(input: [CreateOrUpdateMediaInput!]!, deleteInput: [DeleteMediaInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateMediaPayload
MUTATIONdeleteMedia(input: DeleteMediaInput!)Soft-deleteDeleteMediaPayload

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.

MediaEntity object 25 fields: isDeleteProtected, id, isDeleted, …

Recording of a call or meeting with its transcription and AI summary, attached to a call, task or appointment.

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.
appointmentAppointmentEntityAppointment this media is attached to. Set when activityId resolves to an Appointment.
taskTaskEntityTask this media is attached to. Set when activityId resolves to a Task.
callCallEntityCall this media belongs to (e.g. a recording or transcription).
activityIdIDId of the linked appointment or task, or empty when not linked to an activity.
callIdIDId of the linked call, or empty when not linked.
dataJSONStringProvider-specific metadata about the media (e.g. transcription identifiers, recording parameters), as a JSON object.
descriptionStringFree-text description of the media.
errorCodeIntError code reported by the calling/recording provider when processing failed; empty on success.
statusMediaStatusEnumProcessing stage of the recording and its transcription, from upload through transcoding to transcription. TranscriptionCompleted is also set when transcription failed; check errorCode.
typeMediaTypeEnumKind of media. Recordings created by the application, uploaded or from calls, are Transcription: an audio or video recording transcribed to text; Audio and Video are currently not set.
revisionIntRevision when entity was lastly changed.
audioIdUUIDId of the cloud object holding the audio recording, when available.
transcriptionFileIdUUIDId of the cloud object holding the transcription payload, when available.
transcriptionIdStringExternal transcription identifier from the calling provider.
transcriptionLanguageStringLanguage requested for the transcription as a BCP-47 locale tag (e.g. "en-US", "de-DE"). Set when the transcription was requested.
transcriptionSummaryStringAI-generated summary of the transcription content.
getTranscriptionViewerTokenString!Short-lived token for opening the transcription in the calling provider's viewer. Empty when no transcription is available.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
audioCloudObjectEntityAudio recording (MP3 file) of the media or of the call it belongs to; empty when none is stored.
transcriptionFileCloudObjectEntityTranscription (JSON file) of the media or of the call it belongs to; empty when none is stored.
MediaEntityConnection object pageInfo: PageInfo!, edges: [MediaEntityEdge]!, totalCount: Int

Paginated list of Media records.

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

A Relay edge containing a MediaEntity and its cursor.

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

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

Input fieldTypeDescription
OR[MediaFilterInput!]Matches records that meet at least one of the listed filters.
AND[MediaFilterInput!]Matches records that meet all of the listed filters.
NOTMediaFilterInputMatches 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.
activityIdEntityFilterStringFieldId of the linked appointment or task, or empty when not linked to an activity.
callIdEntityFilterStringFieldId of the linked call, or empty when not linked.
descriptionEntityFilterStringFieldFree-text description of the media.
errorCodeEntityFilterNumberFieldError code reported by the calling/recording provider when processing failed; empty on success.
statusMediaStatusEnumFilterInputProcessing stage of the recording and its transcription, from upload through transcoding to transcription. TranscriptionCompleted is also set when transcription failed; check errorCode.
typeMediaTypeEnumFilterInputKind of media. Recordings created by the application, uploaded or from calls, are Transcription: an audio or video recording transcribed to text; Audio and Video are currently not set.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
appointmentAppointmentFilterInputAppointment this media is attached to. Set when activityId resolves to an Appointment. Matches records where a related record meets these conditions.
taskTaskFilterInputTask this media is attached to. Set when activityId resolves to a Task. Matches records where a related record meets these conditions.
callCallFilterInputCall this media belongs to (e.g. a recording or transcription). Matches records where a related record meets these conditions.
MediaOrderByInput input Asc or Desc per field

Sorting of Media 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.
appointment[AppointmentOrderByNestedInput!]Appointment this media is attached to. Set when activityId resolves to an Appointment. Sorts by fields of the related record, listed in order of priority.
task[TaskOrderByNestedInput!]Task this media is attached to. Set when activityId resolves to a Task. Sorts by fields of the related record, listed in order of priority.
call[CallOrderByNestedInput!]Call this media belongs to (e.g. a recording or transcription). Sorts by fields of the related record, listed in order of priority.
activityIdOrderByEnumId of the linked appointment or task, or empty when not linked to an activity.
callIdOrderByEnumId of the linked call, or empty when not linked.
descriptionOrderByEnumFree-text description of the media.
errorCodeOrderByEnumError code reported by the calling/recording provider when processing failed; empty on success.
revisionOrderByEnumRevision when entity was lastly changed.
MediaStatusEnumFilterInput input eq: [MediaStatusEnum!], NOT: MediaStatusEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[MediaStatusEnum!]Matches any of the listed values.
NOTMediaStatusEnumFilterInputMatches values that do not meet this condition.
MediaTypeEnumFilterInput input eq: [MediaTypeEnum!], NOT: MediaTypeEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[MediaTypeEnum!]Matches any of the listed values.
NOTMediaTypeEnumFilterInputMatches values that do not meet this condition.
CreateOrUpdateMediaInput input 12 fields: clientMutationId, id, modified, …

Field values of a Media 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.
activityIdIDId of the linked appointment or task, or empty when not linked to an activity.
callIdIDId of the linked call, or empty when not linked.
dataJSONStringProvider-specific metadata about the media (e.g. transcription identifiers, recording parameters), as a JSON object.
descriptionStringFree-text description of the media.
errorCodeIntError code reported by the calling/recording provider when processing failed; empty on success.
statusMediaStatusEnumProcessing stage of the recording and its transcription, from upload through transcoding to transcription. TranscriptionCompleted is also set when transcription failed; check errorCode.
typeMediaTypeEnumKind of media. Recordings created by the application, uploaded or from calls, are Transcription: an audio or video recording transcribed to text; Audio and Video are currently not set.
revisionIntRevision when entity was lastly changed.
DeleteMediaInput input clientMutationId: String, id: ID!, activityId: ID

Id of the Media 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.
activityIdIDId of the linked appointment or task, or empty when not linked to an activity.
UpdateMediaInput input 12 fields: clientMutationId, id, modified, …

Id of a Media 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.
activityIdIDId of the linked appointment or task, or empty when not linked to an activity.
callIdIDId of the linked call, or empty when not linked.
dataJSONStringProvider-specific metadata about the media (e.g. transcription identifiers, recording parameters), as a JSON object.
descriptionStringFree-text description of the media.
errorCodeIntError code reported by the calling/recording provider when processing failed; empty on success.
statusMediaStatusEnumProcessing stage of the recording and its transcription, from upload through transcoding to transcription. TranscriptionCompleted is also set when transcription failed; check errorCode.
typeMediaTypeEnumKind of media. Recordings created by the application, uploaded or from calls, are Transcription: an audio or video recording transcribed to text; Audio and Video are currently not set.
revisionIntRevision when entity was lastly changed.
BulkUpdateMediaPayload object result: BulkUpdateResults!

Result of the bulkUpdateMedia mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
DeleteMediaPayload object media: MediaEntity, clientMutationId: String

Result of the deleteMedia mutation.

FieldTypeDescription
mediaMediaEntityThe 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).
UpdateMediaPayload object media: MediaEntity, clientMutationId: String

Result of the updateMedia mutation.

FieldTypeDescription
mediaMediaEntityThe 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).
MediaStatusEnum enum NoRecording, Uploading, Uploaded, Transcoding, TranscriptionInProgress, TranscriptionCompleted

Processing status of a media recording and its transcription.

ValueDescription
NoRecordingNo recording is attached yet.
UploadingThe recording is being uploaded.
UploadedThe recording is available and waiting for transcription.
TranscodingThe recording is being converted to a format suitable for transcription.
TranscriptionInProgressThe recording is being transcribed.
TranscriptionCompletedTranscription finished; check errorCode to see whether it failed.
MediaTypeEnum enum Audio, Video, Transcription

Kind of media record.

ValueDescription
AudioAudio recording.
VideoVideo recording.
TranscriptionRecording that is transcribed to text.