Documentation
Guides, API reference and events for Integrations.
On this page
Rules shared by every R&D Copilot API are in the Developer guide.
Get started
- Overview: Build flows between systems and inspect each run and step.
- Quickstart: Create a flow, start its run and read the confirmed outcome.
- First flow: Follow an online order through ERP, parallel calls, approval and completion.
- Authentication: Get client credentials, request a token and call the Integrations API with it.
- Sandbox and live: Build and test against a test company, then move the same calls to your live company.
- Go-live checklist: Check access, recovery and event delivery before enabling live triggers.
Concepts
- Flows and versions: A flow definition is versioned; each run keeps its starting definition.
- Steps: Dependencies determine when a step may begin; attempts record each execution.
- Runs and statuses: An accepted operation starts the work; the run status tells you how that work ends.
- Connections: A connection names the destination system and points to its stored credentials, so a flow step can call that system without holding any secret.
- Idempotency: Keep one operation identifier for one intended change.
Build
- Define a flow: Declare the steps and dependencies before starting a version.
- Step types: Choose a step by the work it performs and the condition that releases it.
- Inputs and mappings: Map stable business identifiers into destination requests.
- Errors and retries: See how a call is attempted again by the run, and how an operator retries it once those attempts are used.
- Approvals: An approval waits for an authorized decision within its time limit.
- Test a flow: Exercise completion, timeout recovery and approval in the test company.
Run
- Start by API: Start a selected flow version and track the resulting run.
- Triggers: Bind an input event to a selected flow version.
- Schedules: Associate a recurring start with a flow version and time zone.
- Operate runs: Inspect the path, retry an eligible call or cancel active work.
Connectors
- Catalogue: Choose a destination category and configure its connection.
- Credentials: Reference destination credentials without copying secrets into flow input.
- Custom connector: Define a destination contract before attaching a custom connection to a flow.
- Limits: A flow sets how often and how long a step runs; each destination also accepts only so many requests, and both limits apply to every call.
Reference
- Errors: The error object of the Integrations API and the codes that say what went wrong.
- Status table: Every run and step status, with its operational meaning.
- Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
- Pagination: Lists come in pages. Follow the cursor until it is empty.
- Limits: The limits of the Integrations API, with their values and what happens over them.
- Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
- Changelog: Contract versions and changes to the Integrations API.
API reference
- Flows: Define the steps, their dependencies and settings, and the branch limit; every change publishes a new version and runs already started keep theirs.
- Runs: Start a run for an order, follow it step by step, retry a failed call, cancel it and read how each attempt ended.
- Connections: Register the systems a flow calls and the credential each one uses, and take a connection out of use without editing the flows.
- Triggers: Start runs from an incoming webhook, so the shop’s orders reach the flow without your software calling the API.
- Schedules: Start runs at fixed times in a chosen time zone, and decide whether a run still going when the next is due makes it skip.
- Steps: Read attempts, inputs and outputs, and decide waiting approvals.
- Events: Read delivery records, subscribe to changes and replay parked events.
- Operations: A request that changes data is accepted once and answered with an operation result you can read again.
Events
- Event envelope: Every Integrations event has the same envelope; only
datachanges with the type of the event. - Event catalogue: Lifecycle events identify a run, its revision and its originating operation.
- Subscriptions: Register an HTTPS endpoint and Integrations sends your events to it, each one signed.
- Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
- Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
- Replay: Send a parked event again once your endpoint is ready to take it.