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
| Aspect | Details |
|---|---|
| Base URL | https://api.meetloyd.com/api/v1 |
| Authentication | Authorization: Bearer ml_… (an API key from Settings → API access) |
| Format | JSON request and response bodies (Content-Type: application/json) |
| Versioning | In the URL (/api/v1/…). Every response carries X-API-Version: v1. |
| Client libraries | TypeScript 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
| Resource | What you can do | Reference |
|---|---|---|
| Agents | List, create, update, pause, resume, delete, run, read run history | Agents API |
| Conversations | Start a conversation, send messages with a streamed answer, read history, archive | Conversations API |
| Tasks | Create one-off, scheduled or triggered work, run it, approve it, read its runs | Tasks API |
| Manifests | Validate, preview, deploy, upgrade and roll back teams described as code | Manifests API |
| Skills | Browse skills, assign them to agents, archive and restore | Skills API |
| Agent identity | Agent public keys, short-lived identity tokens, delegation between agents | Agent Identity API |
| Webhooks & events | Receive a signed HTTP call when something happens | Webhooks |
| Your own storage | Point content at your own bucket, move existing content, rotate keys | Storage API |
Agents built on other platforms connect through the governance gateway instead of this API: see Connect an agent through the gateway.
Status codes
| Code | Meaning |
|---|---|
| 200 / 201 | Success / created |
| 400 | The request is invalid — the body says which field |
| 401 | Missing, expired or revoked key |
| 402 | The model provider refused your organisation's own key for lack of credit |
| 403 | The key or the person behind it lacks the permission, or the resource is in a workspace they cannot access |
| 404 | Not found — also returned for resources in another workspace, so their existence is not disclosed |
| 409 | Conflict with an existing resource |
| 423 | The agent or team was halted by an administrator |
| 429 | Too many requests — retry after the Retry-After seconds |
| 500 | Something 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
404as "not visible to this key", not only "does not exist".