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

GraphQLRepositoriesleadType

entities.leadType

Read lead type records with the leadType repository, and change them with the lead type mutations. Same records as the REST LeadTypes entity.

Queries

Fields of entities { leadType { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
LeadTypeEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[LeadTypeEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: LeadTypeFilterInput, orderBy: [LeadTypeOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[LeadTypeEntity!]!
QUERYgetByCriteria(filter: LeadTypeFilterInput, orderBy: [LeadTypeOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
LeadTypeEntityConnection
QUERYgetPublished(limit: Int, offset: Int, filter: LeadTypeFilterInput, orderBy: [LeadTypeOrderByInput!], includeDeleted: Boolean)
Returns the published records that match the filter, paged with limit and offset.
[LeadTypeEntity!]!
QUERYgetDrafts(filter: LeadTypeFilterInput, orderBy: [LeadTypeOrderByInput!])
Returns the records that match the filter, with pending unpublished changes applied where a draft exists.
[LeadTypeEntity!]!
QUERYgetDraftById(entityId: ID!)
Returns the record with the given id, with its pending unpublished changes applied when a draft exists.
LeadTypeEntity!
QUERYgetByLeadProcess(leadProcessId: UUID!)
Returns the lead type that uses the given lead process, or null when none does.
LeadTypeEntity

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.

LeadTypeEntity object 20 fields: id, isDeleted, modified, …

Lead type that classifies leads and defines their forms and the lead process they follow.

FieldTypeDescription
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
leadProcessLeadProcessEntityLead process (pipeline) this lead type follows.
formEditJSONString!JSON definition of the form layout used by the UI when creating or editing leads of this type. This payload conforms to the Form JSON Schema: GET /api/v100/rest/schemas/Form.json on your region's API host
formLostJSONString!JSON definition of the form shown when archiving (losing) a lead of this type. Used to capture reason of close and any required closing fields. This payload conforms to the Form JSON Schema: GET /api/v100/rest/schemas/Form.json on your region's API host
formLostEnabledBoolean!True when the lost form is required on archiving leads of this type.
isReadonlyBoolean!True when the lead type is system-managed and cannot be edited or deleted by users.
leadProcessIdID!Id of the lead process that leads of this type follow.
nameString!Name of the entity and its default text representation.
settingsEntityTypeSettings!Per-type configuration for records of this entity type, e.g. allowed task and appointment types that may be linked to records of this type. This payload conforms to the EntityTypeSettings JSON Schema: GET /api/v100/rest/schemas/EntityTypeSettings.json on your region's API host
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionIntRevision when entity was lastly changed.
hasDraftBooleanTrue when the record has unpublished draft changes, including pending translation changes, that can be published.
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.
formEditApiFormTyped, read-only view of a form layout of this type: formEditApi mirrors the edit form (formEdit), formLostApi the form shown when archiving as lost (formLost).
canChangeReadonlyBooleanFalse for types whose read-only setting is fixed, such as the recurrent appointment type; true otherwise.
formLostApiFormTyped, read-only view of a form layout of this type: formEditApi mirrors the edit form (formEdit), formLostApi the form shown when archiving as lost (formLost).
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
LeadTypeEntityConnection object pageInfo: PageInfo!, edges: [LeadTypeEntityEdge]!, totalCount: Int

Paginated list of LeadType records.

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

A Relay edge containing a LeadTypeEntity and its cursor.

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

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

Input fieldTypeDescription
OR[LeadTypeFilterInput!]Matches records that meet at least one of the listed filters.
AND[LeadTypeFilterInput!]Matches records that meet all of the listed filters.
NOTLeadTypeFilterInputMatches 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.
formLostEnabledBooleanTrue when the lost form is required on archiving leads of this type.
isReadonlyBooleanTrue when the lead type is system-managed and cannot be edited or deleted by users.
leadProcessIdEntityFilterStringFieldId of the lead process that leads of this type follow.
nameEntityFilterStringFieldName of the entity and its default text representation.
isPublishedBooleanTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
leadProcessLeadProcessFilterInputLead process (pipeline) this lead type follows. Matches records where a related record meets these conditions.
LeadTypeOrderByInput input Asc or Desc per field

Sorting of LeadType 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.
leadProcess[LeadProcessOrderByNestedInput!]Lead process (pipeline) this lead type follows. Sorts by fields of the related record, listed in order of priority.
formLostEnabledOrderByEnumTrue when the lost form is required on archiving leads of this type.
isReadonlyOrderByEnumTrue when the lead type is system-managed and cannot be edited or deleted by users.
leadProcessIdOrderByEnumId of the lead process that leads of this type follow.
nameOrderByEnumName of the entity and its default text representation.
isPublishedOrderByEnumTrue when the entity configuration is published; false while it exists only as an unpublished draft.
revisionOrderByEnumRevision when entity was lastly changed.