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

GraphQLRepositoriesemailEvent

entities.emailEvent

Read email event records with the emailEvent repository, and change them with the email event mutations. Same records as the REST EmailEvents entity.

Queries

Fields of entities { emailEvent { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
EmailEventEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[EmailEventEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: EmailEventFilterInput, orderBy: [EmailEventOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[EmailEventEntity!]!
QUERYgetByCriteria(filter: EmailEventFilterInput, orderBy: [EmailEventOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter as a cursor-paginated connection.
[EmailEventEntity!]!
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
MUTATIONcreateEmailEvent(input: CreateEmailEventInput!, validationLevel: [ValidationLevel!])Create one recordCreateEmailEventPayload
MUTATIONupdateEmailEvent(input: UpdateEmailEventInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateEmailEventPayload
MUTATIONbulkUpdateEmailEvent(input: [CreateOrUpdateEmailEventInput!]!, deleteInput: [DeleteEmailEventInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateEmailEventPayload
MUTATIONdeleteEmailEvent(input: DeleteEmailEventInput!)Soft-deleteDeleteEmailEventPayload

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.

EmailEventEntity object 11 fields: isDeleteProtected, id, isDeleted, …

Tracking event reported for a sent email, such as an open, a link click, a reply or an unsubscribe.

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.
emailEmailEntityEmail message the event was reported for.
additionalDataJSONStringProvider-specific extra data captured with the event (e.g. user agent, ip), as a JSON document.
emailIdID!Id of the email message.
typeEmailEventTypeEnumKind of tracking event reported for the email, such as an open, a link click, a reply, an unsubscribe or a bounce.
urlStringURL the recipient interacted with. Set for click events; empty for other event types.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
EmailEventFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

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

Input fieldTypeDescription
OR[EmailEventFilterInput!]Matches records that meet at least one of the listed filters.
AND[EmailEventFilterInput!]Matches records that meet all of the listed filters.
NOTEmailEventFilterInputMatches 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.
emailIdEntityFilterStringFieldId of the email message.
typeEmailEventTypeEnumFilterInputKind of tracking event reported for the email, such as an open, a link click, a reply, an unsubscribe or a bounce.
urlEntityFilterStringFieldURL the recipient interacted with. Set for click events; empty for other event types.
emailEmailFilterInputEmail message the event was reported for. Matches records where a related record meets these conditions.
EmailEventOrderByInput input Asc or Desc per field

Sorting of EmailEvent 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.
email[EmailOrderByNestedInput!]Email message the event was reported for. Sorts by fields of the related record, listed in order of priority.
emailIdOrderByEnumId of the email message.
typeOrderByEnumKind of tracking event reported for the email, such as an open, a link click, a reply, an unsubscribe or a bounce.
urlOrderByEnumURL the recipient interacted with. Set for click events; empty for other event types.
EmailEventTypeEnumFilterInput input eq: [EmailEventTypeEnum!], NOT: EmailEventTypeEnumFilterInput

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

Input fieldTypeDescription
eq[EmailEventTypeEnum!]Matches any of the listed values.
NOTEmailEventTypeEnumFilterInputMatches values that do not meet this condition.
CreateEmailEventInput input 7 fields: clientMutationId, modified, created, …

Field values of a new EmailEvent 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.
additionalDataJSONStringProvider-specific extra data captured with the event (e.g. user agent, ip), as a JSON document.
emailIdID!Id of the email message.
typeEmailEventTypeEnumKind of tracking event reported for the email, such as an open, a link click, a reply, an unsubscribe or a bounce.
urlStringURL the recipient interacted with. Set for click events; empty for other event types.
CreateOrUpdateEmailEventInput input 8 fields: clientMutationId, id, modified, …

Field values of an EmailEvent 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.
additionalDataJSONStringProvider-specific extra data captured with the event (e.g. user agent, ip), as a JSON document.
emailIdIDId of the email message.
typeEmailEventTypeEnumKind of tracking event reported for the email, such as an open, a link click, a reply, an unsubscribe or a bounce.
urlStringURL the recipient interacted with. Set for click events; empty for other event types.
DeleteEmailEventInput input clientMutationId: String, id: ID!

Id of the EmailEvent 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.
UpdateEmailEventInput input 8 fields: clientMutationId, id, modified, …

Id of an EmailEvent 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.
additionalDataJSONStringProvider-specific extra data captured with the event (e.g. user agent, ip), as a JSON document.
emailIdIDId of the email message.
typeEmailEventTypeEnumKind of tracking event reported for the email, such as an open, a link click, a reply, an unsubscribe or a bounce.
urlStringURL the recipient interacted with. Set for click events; empty for other event types.
BulkUpdateEmailEventPayload object result: BulkUpdateResults!

Result of the bulkUpdateEmailEvent mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateEmailEventPayload object emailEvent: EmailEventEntity, clientMutationId: String

Result of the createEmailEvent mutation.

FieldTypeDescription
emailEventEmailEventEntityThe 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).
DeleteEmailEventPayload object emailEvent: EmailEventEntity, clientMutationId: String

Result of the deleteEmailEvent mutation.

FieldTypeDescription
emailEventEmailEventEntityThe 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).
UpdateEmailEventPayload object emailEvent: EmailEventEntity, clientMutationId: String

Result of the updateEmailEvent mutation.

FieldTypeDescription
emailEventEmailEventEntityThe 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).
EmailEventTypeEnum enum Open, Click, Unsubscribe, Bounce, Reply, BounceSoft

Type of a tracked event on a sent email.

ValueDescription
OpenThe recipient opened the email.
ClickThe recipient clicked a link in the email.
UnsubscribeThe recipient unsubscribed through the email.
BounceThe email bounced permanently (hard bounce).
ReplyThe recipient replied to the email.
BounceSoftDelivery failed temporarily or was delayed (soft bounce).