Skip to main content

Integration & API

Connect your scripts or services to DesireCore using the address and credentials for the service you need. The guides cover connection checks, conversations and results, Agent Webhooks, model protocols, and workflow integration.

Choose a guide​

GoalRequirementsGuide
Connect an instanceAdministrator-provided HTTPS address and instance tokenConnection and authentication
Submit conversations and follow resultsInstance owner access, Agent ID, Node.js 22+ for the exampleConversations and Runs
Read history, page through messages, and searchInstance owner access and a known Agent or RunSession history and messages
Upload attachments, submit file references, or access mediaInstance owner access; media playback uses short-lived signed URLsAttachments and media
Trigger an Agent from external eventsEnabled event and Agent-level Webhook secret; owner configuration requires the webhookManagement capabilityAgent Webhook
Call model protocols through the local proxyRunning local proxy and provider-bound safe tokenModel proxy
Trigger an existing workflowSeparate Workflow Service address, service token, and administrator-provided definitionWorkflow integration
Import HTTP contracts into a toolSelect the spec for your serviceOpenAPI downloads
Let DesireCore call your business serviceMCP server, tools or skillsMCP integration and integration overview
Diagnose upstream connectivity and observe recent tool calls and recorded usageInstance-owner accessInstance Diagnostics and Usage
Read task boards, task details and activityInstance owner access and the TaskBoard capabilityTaskBoard reads
List objects or download from configured storageInstance owner access, Object Storage capability and a configured connectionS3 object reads
Read temporary Worker recordsParent Run ownershipWorker records
Restore team archives or bind an exact Workflow definitionDeployment-owner management credential and configured servicesInstance management

Credentials and results​

Agent Service uses X-Agent-Service-Token; external Webhooks use Authorization: Bearer <Webhook secret>. Model proxy credentials and Workflow Service tokens have their own scope. A provider API Key does not substitute for an instance credential.

A handshake 200 confirms the authenticated request. Query submission 202 and Webhook 200 accepted acknowledge admission or receipt; follow the corresponding guide to observe completion and delivery. Conversation events use Socket.IO, while Workflow progress uses SSE.

Compatibility and stability​

Verify the handshake and required capabilities before integrating, then follow each endpoint's status codes, fields, and asynchronous results. A successful connection does not establish every capability. The three services' addresses and credentials are not interchangeable.

  • Send requests according to their own Schema. Do not apply one endpoint's extra fields or response wrapper to another.
  • Where a response permits extensions, ignore new optional fields you do not use while validating instance identity, required fields, and known states. Treat unknown states and absent fields as unknown rather than silently substituting idle or success.
  • OpenAPI info.version identifies a revision of the interface description. It is neither a compatibility guarantee shared by every service nor an effective client version. Follow each guide and the actual instance response for support conditions.
  • History is a display view that may contain privacy placeholders and omit body references. See history-result read boundaries. For timeouts, disconnects, and unknown outcomes, follow admission reconciliation instead of creating a new execution immediately.

Start integrating​

  1. Obtain the actual service address and its credential. Use verified HTTPS for remote access.
  2. Complete the connection check or the selected guide's minimal example.
  3. Check the actual response and result delivery. See errors and troubleshooting for failures.
Documentation and instance addresses

https://docs.desirecore.com/api is a documentation page. Send API requests to your own instance address, such as https://agent.example.com.