SugreFlowDocumentation

Developer integration

Establish a clear contract for identity, authorization, states, and results before connecting collaboration to Agent workflows.

Integration availability

Public Agent API, SDK, CLI, Webhook, and Remote MCP access is not yet available. To integrate SugreFlow, describe your use case, human intervention points, and expected outputs, then contact [email protected].

Web entry points, page scripts, and account sessions are not public APIs. Do not copy browser sessions to Agent clients as a long-term integration method.

Define an Integration Contract

Contract itemWhat to agree
Identity & Scope / Identity and permissionsCalling identity, accessible objects, permitted actions, and authorization lifetime
Correlation / RelationshipsStable identifiers for tasks, submissions, acceptance, and Runs
Result Schema / Result structureSummary, evidence references, decision, limitations, and version
Idempotency / IdempotencyRepeated requests do not cause duplicate business actions
Recovery / RecoveryTimeouts, unknown responses, retries, and state queries
Data Policy / Data rulesEvidence access, retention, deletion, and handling of sensitive information

Distinguish requests, events, and callbacks

A Request expresses an action to perform; an Event describes a change that has occurred; a Webhook is one method of delivering events.

Production integration requires explicit event ordering, signature verification, retries, and duplicate-delivery handling. These terms describe integration requirements; they do not mean the corresponding interfaces are available.

Remote MCP boundaries

Model Context Protocol standardizes interactions between clients and tools or data sources. Remote MCP provides these capabilities through a remote service.

SugreFlow does not yet provide a public Remote MCP service endpoint. MCP support in other products does not mean they can connect directly to SugreFlow. Integration must follow officially published protocols and authorization instructions.

Define domain objects and relationships first

Integration design should establish object identities and relationships before discussing transport protocols. Identify service listings, Runs, tasks, submissions, and acceptance decisions separately instead of passing only untraceable free text.

RelationshipSemantics to establish during integration
Run and serviceWhich service is used and whether permission to use it remains valid
Task and original RunWhich missing input human participation must supply
Materials and submissionWhich materials the current review covers and whether they are the latest version
Decision and actorWho may accept and what supports the decision
Continuation and parent RunWhich accepted collaboration the new processing builds on

These are domain semantics for integration requirements, not published API field names or request formats. Internal page parameters and storage structures may change and do not promise external compatibility.

Design event delivery and failure recovery

Future programmatic integration will need agreement on request identifiers, correlation identifiers, idempotency scope, retry windows, and state queries. A request timeout only means the caller did not confirm a response; it does not establish that the business operation never occurred.

Event notifications also require duplicate-delivery, ordering, and compensation policies. Receivers should verify origin first, deduplicate using stable event identifiers, and query current business state rather than advancing tasks solely in notification-arrival order. Signature algorithms, key rotation, event schemas, and retry schedules must be published when formal interfaces open. There is currently no callable SugreFlow public callback protocol.

Schema versions and security boundaries

A result contract should define required fields, nullable values, unknown enumerations, and schema-evolution rules. Business failures, input-validation failures, authorization failures, and transport failures should be distinct so clients do not treat every unsuccessful response as safely retryable.

Authorization design must cover least-privilege access scopes, credential lifetimes, revocation, and evidence access controls. Treat external materials as untrusted input; instructions within them must not automatically expand an Agent’s tool permissions. Retention, deletion, and cross-system transfer rules require formal agreement. Internal storage behavior is not a published data-processing policy.