Integrations and brand configuration.
Queries
currentIntegration
The current associated Integration for the API key
Returns: Integration! — An external data source connected to Endear
integration
A single Integration by ID
Arguments
id(ID!) — The unique identifier of the Integration
Returns: Integration — An external data source connected to Endear
integrations
Lists Integrations
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)first(Int) — The number of results to fetch when searching forward (only include first & after or last & before)includeDisabled(Boolean) — Whether or not to include disabled IntegrationsincludeDisconnected(Boolean) — Whether or not to include disconnected Integrationslast(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to filter resultssortBy(SortIntegrationsBy) — The sort keysortDir(SortDirection) — The sort directiontype(IntegrationType) — The type of Integration to filter results by
Returns: IntegrationConnection! — A connection to a list of items.
integrationsByIds
A list of Integrations by IDs
Arguments
ids([ID!]!) — The IDs of the Integrations
Returns: [Integration]! — An external data source connected to Endear
searchIntegrations
Deprecated: Use Query.integrations instead
Lists Integrations
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)first(Int) — The number of results to fetch when searching forward (only include first & after or last & before)includeDisabled(Boolean) — Whether or not to include disabled IntegrationsincludeDisconnected(Boolean) — Whether or not to include disconnected Integrationslast(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to filter resultssortBy(SortIntegrationsBy) — The sort keysortDir(SortDirection) — The sort directiontype(IntegrationType) — The type of Integration to filter results by
Returns: IntegrationConnection! — A connection to a list of items.
Mutations
bulkUpsertExternalCustomers
Upserts one or more ExternalCustomers by ID
Arguments
customers([ExternalCustomerInput!]!) — The list of ExternalCustomers
Returns: OperationStatus!
bulkUpsertExternalLocations
Upserts one or more ExternalLocations by ID
Arguments
locations([ExternalLocationInput!]!) — The list of ExternalLocations
Returns: OperationStatus!
bulkUpsertExternalMarketingEvents
Upserts one or more ExternalMarketingEvents
Arguments
marketingEvents([ExternalMarketingEventInput!]!) — The list of ExternalMarketingEvents
Returns: OperationStatus!
bulkUpsertExternalMarketingSubscriptions
Upserts one or more ExternalMarketingSubscriptions
Arguments
marketingSubscriptions([ExternalMarketingSubscriptionInput!]!) — The list of ExternalMarketingSubscriptions
Returns: OperationStatus!
bulkUpsertExternalOrderItems
Upserts one or more ExternalOrderItems by ID
Arguments
orderItems([ExternalOrderItemInput!]!) — The list of ExternalOrderItems
Returns: OperationStatus!
bulkUpsertExternalOrders
Upserts one or more ExternalOrders by ID
Arguments
orders([ExternalOrderInput!]!) — The list of ExternalOrders
Returns: OperationStatus!
bulkUpsertExternalProducts
Upserts one or more ExternalProducts by ID
Arguments
products([ExternalProductInput!]!) — The list of ExternalProducts
Returns: OperationStatus!
bulkUpsertExternalProductVariants
Upserts one or more ExternalProductVariants by ID
Arguments
productVariants([ExternalProductVariantInput!]!) — The list of ExternalProductVariants
Returns: OperationStatus!
bulkUpsertExternalRefunds
Upserts one or more ExternalRefunds by ID
Arguments
refunds([ExternalRefundInput!]!) — The list of ExternalRefunds
Returns: OperationStatus!
requestIntegrationDataDeletion
Requests the deletion of all data for an Integration
Arguments
integrationId(ID!) — The ID of the Integration to delete data for
Returns: RequestIntegrationDataDeletionPayload!
revokeApiKey
Revokes an ApiKey
Arguments
id(ID!) — The ID of the ApiKey to revoke
Returns: ApiKey!
triggerIntegrationWorkflow
Triggers a workflow for an Integration
Arguments
validate(Boolean) — Whether to validate the Workflow input (once you have validated your workflow input, we recommend leaving this off to increase your throughput)workflowId(ID!) — The unique identifier of the WorkflowworkflowInput(JSONObject!) — The input for the Workflow
Returns: TriggerIntegrationWorkflowPayload!
updateApiKey
Updates an ApiKey
Arguments
id(ID!) — The ID of the ApiKey to updatelabel(NonEmptyString) — The new label for the ApiKey
Returns: ApiKey!
Objects
ApiKey
Fields
created_at(DateTime!)hashed_key(String!) — The hashed key of the ApiKeyid(ID!)integration(Integration!) — The Integration of the ApiKeylabel(String!)revoked_at(DateTime)scopes([ApiKeyScope!]!)updated_at(DateTime!)
Integration
An external data source connected to Endear
Fields
created_at(DateTime!) — The date the Integration was createddisabled_at(DateTime) — The date the Integration was disabled due to connection issuesdisconnected_at(DateTime) — The date the Integration was permanently disconnectedexternal_id(ID) — The external identifier of the Integrationid(ID!) — The unique identifier of the Integrationis_current(Boolean!) — If the Integration is the current Integration for the API keylabel(String!) — The user-facing type & name label of the Integrationname(String!) — The user-facing name of the Integrationorigin_website_url(String) — The origin website URL of the Integrationtype(IntegrationType!) — The type of the Integrationupdated_at(DateTime!) — The date the Integration was last updateduse_case(IntegrationUseCase) — The use-case of the Integration — 🚧 Deprecated: No longer used
IntegrationConnection
A connection to a list of items.
Fields
edges([IntegrationEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
IntegrationDataDeletion
A request to delete an Integration's data
Fields
created_at(DateTime!) — The date and time the IntegrationDataDeletion was createdid(ID!) — The ID of the IntegrationDataDeletionintegration(Integration!) — The Integration for which data is being deletedrequested_by_integration(Integration)requested_by_user(User)updated_at(DateTime!) — The date and time the IntegrationDataDeletion was last updated
IntegrationEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(Integration) — The item at the end of the edge
RequestIntegrationDataDeletionError
Fields
code(RequestIntegrationDataDeletionErrorCode!)human_readable_message(String!)
RequestIntegrationDataDeletionFailure
Fields
RequestIntegrationDataDeletionSuccess
Fields
integrationDataDeletion(IntegrationDataDeletion!)
TriggerIntegrationWorkflowError
Fields
code(TriggerIntegrationWorkflowErrorCode!)human_readable_message(String!)
TriggerIntegrationWorkflowFailure
Fields
errors([TriggerIntegrationWorkflowError!]!)
TriggerIntegrationWorkflowSuccess
Fields
operation(OperationStatus!)
Interfaces
ApiKeyInterface
Fields
created_at(DateTime!)id(ID!)integration(Integration!) — The Integration associated to the ApiKeylabel(String!)revoked_at(DateTime)scopes([ApiKeyScope!]!)updated_at(DateTime!)
Implemented by
Unions
RequestIntegrationDataDeletionPayload
Possible types
TriggerIntegrationWorkflowPayload
Possible types
Enums
ApiKeyScope
The available scopes for an ApiKey
Values
read_all_customersread_all_messagesread_all_notesread_all_ordersread_all_tasksread_appointmentsread_current_brandread_current_integrationread_customer_fieldsread_customer_piiread_customersread_integrationsread_message_contentsread_messagesread_notesread_ordersread_productsread_storiesread_tasksread_teamsread_templatesread_userssend_draftstrigger_integration_workflowswrite_api_keywrite_appointmentswrite_customer_fieldswrite_customerswrite_draftswrite_external_customerswrite_external_locationswrite_external_orderswrite_external_productswrite_external_userswrite_import_jobswrite_noteswrite_storieswrite_taskswrite_users
IntegrationType
The datasource type of an Integration
Values
APIATTENTIVEENDEARGLADLYGORGIASHEARTLANDITERABLEKLAVIYOKUSTOMERKWILIGHTSPEEDNEW_STOREOMETRIASHOPIFYSQUARETEAMWORKVENDZENDESK
IntegrationUseCase
A specific use case for the Integration (only applies to API Integrations)
Values
CSVOTHERZAPIER
RequestIntegrationDataDeletionErrorCode
Values
FORBIDDEN— You do not have permission to perform this actionINTEGRATION_DATA_DELETION_ALREADY_REQUESTED— An integration data deletion has already been requested for this integration within the last 24 hoursINTEGRATION_NOT_DISCONNECTED— The integration must be disconnected before data deletion can be requestedINTEGRATION_NOT_FOUND— The integration was not found
SortIntegrationsBy
The available keys to sort Integrations
Values
CREATED_ATUPDATED_AT
TriggerIntegrationWorkflowErrorCode
Values
WORKFLOW_NOT_FOUND— The workflow was not found
