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
| Goal | Requirements | Guide |
|---|---|---|
| Connect an instance | Administrator-provided HTTPS address and instance token | Connection and authentication |
| Submit conversations and follow results | Instance owner access, Agent ID, Node.js 22+ for the example | Conversations and Runs |
| Read history, page through messages, and search | Instance owner access and a known Agent or Run | Session history and messages |
| Upload attachments, submit file references, or access media | Instance owner access; media playback uses short-lived signed URLs | Attachments and media |
| Trigger an Agent from external events | Enabled event and Agent-level Webhook secret; owner configuration requires the webhookManagement capability | Agent Webhook |
| Call model protocols through the local proxy | Running local proxy and provider-bound safe token | Model proxy |
| Trigger an existing workflow | Separate Workflow Service address, service token, and administrator-provided definition | Workflow integration |
| Import HTTP contracts into a tool | Select the spec for your service | OpenAPI downloads |
| Let DesireCore call your business service | MCP server, tools or skills | MCP integration and integration overview |
| Diagnose upstream connectivity and observe recent tool calls and recorded usage | Instance-owner access | Instance Diagnostics and Usage |
| Read task boards, task details and activity | Instance owner access and the TaskBoard capability | TaskBoard reads |
| List objects or download from configured storage | Instance owner access, Object Storage capability and a configured connection | S3 object reads |
| Read temporary Worker records | Parent Run ownership | Worker records |
| Restore team archives or bind an exact Workflow definition | Deployment-owner management credential and configured services | Instance 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
idleor success. - OpenAPI
info.versionidentifies 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
- Obtain the actual service address and its credential. Use verified HTTPS for remote access.
- Complete the connection check or the selected guide's minimal example.
- Check the actual response and result delivery. See errors and troubleshooting for failures.
https://docs.desirecore.com/api is a documentation page. Send API requests to your own instance address, such as https://agent.example.com.