Skip to main content

API Overview

The MeetLoyd REST API gives your own software the same access your people have in the dashboard: create and run agents, hold conversations, create tasks, deploy teams, and receive events as they happen. Use it to embed agents in your applications, automate operations, or connect MeetLoyd to the rest of your stack.

At a glance​

AspectDetails
Base URLhttps://api.meetloyd.com/api/v1
AuthenticationAuthorization: Bearer ml_… (an API key from Settings → API access)
FormatJSON request and response bodies (Content-Type: application/json)
VersioningIn the URL (/api/v1/…). Every response carries X-API-Version: v1.
Client librariesTypeScript SDK and CLI. From Python, call the API directly.

If your organisation runs a dedicated or on-premises installation, use its API host instead of api.meetloyd.com.

Your first call​

curl https://api.meetloyd.com/api/v1/agents \
-H "Authorization: Bearer $MEETLOYD_API_KEY"

A key only reaches what it was given (see Authentication), and the person who created it can never hand a key more than they hold themselves.

Resources​

ResourceWhat you can doReference
AgentsList, create, update, pause, resume, delete, run, read run historyAgents API
ConversationsStart a conversation, send messages with a streamed answer, read history, archiveConversations API
TasksCreate one-off, scheduled or triggered work, run it, approve it, read its runsTasks API
ManifestsValidate, preview, deploy, upgrade and roll back teams described as codeManifests API
SkillsBrowse skills, assign them to agents, archive and restoreSkills API
Agent identityAgent public keys, short-lived identity tokens, delegation between agentsAgent Identity API
Webhooks & eventsReceive a signed HTTP call when something happensWebhooks
Your own storagePoint content at your own bucket, move existing content, rotate keysStorage API

Agents built on other platforms connect through the governance gateway instead of this API: see Connect an agent through the gateway.

Status codes​

CodeMeaning
200 / 201Success / created
400The request is invalid — the body says which field
401Missing, expired or revoked key
402The model provider refused your organisation's own key for lack of credit
403The key or the person behind it lacks the permission, or the resource is in a workspace they cannot access
404Not found — also returned for resources in another workspace, so their existence is not disclosed
409Conflict with an existing resource
423The agent or team was halted by an administrator
429Too many requests — retry after the Retry-After seconds
500Something failed on our side

Errors​

Errors come back as JSON with a short machine-readable error and, on most endpoints, a human-readable message:

{ "error": "notFound", "message": "Agent not found" }

Some endpoints add a code (for example TEAM_REQUIRED when you create an agent without choosing a team). Branch on the HTTP status and on error/code, never on the wording of message.

Lists and pagination​

List endpoints take page (from 1) and limit query parameters and return the items with a meta object:

{
"agents": [ /* … */ ],
"meta": { "total": 42, "page": 1, "limit": 100, "hasMore": false }
}

Most lists also filter by workspace and team (appId, teamId). Each reference page lists the filters its endpoints accept.

Rate limits​

Sensitive and expensive endpoints, such as sign-in, API key management and coding sessions, are rate-limited. When you exceed a limit you get a 429 with X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After headers. Wait for Retry-After seconds, then retry.

Good practice​

  • Keep keys in a secret store or environment variable, never in code.
  • Use one key per integration so you can revoke one without touching the others.
  • Give each key the narrowest permissions it needs, and an expiry.
  • Treat 404 as "not visible to this key", not only "does not exist".