Skip to Content
Developer APIAgent Runtime API overview

Agent Runtime API overview

The UpServe Agent Runtime API is a server-to-server REST API that lets external systems call AI employees (Deployments) and workflows published by your organization. Use it when an internal system, a batch job, or a backend service needs to hand work to an UpServe AI employee and collect the result.

Let a coding agent connect it

You do not need to learn the API. A coding agent such as Claude Code or Cursor reads this guide and connects it to your service.

  1. In the web app console, create a Project and publish an AI employee in the Publishing & access menu. Then create a key that allows it in the Keys menu. For allowed operations, choosing all except actions:approve and works:approve works.
  2. Copy with a button below, paste it into your coding agent, and add one line about what you want.
  3. Paste the key yourself after UPSERVE_API_KEY= in the .env file the agent creates. Do not paste the key into the chat.

Open the guide · Anyone can use it. If every call returns 404, the Project was blocked by an operator or revoked.

This is not an OpenAI-compatible API. There is no OpenAI style chat completions path, and the request and response formats differ. Changing the base URL of an OpenAI SDK will not work.

Access

  • Anyone can use it. Create a Project and issue a key in the developer console, and you can call right away. You do not need to apply.
  • An operator can block a Project for security or stability reasons. For a blocked Project, every path answers 404 NOT_FOUND.
  • Changes to the contract (paths, fields, limits) are recorded in the changelog.
  • It is not meant to be called directly from a browser or a mobile app. Keep API keys on your servers only.

Basics

ItemValue
Base URLhttps://api.upserve.app (every path starts with /v1, for example https://api.upserve.app/v1/deployments)
AuthenticationAuthorization: Bearer up_... (API key)
FormatJSON (multipart only for file uploads)
Contract sourceopenapi.json

The OpenAPI file is the source of truth for request and response schemas of the public /v1 paths. If this documentation and the file disagree, the file wins.

Core concepts

ConceptDescription
ProjectThe unit of access owned by an organization. API keys, Deployments, webhooks, and budget limits belong to a Project.
API keyA credential that belongs to a Project. It carries allowed scopes and the list of Deployments and workflows it may call.
DeploymentAn organization’s AI employee published and frozen at a point in time. Editing the original employee does not change a published Deployment.
SessionA conversation with one Deployment. Earlier turns carry over within the same Session.
TurnOne input sent to a Session and its execution. A Session runs only one Turn at a time.
WorkflowThe order and conditions of work that the organization has published. Its published version and input schema are fixed.
RunOne execution of a published workflow. It passes through several steps to produce results.
ArtifactA file produced by an execution. You download it through a short-lived URL.
EventA record that reports the progress of a Turn or Run. Polling, SSE, and webhooks all use the same records.

Where to start

  1. Run your first Turn with the quickstart.
  2. Learn how to handle keys in authentication.
  3. For conversational calls read Sessions and Turns. For workflow calls read Workflows and Runs.
  4. Before going to production, read events, webhooks, errors, and limits and data.
  5. To build a new organization team from a work description, read organization works.

When an AI tool writes the integration

Use the buttons in the “Let a coding agent connect it” box at the top to hand over the integration guide. The guide is one Markdown file. It holds the steps the coding agent follows, the rule summary from llms.txt, and all of this documentation except the changelog. This documentation and openapi.json remain the source of the detailed contract.

The guide has the coding agent work as follows.

  • A person puts the key in the server .env file. It never goes into the chat.
  • The agent finds the Deployment to call with GET /v1/deployments. Only a workflow ID is copied from the console by a person.
  • It writes server side code only, in the language and framework the project already uses.
  • It makes one small test call and reports in the person’s language.

Have it decide whether to run a failed execution again with the per-code next step table in errors. It is safer to have a person confirm decisions that cost money again and budget changes.