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

GraphQLRepositoriesentityScoring

entities.entityScoring

Read entity scoring records with the entityScoring repository, and change them with the entity scoring mutations. Same records as the REST EntityScorings entity.

Queries

Fields of entities { entityScoring { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
EntityScoringEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[EntityScoringEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: EntityScoringFilterInput, orderBy: [EntityScoringOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[EntityScoringEntity!]!
QUERYgetByCriteria(filter: EntityScoringFilterInput, orderBy: [EntityScoringOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
EntityScoringEntityConnection
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!]!
QUERYgetRecalculationStatus(entityType: BaseEntityTypeEnum!)
Returns the progress of the score recalculation for the given record type and when scores were last recalculated. Both values are null when no scoring is enabled for the type.
EntityScoringRecalculationStatus!
QUERYgetByEntityType(entityType: BaseEntityTypeEnum!)
Returns the scoring definitions for the given record type, in their configured order.
[EntityScoringEntity!]!

Mutations

KindMutationDoesReturns
MUTATIONcreateEntityScoring(input: CreateEntityScoringInput!, validationLevel: [ValidationLevel!])Create one recordCreateEntityScoringPayload
MUTATIONupdateEntityScoring(input: UpdateEntityScoringInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateEntityScoringPayload
MUTATIONbulkUpdateEntityScoring(input: [CreateOrUpdateEntityScoringInput!]!, deleteInput: [DeleteEntityScoringInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateEntityScoringPayload
MUTATIONdeleteEntityScoring(input: DeleteEntityScoringInput!)Soft-deleteDeleteEntityScoringPayload

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.

EntityScoringEntity object 13 fields: isDeleteProtected, id, isDeleted, …

Lead scoring configuration: rules that give leads a score, so that the most promising ones stand out.

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.
entityTypeBaseEntityTypeEnum!Entity whose records the scoring configuration scores; currently only Lead is supported. Set on create and cannot be changed.
isEnabledBoolean!When false, the scoring configuration is defined but not evaluated for records.
nameString!Name of the entity and its default text representation.
settingsEntityScoringSettings!Entity scoring definition in json format. This payload conforms to the EntityScoringSettings JSON Schema: GET /api/v100/rest/schemas/EntityScoringSettings.json on your region's API host
sortOrderInt!Position of this scoring configuration among others for the same entity type. Configurations are evaluated in this order until one matches.
useLangBooleanWhen true, the configuration name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
revisionIntRevision when entity was lastly changed.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
EntityScoringEntityConnection object pageInfo: PageInfo!, edges: [EntityScoringEntityEdge]!, totalCount: Int

Paginated list of EntityScoring records.

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

A Relay edge containing a EntityScoringEntity and its cursor.

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

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

Input fieldTypeDescription
OR[EntityScoringFilterInput!]Matches records that meet at least one of the listed filters.
AND[EntityScoringFilterInput!]Matches records that meet all of the listed filters.
NOTEntityScoringFilterInputMatches 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 scoring configuration scores; currently only Lead is supported. Set on create and cannot be changed.
isEnabledBooleanWhen false, the scoring configuration is defined but not evaluated for records.
nameEntityFilterStringFieldName of the entity and its default text representation.
sortOrderEntityFilterNumberFieldPosition of this scoring configuration among others for the same entity type. Configurations are evaluated in this order until one matches.
useLangBooleanWhen true, the configuration name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
EntityScoringOrderByInput input Asc or Desc per field

Sorting of EntityScoring 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.
isEnabledOrderByEnumWhen false, the scoring configuration is defined but not evaluated for records.
nameOrderByEnumName of the entity and its default text representation.
sortOrderOrderByEnumPosition of this scoring configuration among others for the same entity type. Configurations are evaluated in this order until one matches.
useLangOrderByEnumWhen true, the configuration name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
revisionOrderByEnumRevision when entity was lastly changed.
CreateEntityScoringInput input 10 fields: clientMutationId, modified, created, …

Field values of a new EntityScoring 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.
entityTypeBaseEntityTypeEnum!Entity whose records the scoring configuration scores; currently only Lead is supported. Set on create and cannot be changed.
isEnabledBoolean!When false, the scoring configuration is defined but not evaluated for records.
nameString!Name of the entity and its default text representation.
settingsEntityScoringSettingsJSONString!Entity scoring definition in json format. This payload conforms to the EntityScoringSettings JSON Schema: GET /api/v100/rest/schemas/EntityScoringSettings.json on your region's API host
sortOrderInt!Position of this scoring configuration among others for the same entity type. Configurations are evaluated in this order until one matches.
useLangBooleanWhen true, the configuration name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
revisionIntRevision when entity was lastly changed.
CreateOrUpdateEntityScoringInput input 11 fields: clientMutationId, id, modified, …

Field values of an EntityScoring 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.
entityTypeBaseEntityTypeEnumEntity whose records the scoring configuration scores; currently only Lead is supported. Set on create and cannot be changed.
isEnabledBooleanWhen false, the scoring configuration is defined but not evaluated for records.
nameStringName of the entity and its default text representation.
settingsEntityScoringSettingsJSONStringEntity scoring definition in json format. This payload conforms to the EntityScoringSettings JSON Schema: GET /api/v100/rest/schemas/EntityScoringSettings.json on your region's API host
sortOrderIntPosition of this scoring configuration among others for the same entity type. Configurations are evaluated in this order until one matches.
useLangBooleanWhen true, the configuration name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
revisionIntRevision when entity was lastly changed.
DeleteEntityScoringInput input clientMutationId: String, id: ID!

Id of the EntityScoring 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.
UpdateEntityScoringInput input 10 fields: clientMutationId, id, modified, …

Id of an EntityScoring 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, the scoring configuration is defined but not evaluated for records.
nameStringName of the entity and its default text representation.
settingsEntityScoringSettingsJSONStringEntity scoring definition in json format. This payload conforms to the EntityScoringSettings JSON Schema: GET /api/v100/rest/schemas/EntityScoringSettings.json on your region's API host
sortOrderIntPosition of this scoring configuration among others for the same entity type. Configurations are evaluated in this order until one matches.
useLangBooleanWhen true, the configuration name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
revisionIntRevision when entity was lastly changed.
BulkUpdateEntityScoringPayload object result: BulkUpdateResults!

Result of the bulkUpdateEntityScoring mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CreateEntityScoringPayload object entityScoring: EntityScoringEntity, clientMutationId: String

Result of the createEntityScoring mutation.

FieldTypeDescription
entityScoringEntityScoringEntityThe 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).
DeleteEntityScoringPayload object entityScoring: EntityScoringEntity, clientMutationId: String

Result of the deleteEntityScoring mutation.

FieldTypeDescription
entityScoringEntityScoringEntityThe 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).
UpdateEntityScoringPayload object entityScoring: EntityScoringEntity, clientMutationId: String

Result of the updateEntityScoring mutation.

FieldTypeDescription
entityScoringEntityScoringEntityThe 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).
EntityScoringActivityRule object 11 fields: id, isEnabled, name, …

Scoring rule that awards points for activities of a record with a given status.

FieldTypeDescription
idUUID!Unique identifier of the scoring rule.
isEnabledBoolean!When false, the rule is configured but does not contribute to the score.
nameString!Display name of the scoring rule.
useLangBoolean!When true, the name is treated as a translation key and localized in the UI; otherwise the literal name text is shown.
expirationInt!How long the points awarded by this rule remain in effect, measured in expirationUnit. Applies only when expirationEnabled is true.
expirationUnitEntityScoringRuleExpirationUnitEnum!Time unit for the expiration value: hour, day, week, or month.
expirationEnabledBoolean!When true, the points awarded by this rule expire after the configured expiration period; when false, they remain indefinitely.
scoreInt!Points added to (or, when negative, subtracted from) the record score each time the rule matches.
scoreMultiplierBoolean!When true, the score is multiplied by a per-record factor instead of being added as a fixed amount.
conditionsEntityScoringRuleFilter!Filter conditions a record must satisfy for the rule to award its score.
activityStatusActivityStatusEnum!Activity status that triggers the rule, such as a scheduled or completed activity.
EntityScoringEmailRule object 11 fields: id, isEnabled, name, …

Scoring rule that changes the score of a record when an email event happens for it, such as an email being opened, clicked or replied to.

FieldTypeDescription
idUUID!Unique identifier of the scoring rule.
isEnabledBoolean!When false, the rule is configured but does not contribute to the score.
nameString!Display name of the scoring rule.
useLangBoolean!When true, the name is treated as a translation key and localized in the UI; otherwise the literal name text is shown.
expirationInt!How long the points awarded by this rule remain in effect, measured in expirationUnit. Applies only when expirationEnabled is true.
expirationUnitEntityScoringRuleExpirationUnitEnum!Time unit for the expiration value: hour, day, week, or month.
expirationEnabledBoolean!When true, the points awarded by this rule expire after the configured expiration period; when false, they remain indefinitely.
scoreInt!Points added to (or, when negative, subtracted from) the record score each time the rule matches.
scoreMultiplierBoolean!When true, the score is multiplied by a per-record factor instead of being added as a fixed amount.
conditionsEntityScoringRuleFilter!Filter conditions a record must satisfy for the rule to award its score.
emailEventTypeEntityScoringRuleEmailEventTypeEnum!Email event that triggers the rule: sent, opened, clicked, replied, bounced, or unsubscribed.
EntityScoringFieldRule object 11 fields: id, isEnabled, name, …

Scoring rule that awards points when the field values of a record match its conditions.

FieldTypeDescription
idUUID!Unique identifier of the scoring rule.
isEnabledBoolean!When false, the rule is configured but does not contribute to the score.
nameString!Display name of the scoring rule.
useLangBoolean!When true, the name is treated as a translation key and localized in the UI; otherwise the literal name text is shown.
expirationInt!How long the points awarded by this rule remain in effect, measured in expirationUnit. Applies only when expirationEnabled is true.
expirationUnitEntityScoringRuleExpirationUnitEnum!Time unit for the expiration value: hour, day, week, or month.
expirationEnabledBoolean!When true, the points awarded by this rule expire after the configured expiration period; when false, they remain indefinitely.
scoreInt!Points added to (or, when negative, subtracted from) the record score each time the rule matches.
scoreMultiplierBoolean!When true, the score is multiplied by a per-record factor instead of being added as a fixed amount.
conditionsEntityScoringRuleFilter!Filter conditions a record must satisfy for the rule to award its score.
scoreMultiplierFieldIdUUIDNumeric field whose value is used as the multiplier when scoreMultiplier is true.
EntityScoringRecalculationStatus object lastRecalculation: DateTime, calculationProgress: Int

Progress of the score recalculation of a record type, and when scores were last recalculated.

FieldTypeDescription
lastRecalculationDateTimeWhen the scores were last recalculated; null when no scoring is enabled for the record type.
calculationProgressIntProgress of the running recalculation in percent (0-100); null when nothing is queued.
EntityScoringRule interface 10 fields: id, isEnabled, name, …

Rule of a scoring that adds points to the score of a record, or subtracts them, when the record matches it.

FieldTypeDescription
idUUID!Unique identifier of the scoring rule.
isEnabledBoolean!When false, the rule is configured but does not contribute to the score.
nameString!Display name of the scoring rule.
useLangBoolean!When true, the name is treated as a translation key and localized in the UI; otherwise the literal name text is shown.
expirationInt!How long the points awarded by this rule remain in effect, measured in expirationUnit. Applies only when expirationEnabled is true.
expirationUnitEntityScoringRuleExpirationUnitEnum!Time unit for the expiration value: hour, day, week, or month.
expirationEnabledBoolean!When true, the points awarded by this rule expire after the configured expiration period; when false, they remain indefinitely.
scoreInt!Points added to (or, when negative, subtracted from) the record score each time the rule matches.
scoreMultiplierBoolean!When true, the score is multiplied by a per-record factor instead of being added as a fixed amount.
conditionsEntityScoringRuleFilter!Filter conditions a record must satisfy for the rule to award its score.
EntityScoringRuleEmailEventTypeEnum enum Sent, Opened, Clicked, Replied, Bounced, Unsubscribed

Email event that makes a scoring rule add or subtract points.

ValueDescription
SentAn email was sent to the record.
OpenedThe recipient opened an email.
ClickedThe recipient clicked a link in an email.
RepliedThe recipient replied to an email.
BouncedAn email to the recipient bounced.
UnsubscribedThe recipient unsubscribed.
EntityScoringRuleExpirationUnitEnum enum Hour, Day, Week, Month

Time unit after which points awarded by a scoring rule expire.

ValueDescription
HourPoints expire after a number of hours.
DayPoints expire after a number of days.
WeekPoints expire after a number of weeks.
MonthPoints expire after a number of months.
EntityScoringRuleFilter object operator: FilterGroupOperator!, formula: String, filterMainBox: MainFilterBox!, filterSiblingBoxes: [FilterBox!]!

Conditions a record must meet for a scoring rule to award its score.

FieldTypeDescription
operatorFilterGroupOperator!How the filter boxes combine — And or Or.
formulaStringOptional boolean formula combining the filter boxes by their number.
filterMainBoxMainFilterBox!Primary group of filter conditions.
filterSiblingBoxes[FilterBox!]!Additional condition groups, combined per operator/formula.
EntityScoringSettings object categories: [EntityScoringCategory!]!, filter: FieldFilter!, rules: [EntityScoringRule!]

Configuration of a scoring: score categories, the records it scores and the rules that add or subtract points.

FieldTypeDescription
categories[EntityScoringCategory!]!Scoring categories that group records by accumulated score range (for example Hot, Warm, Cold).
filterFieldFilter!Filter that limits which records are eligible for scoring; records outside it are not scored.
rules[EntityScoringRule!]Scoring rules whose matching adjusts a record score.