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

GraphQLRepositoriesentity

entities.entity

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

Queries

Fields of entities { entity { … } }.

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

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.

EntityEntity object 21 fields: isDeleteProtected, id, entityName, …

Kind of record in the space, such as Account, Lead or a custom entity, with its display names and behavior.

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.
entityNameStringStable identifier of the entity (e.g. "Account", "Lead", "Opportunity").
tableNameStringStorage identifier of the entity. Read-only.
tableExStringStorage identifier of the entity's custom-field data. Read-only.
tableDataExStringStorage identifier of the entity's option relation data. Read-only.
defaultViewFieldIdID!Id of the field used as the default display label for records of this entity.
abstractEntityIdID!For sub-entities (e.g. Lead/Opportunity sharing a LeadOppty parent), the entity name of the parent abstract entity. Empty for stand-alone entities.
entityTypeInt!Kind of the entity in the platform: business entity, system schema, custom entity, etc.
preferenceOrderInt!Display order used to sort entities in pickers and navigation lists; lower values appear first.
allowsMultipleRelationBooleanTrue when records of this entity can be linked to multiple records of the same other entity through the same relation.
hasDraftBoolean!True when records of this entity support drafts (changes go through a draft before being published).
accessModeInt!Access scope of records of this entity: shared across the entire space, scoped to a sales unit, or owner-only.
iconInt!Numeric icon identifier used to render the entity in the UI.
isDeletedBooleanTrue when the entity is marked as deleted (soft-delete). Read-only at the entity-metadata level.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
settingsJSONStringOptional space-level configuration for the entity (e.g. UI/feature flags). Empty when no overrides are set.
nameSingularStringDisplay name of the entity in singular form (e.g. "Account").
namePluralStringDisplay name of the entity in plural form (e.g. "Accounts").
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
EntityEntityConnection object pageInfo: PageInfo!, edges: [EntityEntityEdge]!, totalCount: Int

Paginated list of Entity records.

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

A Relay edge containing a EntityEntity and its cursor.

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

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

Input fieldTypeDescription
OR[EntityFilterInput!]Matches records that meet at least one of the listed filters.
AND[EntityFilterInput!]Matches records that meet all of the listed filters.
NOTEntityFilterInputMatches 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.
entityNameEntityFilterStringFieldStable identifier of the entity (e.g. "Account", "Lead", "Opportunity").
tableNameEntityFilterStringFieldStorage identifier of the entity. Read-only.
tableExEntityFilterStringFieldStorage identifier of the entity's custom-field data. Read-only.
tableDataExEntityFilterStringFieldStorage identifier of the entity's option relation data. Read-only.
defaultViewFieldIdEntityFilterStringFieldId of the field used as the default display label for records of this entity.
abstractEntityIdEntityFilterStringFieldFor sub-entities (e.g. Lead/Opportunity sharing a LeadOppty parent), the entity name of the parent abstract entity. Empty for stand-alone entities.
entityTypeEntityFilterNumberFieldKind of the entity in the platform: business entity, system schema, custom entity, etc.
preferenceOrderEntityFilterNumberFieldDisplay order used to sort entities in pickers and navigation lists; lower values appear first.
allowsMultipleRelationBooleanTrue when records of this entity can be linked to multiple records of the same other entity through the same relation.
hasDraftBooleanTrue when records of this entity support drafts (changes go through a draft before being published).
accessModeEntityFilterNumberFieldAccess scope of records of this entity: shared across the entire space, scoped to a sales unit, or owner-only.
iconEntityFilterNumberFieldNumeric icon identifier used to render the entity in the UI.
isDeletedBooleanTrue when the entity is marked as deleted (soft-delete). Read-only at the entity-metadata level.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
nameSingularEntityFilterStringFieldDisplay name of the entity in singular form (e.g. "Account").
namePluralEntityFilterStringFieldDisplay name of the entity in plural form (e.g. "Accounts").
EntityOrderByInput input Asc or Desc per field

Sorting of Entity 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.
entityNameOrderByEnumStable identifier of the entity (e.g. "Account", "Lead", "Opportunity").
tableNameOrderByEnumStorage identifier of the entity. Read-only.
tableExOrderByEnumStorage identifier of the entity's custom-field data. Read-only.
tableDataExOrderByEnumStorage identifier of the entity's option relation data. Read-only.
defaultViewFieldIdOrderByEnumId of the field used as the default display label for records of this entity.
abstractEntityIdOrderByEnumFor sub-entities (e.g. Lead/Opportunity sharing a LeadOppty parent), the entity name of the parent abstract entity. Empty for stand-alone entities.
entityTypeOrderByEnumKind of the entity in the platform: business entity, system schema, custom entity, etc.
preferenceOrderOrderByEnumDisplay order used to sort entities in pickers and navigation lists; lower values appear first.
allowsMultipleRelationOrderByEnumTrue when records of this entity can be linked to multiple records of the same other entity through the same relation.
hasDraftOrderByEnumTrue when records of this entity support drafts (changes go through a draft before being published).
accessModeOrderByEnumAccess scope of records of this entity: shared across the entire space, scoped to a sales unit, or owner-only.
iconOrderByEnumNumeric icon identifier used to render the entity in the UI.
isDeletedOrderByEnumTrue when the entity is marked as deleted (soft-delete). Read-only at the entity-metadata level.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
nameSingularOrderByEnumDisplay name of the entity in singular form (e.g. "Account").
namePluralOrderByEnumDisplay name of the entity in plural form (e.g. "Accounts").