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 /api on its own app host.
  • Versioned paths: every operation sits under /v1. See Versioning.
  • JSON: request and response bodies are JSON with snake_case field 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 cursor and limit. 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

For administrators

For developers