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

GraphQLRepositoriesentityHealth

entities.entityHealth

Read entity health records with the entityHealth repository, and change them with the entity health mutations. Same records as the REST EntityHealths entity.

Queries

Fields of entities { entityHealth { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
EntityHealthEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[EntityHealthEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: EntityHealthFilterInput, orderBy: [EntityHealthOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[EntityHealthEntity!]!
QUERYgetByCriteria(filter: EntityHealthFilterInput, orderBy: [EntityHealthOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
EntityHealthEntityConnection
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!]!
QUERYgetByTypeId(typeId: UUID!, strict: Boolean)
Returns the account health configuration for the given account type.
EntityHealthEntity!

Mutations

KindMutationDoesReturns
MUTATIONupdateEntityHealth(input: UpdateEntityHealthInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateEntityHealthPayload

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.

EntityHealthEntity object 14 fields: isDeleteProtected, id, isDeleted, …

Health configuration of an account type, defining when accounts of that type are healthy or in critical health.

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.
typeAccountTypeEntityAccount type this health configuration applies to.
entityTypeBaseEntityTypeEnum!Entity whose records the health configuration evaluates; currently always Account. Read-only.
isEnabledBoolean!When false, health is configured but not evaluated for records of this type.
lastRecalculationDateTimeTimestamp of the last full health recalculation across all matching records.
typeIdID!Id of the account type.
revisionIntRevision when entity was lastly changed.
settingsEntityHealthSettings!Health configuration: indicator filter definitions for healthy and critical-health states. Stored as a versioned JSON document; updates create a new history entry.
calculationProgressIntProgress of the in-flight health recalculation as a percentage (0-100). Null when no recalculation has been queued.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
EntityHealthEntityConnection object pageInfo: PageInfo!, edges: [EntityHealthEntityEdge]!, totalCount: Int

Paginated list of EntityHealth records.

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

A Relay edge containing a EntityHealthEntity and its cursor.

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

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

Input fieldTypeDescription
OR[EntityHealthFilterInput!]Matches records that meet at least one of the listed filters.
AND[EntityHealthFilterInput!]Matches records that meet all of the listed filters.
NOTEntityHealthFilterInputMatches 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.
entityTypeBaseEntityTypeEnumFilterInputEntity whose records the health configuration evaluates; currently always Account. Read-only.
isEnabledBooleanWhen false, health is configured but not evaluated for records of this type.
lastRecalculationEntityFilterDateTimeFieldTimestamp of the last full health recalculation across all matching records.
typeIdEntityFilterStringFieldId of the account type.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
typeAccountTypeFilterInputAccount type this health configuration applies to. Matches records where a related record meets these conditions.
EntityHealthOrderByInput input Asc or Desc per field

Sorting of EntityHealth 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.
type[AccountTypeOrderByNestedInput!]Account type this health configuration applies to. Sorts by fields of the related record, listed in order of priority.
isEnabledOrderByEnumWhen false, health is configured but not evaluated for records of this type.
lastRecalculationOrderByEnumTimestamp of the last full health recalculation across all matching records.
typeIdOrderByEnumId of the account type.
revisionOrderByEnumRevision when entity was lastly changed.
UpdateEntityHealthInput input 9 fields: clientMutationId, id, modified, …

Id of an EntityHealth 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.
isEnabledBooleanWhen false, health is configured but not evaluated for records of this type.
lastRecalculationDateTimeTimestamp of the last full health recalculation across all matching records.
typeIdIDId of the account type.
revisionIntRevision when entity was lastly changed.
settingsEntityHealthSettingsJSONStringHealth configuration: indicator filter definitions for healthy and critical-health states. Stored as a versioned JSON document; updates create a new history entry.
UpdateEntityHealthPayload object entityHealth: EntityHealthEntity, clientMutationId: String

Result of the updateEntityHealth mutation.

FieldTypeDescription
entityHealthEntityHealthEntityThe 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).
EntityHealthCalculationTypeEnum enum Manual, Priority

How the scores of health indicators are combined into a record's health score.

ValueDescription
ManualEach indicator uses the score configured on it.
PriorityScores are derived from the order of the indicators; earlier indicators weigh more.
EntityHealthFieldConfiguration object filterMainBox: EntityHealthMainFilterBox!, filterSiblingBoxes: [EntityHealthFilterBox!]!

Set of health indicator rules: rules on the record itself and rules on its related records.

FieldTypeDescription
filterMainBoxEntityHealthMainFilterBox!Indicator rules evaluated directly on the scored entity.
filterSiblingBoxes[EntityHealthFilterBox!]!Additional rule boxes evaluated on related records, each tied to a relation from the scored entity.
EntityHealthFilterBox object 5 fields: id, entity, lookupFieldId, …

Group of health indicator rules evaluated on a record related to the scored record.

FieldTypeDescription
idString!Unique identifier of the filter box.
entityString!Related entity type the indicator rules in this box are evaluated on.
lookupFieldIdUUIDLookup field that connects the scored entity to the related record this box evaluates.
relationHardCodedRelationPredefined relationship to the related record this box evaluates, such as the next scheduled or last finished activity.
filterFields[EntityHealthFieldFilterRule!]!Health indicator rules evaluated on the related record.
EntityHealthMainFilterBox object id: String!, entity: String!, lookupFieldId: UUID, filterFields: [EntityHealthFieldFilterRule!]!

Group of health indicator rules evaluated on the scored record itself.

FieldTypeDescription
idString!Unique identifier of the filter box.
entityString!Entity type the indicator rules in this box are evaluated on.
lookupFieldIdUUIDWhen the box evaluates a related record, the lookup field that connects this entity to that record.
filterFields[EntityHealthFieldFilterRule!]!Health indicator rules evaluated directly on the scored entity.
EntityHealthSettings object categories: [HealthCategory!]!, calculationType: EntityHealthCalculationTypeEnum!, healthIndicators: EntityHealthFieldConfiguration!, criticalHealthIndicators: EntityHealthFieldConfiguration!

Configuration of a health score: categories, how the score is calculated and the indicator rules.

FieldTypeDescription
categories[HealthCategory!]!Health categories that group records by score range (for example Good, Watch, Critical).
calculationTypeEntityHealthCalculationTypeEnum!How indicator scores are combined. Manual uses the score configured on each indicator; Priority derives scores from the order of the indicators.
healthIndicatorsEntityHealthFieldConfiguration!Indicator rules that contribute positive or negative points to the health score.
criticalHealthIndicatorsEntityHealthFieldConfiguration!Indicator rules that force the record into the critical category when they match.
FilterBoxInterface interface id: String!, entity: String!, lookupFieldId: UUID

Group of filter conditions evaluated on one record type.

FieldTypeDescription
idString!Identifier of this filter box within the filter tab.
entityString!Name of the record type whose fields the conditions in this box are evaluated against.
lookupFieldIdUUIDIdentifier of the lookup field that connects this box to the main record type when the box filters a related record reached through a lookup.
HardCodedRelation object kind: SiblingRelationType!

Predefined relation that links a filter box to the filtered records.

FieldTypeDescription
kindSiblingRelationType!Predefined relationship that links this filter box to the main record type (for example Primary, Aggregation, NextScheduledActivity).
HealthCategory object 5 fields: id, label, useLang, …

Health category, such as Good or Critical: a score range with its label and color.

FieldTypeDescription
idUUID!Unique identifier of the health category.
labelString!Display name of the health category (for example Good, Watch, Critical).
useLangBoolean!When true, the label is treated as a translation key and localized in the UI; otherwise the literal label text is shown.
valueInt!Upper health-score threshold of this category. A record falls into the category whose threshold its score does not exceed. The critical category uses -1.
colorInt!Color used to render this category in the UI, encoded as an integer.
SiblingRelationType enum NoRelation, Custom, Aggregation, LastFinishedActivity, NextScheduledActivity, Primary, … (15 values)

Predefined relationship that selects which related records of another type a report box or filter box uses for each main record.

ValueDescription
NoRelationNo predefined relationship is set.
CustomReserved for a user-defined relationship; not supported.
AggregationValues of all related records are combined into one value per main record.
LastFinishedActivityThe related activity that was finished most recently.
NextScheduledActivityThe next upcoming related activity.
PrimaryThe primary related record, such as the primary account or contact; for quotes of an opportunity, the active quote.
NextOpenOpportunityReserved for the next open opportunity; not supported.
LastWonOpportunityReserved for the most recently won opportunity; not supported.
LastLostOpportunityReserved for the most recently lost opportunity; not supported.
LastOnlineFormResponseThe most recently created related online form response.
LastNoteThe most recently created related note.
LastMessageThe most recent related message.
LastActivityCommentThe most recent comment on the activity.
AllEvery related record; the main record appears once per related record.
SenderThe account, contact or user who sent the email.