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

GraphQLRepositoriescompanyEmail

entities.companyEmail

Read company email records with the companyEmail repository, and change them with the company email mutations. Same records as the REST CompanyEmails entity.

Queries

Fields of entities { companyEmail { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
CompanyEmailEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[CompanyEmailEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: CompanyEmailFilterInput, orderBy: [CompanyEmailOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[CompanyEmailEntity!]!
QUERYgetByCriteria(filter: CompanyEmailFilterInput, orderBy: [CompanyEmailOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
CompanyEmailEntityConnection
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!]!
QUERYgetAllForAdmin(limit: Int, offset: Int, filter: CompanyEmailFilterInput, orderBy: [CompanyEmailOrderByInput!], includeDeleted: Boolean)
Returns all company email accounts of the space, including those shared with other users, for administration.
[CompanyEmailEntity!]!

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.

CompanyEmailEntity object 17 fields: isDeleteProtected, id, isDeleted, …

Shared company mailbox connected to the space that users can send emails from, such as a sales or support address.

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.
emailStringEmail address of the company mailbox (the From address).
enabledBoolean!False when the mailbox is disabled (either by the user or because the underlying feature is not available); true otherwise.
errorCodeIntError code recorded for the mailbox; empty when healthy. Set on integration failures or when the user disables the integration.
nameString!Display name of the company email account, shown in the UI.
pictureUrlStringURL of the avatar image used as the sender picture for emails sent from this account.
serviceTypeEmailServiceTypeEnum!Email service the company email account is connected through and sends from: Microsoft 365, Google or SendGrid.
settingsJSONStringProvider-specific configuration for the mailbox (e.g. parse_subdomain for SendGrid).
tokenStringOAuth/secret credentials for the mailbox. Read-only and only returned to service-to-service callers; setting via the public API is not supported.
features[EmailAccountFeatureEnum!]!List of capabilities supported by the underlying email service (e.g. CanSyncBounces, CanSyncIncoming).
mailboxIdUUIDStable UUID derived from the mailbox address and service type, used to correlate the company email account with its integration settings entry.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
limitsEmailAccountLimit!Daily sending limit of the email account and the number of emails sent from it in the last 24 hours.
CompanyEmailEntityConnection object pageInfo: PageInfo!, edges: [CompanyEmailEntityEdge]!, totalCount: Int

Paginated list of CompanyEmail records.

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

A Relay edge containing a CompanyEmailEntity and its cursor.

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

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

Input fieldTypeDescription
OR[CompanyEmailFilterInput!]Matches records that meet at least one of the listed filters.
AND[CompanyEmailFilterInput!]Matches records that meet all of the listed filters.
NOTCompanyEmailFilterInputMatches 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.
emailEntityFilterStringFieldEmail address of the company mailbox (the From address).
enabledBooleanFalse when the mailbox is disabled (either by the user or because the underlying feature is not available); true otherwise.
errorCodeEntityFilterNumberFieldError code recorded for the mailbox; empty when healthy. Set on integration failures or when the user disables the integration.
nameEntityFilterStringFieldDisplay name of the company email account, shown in the UI.
pictureUrlEntityFilterStringFieldURL of the avatar image used as the sender picture for emails sent from this account.
serviceTypeEmailServiceTypeEnumFilterInputEmail service the company email account is connected through and sends from: Microsoft 365, Google or SendGrid.
CompanyEmailOrderByInput input Asc or Desc per field

Sorting of CompanyEmail 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.
emailOrderByEnumEmail address of the company mailbox (the From address).
enabledOrderByEnumFalse when the mailbox is disabled (either by the user or because the underlying feature is not available); true otherwise.
errorCodeOrderByEnumError code recorded for the mailbox; empty when healthy. Set on integration failures or when the user disables the integration.
nameOrderByEnumDisplay name of the company email account, shown in the UI.
pictureUrlOrderByEnumURL of the avatar image used as the sender picture for emails sent from this account.
serviceTypeOrderByEnumEmail service the company email account is connected through and sends from: Microsoft 365, Google or SendGrid.
EmailServiceTypeEnumFilterInput input eq: [EmailServiceTypeEnum!], NOT: EmailServiceTypeEnumFilterInput

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

Input fieldTypeDescription
eq[EmailServiceTypeEnum!]Matches any of the listed values.
NOTEmailServiceTypeEnumFilterInputMatches values that do not meet this condition.
EmailAccountFeatureEnum enum CanSyncBounces, CanSyncIncoming

Capability supported by an email account's service.

ValueDescription
CanSyncBouncesBounced emails are detected and recorded.
CanSyncIncomingIncoming emails, such as replies, are synchronized into Coevera.
EmailAccountLimit object messagesPerDay: Int!, sentMessages: Int!

Daily sending limit of a company email account and how many emails were sent from it in the last 24 hours.

FieldTypeDescription
messagesPerDayInt!Maximum number of emails the email service of the account allows to send in 24 hours.
sentMessagesInt!Number of emails sent from the account through Coevera in the last 24 hours.
EmailServiceTypeEnum enum O365Email, GoogleEmail, SendGrid

Email service a company email account sends through.

ValueDescription
O365EmailMicrosoft 365 (Outlook) account.
GoogleEmailGoogle (Gmail / Google Workspace) account.
SendGridSendGrid account.