/api/armature/v1/, authenticates with an Armature API key, scopes data to that key’s organization, and enforces the role the key was created under.
Use the REST API when you want to:
- Register MCP sources from infrastructure-as-code or onboarding scripts
- Create, update, archive, and manually dispatch workflows from CI
- Pull workflow run history, traces, evaluations, and tool calls into your own data store
- Read MCP usage insights — topics, failed searches, and session traces — into BI or alerting tools
Base URL
Your Armature REST API base URL is your dashboard URL with/api/armature/v1 appended:
your-org with your Armature organization slug. Every example in this section uses placeholder values — substitute your own host and key.
Surfaces
Authentication
Send your Armature API key as a bearer token. Roles are enforced per request.
MCP sources
List the connected MCP sources for your organization and register new ones.
Workflows
Create, update, archive, and manually dispatch workflows.
Runs
Search runs, pull full traces, evaluation evidence, and tool-call history.
Insights
Read MCP usage topics, failed search clusters, and session traces.
OpenAPI spec
Fetch the live OpenAPI 3.0 document to generate clients or import into tools.
Request and response format
All endpoints accept and return JSON. SendContent-Type: application/json on requests with a body. Successful responses use standard HTTP status codes — 200 OK for reads, 201 Created for resource creation, 202 Accepted for queued dispatches.
Errors return a JSON object with an error field:
| Status | Meaning |
|---|---|
400 | Validation failed. The error.message and any details describe the invalid field. |
401 | The API key is missing, malformed, or revoked. |
403 | The key’s role does not have permission for this operation, or the feature is disabled. |
404 | The resource does not exist or is not visible to your organization. |
OpenAPI spec
The live OpenAPI 3.0 document is served at/api/armature/v1/openapi. It is the source of truth for paths, parameters, and response schemas, and can be fed directly into client generators or API tooling. See OpenAPI spec for details.
Related
- Create an API key — generate a bearer token for the REST and MCP APIs.
- MCP API overview — the agent-facing MCP surface backed by the same key.