Ivy developer docs
Ivy’s REST API lets your code work in an organisation’s spaces: read and write files, talk to the assistant and its agents, and run code in a sandbox. Integrations authenticate with an API key that belongs to a service identity, which only reaches the spaces it was added to and only does what the key’s scopes allow.
Start here
- Quickstart: create a service identity and a key, upload a file, run it and follow its output.
- Authentication: the key format, scopes, rotation and revocation.
- JavaScript SDK: the typed client and streamed replies.
- API reference: every operation an API key can use, with the scope it needs, generated from the API’s OpenAPI document.
The basics
- Base URL:
https://app.ivy.work/api. A self-hosted Ivy serves the API at/apion its own app host. - Versioned paths: every operation sits under
/v1. See Versioning. - JSON: request and response bodies are JSON with
snake_casefield names. File contents are sent and received as raw bytes. - Errors: every error has the same shape,
{"error": {"code": "…", "message": "…"}}. See Errors. - Lists are paged with
cursorandlimit. See Pagination. - Safe retries: sending a message and starting a code run take an id of your own, so a repeated request doesn’t do the work twice. See Idempotency.
- Streams: agent runs, code runs and space changes arrive as server-sent events. A run keeps going on the server if your connection drops, and you resume it with
Last-Event-ID. See Event streams. - Limits: see Rate limits.
What a key can’t do
API keys are for integrations, not for administration. Managing people, billing, sign-in settings, service identities and API keys stays with the people who run your organisation, in the Ivy app. Authentication lists everything a key can’t reach.
Sharing files
- Share links: give people in your organisation, or anyone with the link, a read-only view of a file or folder, with an expiry, a password and a pinned version.
Connected drives
Space admins link SharePoint libraries and Google shared drives that an org admin selected under Service access as space folders. Files stay at Microsoft or Google; Ivy reaches them with the organisation’s app access, so everyone in the space sees the same files within their space role, and space membership decides who sees them. Nobody connects a personal Microsoft or Google account, and Ivy stores no personal tokens. Ivy scans every file before serving it. See Connected drives, with setup guides for Microsoft 365 and Google Drive.
Ivy in Slack and Teams
On the Business and Enterprise plans, people can ask Ivy and your spaces’ agents from Slack or Microsoft Teams, as themselves, in channels a space admin connects to a space or in a direct chat. See Ivy in Slack and Teams, with installation guides for Slack and Microsoft Teams.
Provisioning people with SCIM
On the Enterprise plan, your identity provider can create, update and deactivate people in Ivy over SCIM 2.0, and its groups can grant access to spaces. See SCIM provisioning, with step-by-step guides for Okta and Microsoft Entra ID.
Running Ivy yourself
Ivy runs from one Helm chart on any Kubernetes cluster, with the same API. File features also need S3-compatible storage (or the bundled MinIO) and ClamAV for malware scanning, which the chart deploys; code runs need gVisor sandbox nodes. See Self-hosting.
Using Ivy
- Getting startedWhat Ivy is, how to sign in for the first time, how the navigation and a space are laid out, and how to start your first conversation with an agent.
- Spaces and rolesWhat a space is, how to create one and add people, what organisation and space roles allow, how to use and add a space’s apps, how to import a public space, and the space settings.
- FilesUpload, open and edit files in a space, go back to earlier versions, use the trash, understand malware scanning, run code files and work in a connected drive.
- DashboardsMake a dashboard of a CSV, TSV, JSON or Excel file in a space: ask the assistant, lay out figures, charts and tables, keep it up to date and fix its problems.
- Dashboard file referenceThe fields of an .ivy-dashboard.yaml file: its sources and transforms, each widget type and the formats, generated from the schema Ivy checks dashboards with.
- SharingCreate a share link to a file or folder, choose who can open it and for how long, see what recipients get, revoke a link and understand your organisation’s limits.
- Using agentsStart a chat with Ivy’s assistant or a space agent, choose a model, attach files, and see what an agent can read and change. For members and space admins.
- ConversationsChat with an agent, bring colleagues into a conversation, work in channels and threads, answer an agent’s questions, and edit, delete or stop messages.
- FlowsDepends on how Ivy is set upSet up a flow in a space: what starts it, its steps, testing and activating it, who a run acts as, its runs and notices, and what to do when it is paused.
- Flow file referenceDepends on how Ivy is set upThe fields of an .ivy-flow.yaml file: each trigger and step type with its fields, types, defaults and an example, generated from the schema Ivy checks files with.
- Connections file referenceDepends on how Ivy is set upThe fields of a space’s connections.ivy.yaml: each connection’s hosts and how its secret is sent, generated from the schema Ivy checks the file with.
- Tasks and boardsDepends on how Ivy is set upKeep a space’s tasks and other records on kanban boards: the Collections section, board files, columns and filters, moving cards, the record panel, comments, roles and the assistant.
- Collection file referenceDepends on how Ivy is set upThe fields of an .ivy-collection.yaml file, how a new version applies, extending the built-in tasks collection, generated from the schema Ivy checks collections with.
- Board file referenceDepends on how Ivy is set upThe fields of an .ivy-board.yaml file: the collection it shows, its columns, filter and cards, generated from the schema Ivy checks boards with.
- NotificationsDepends on how Ivy is set upFollow your notifications under Activity, mark them read or unread, choose what you’re notified about per kind of conversation, set up emails and digests, pause notifications and unsubscribe.
- Account and sign-inSign in, accept an invitation, reset a password, add a passkey or two-step verification, and manage your profile, notifications, language and connected accounts.
For administrators
- Administer an organisationAn administrator’s guide to an Ivy organisation: people, roles, sign-in and single sign-on, domains and SCIM, agents, service identities, sandbox environments, drives, sharing rules and billing.
- GitHub as a sourceMirror GitHub Issues and Projects into a collection such as tasks: the GitHub App connection, the sources of the collection file, applying, webhooks, linked people and conflicts.
For developers
- Ivy developer docsBuild on Ivy with its REST API: authenticate with a scoped API key, work with spaces, files, conversations and code runs, and follow runs as they stream.
- QuickstartCreate a service identity and an API key, make your first request with curl, upload a file, start a code run and follow its output as server-sent events.
- AuthenticationHow code authenticates to the Ivy API: service identities, scoped API keys, the key format for secret scanners, rotation, revocation, expiry and access tokens.
- JavaScript SDKInstall the typed Ivy JavaScript SDK from GitHub Packages, authenticate with an API key, handle errors and stream assistant replies that resume automatically.
- ErrorsEvery Ivy API error has the same JSON shape with a stable code. The common codes per HTTP status, operation-specific codes, errors in streams, and when to retry.
- PaginationHow the Ivy API pages through lists: the cursor and limit parameters, next_cursor in responses, page sizes per list, and how to read a whole collection.
- IdempotencyWhich Ivy API requests you can repeat without doing the work twice: client_message_id for agent messages, client_run_id for code runs, and If-Match for file changes.
- Office files referenceDepends on how Ivy is set upHow the assistant and your Python code create and edit .docx, .pptx and .xlsx files in Ivy’s sandbox: templates, styles, tables, images, charts, formulas and checks.
- Event streamsFollow agent runs, code runs and space changes as server-sent events: the event names and their data, resuming with Last-Event-ID, heartbeats and errors.
- Rate limitsHow the Ivy API limits requests per API key, the limits on runs and uploads, what a 429 response means, and how to back off and retry correctly.
- VersioningThe Ivy API is versioned in its path. Which changes happen within /v1, what counts as breaking, and how every change to the API is checked for breaking changes.
- Self-hostingRun Ivy on your own Kubernetes cluster with its Helm chart: releases, sign-in, file storage, malware scanning, the code sandbox and limits.
- SCIM provisioningDepends on how Ivy is set upNeeds a plan with SCIMConnect your identity provider to Ivy with SCIM 2.0: tokens, supported attributes and filters, groups mapped to spaces and roles, deactivation and erasure.
- SCIM with OktaDepends on how Ivy is set upNeeds a plan with SCIMConnect Okta to Ivy with SCIM 2.0: the app integration, connector base URL, bearer token, provisioning actions, attribute mappings, pushed groups and a test run.
- SCIM with Microsoft Entra IDDepends on how Ivy is set upNeeds a plan with SCIMConnect Microsoft Entra ID to Ivy with SCIM 2.0: a non-gallery enterprise app, tenant URL and secret token, attribute mappings, scope and provisioning on demand.
- Share linksCreate share links for a file or folder through the API: audiences, access, expiry, passwords and version pins, what recipients see, revocation and the organisation’s rules.
- Connected drivesDepends on how Ivy is set upLink SharePoint libraries and Google shared drives to spaces as folders: space access, Service access, scanning, writes, revocation and the API.
- Connected drives with Microsoft 365Depends on how Ivy is set upSet up connected drives with Microsoft 365: Entra ID admin consent, the one permission Ivy asks for, Sites.Selected grants per site, site addresses in Ivy and revoking.
- Connected drives with Google DriveDepends on how Ivy is set upSet up connected drives with Google Drive: adding Ivy’s service account to shared drives as Content manager, selecting them in Ivy as their Manager, and revoking.
- Connected drives, self-hostedRegister your own Microsoft Entra app and Google service account for connected drives, and set the Helm chart values and environment. No person signs in to either.
- Ivy in Slack and TeamsDepends on how Ivy is set upNeeds a plan with Slack and TeamsAsk Ivy and its agents from Slack or Teams as yourself: link your account, connect a channel to a space, direct messages, confirmations, attachments and unlinking.
- Install the Slack appDepends on how Ivy is set upNeeds a plan with Slack and TeamsConnect a Slack workspace to your Ivy organisation: who can install, the permissions the app asks for, what it reads, connecting channels and uninstalling it.
- Install the Teams appDepends on how Ivy is set upNeeds a plan with Slack and TeamsConnect your Microsoft 365 tenant to Ivy: approve it once, let people add it or install it for everyone or chosen teams’ members, connect channels and remove it.
- Slack and Teams: self-hostedRun Ivy in Slack and Teams on your own installation: a Slack app from the manifest, a single-tenant Azure Bot, the messaging endpoint, secrets and Helm values.
- App manifest referenceThe fields of a space app’s manifest, a *.ivy-app.toml file: its frontend, the files it opens and creates, its processes and tools, generated from the schema Ivy checks it with.
- Write a page appHow a space app’s HTML page gets its file, saves through Ivy, follows the theme and language, calls tools and collections, and loads its own files, with a complete example.