Platform API
Reference for the public Argy platform API endpoints: projects, modules and Studio bundles, deployments, runs, notifications, read-only billing and governance.
The platform API groups the public endpoints that drive Argy programmatically: projects, the module catalog, Studio bundles, deployments, runs, notifications, read-only subscription data, governance and observability. It is aimed at teams that automate their use of Argy from scripts, CI/CD pipelines or internal tools.
Base URL: https://api.argy.cloud. Shared conventions (headers, error envelope, limits) are described in the API overview. For inference, see the LLM Gateway; for document search, the RAG API.
Prerequisites
- A Bearer token (PAT or JWT): see IAM authentication. Export it as
ARGY_PAT. - The permissions required by each route, listed in the tables below. A PAT created with an explicit list of permissions is limited to those; without a list, it keeps its creator's current rights (see PAT rights and the portal settings).
- Some features depend on your tenant's plan and configuration.
curl https://api.argy.cloud/v1/projects \
-H "Authorization: Bearer $ARGY_PAT"
Projects
Projects group the environments, deployments and documents of a single product. Managing them in the interface is covered in Projects and modules.
| Method and path | Permission | Description |
|---|---|---|
GET /v1/projects | project:read | Lists projects. Filters: q, gitUrl, orgId. |
POST /v1/projects | project:write | Creates a project. Response 201. |
GET /v1/projects/{projectId} | project:read | Project detail. |
PATCH /v1/projects/{projectId} | project:write | Updates a project. |
DELETE /v1/projects/{projectId} | project:write | Deletes a project. Response 204. |
If orgId names an organization you are not a member of, the response is a 403 (code: "FORBIDDEN") whose reasonCode is ORG_SELECTION_FORBIDDEN. Project creations, updates and deletions are recorded in the audit log.
Project environments and deployments
| Method and path | Permission | Description |
|---|---|---|
GET /v1/projects/{projectId}/environments | project:read | Lists environments. |
POST /v1/projects/{projectId}/environments | project:write | Creates an environment. |
GET, PATCH, DELETE /v1/projects/{projectId}/environments/{envId} | project:read / project:write | Reads, updates or deletes an environment. |
GET /v1/projects/{projectId}/deployments | project:read | Lists the project's deployments. |
POST /v1/projects/{projectId}/deployments | project:write | Records a deployment. |
GET, PATCH, DELETE /v1/projects/{projectId}/deployments/{deploymentId} | project:read / project:write | Reads, updates or deletes a deployment. |
POST /v1/projects/{projectId}/deploy | project:deploy | Triggers a deployment. Response 201. |
For POST .../deploy, idempotency is set with the Idempotency-Key header (UUID). Putting the key in the body is rejected with 400 BAD_REQUEST (reasonCode: IDEMPOTENCY_KEY_NOT_ALLOWED).
GET /v1/projects/{projectId}/deployment-secret-refs/{moduleId}/versions/{version} lists the secret references (secret://...) a module version requires for that project. Only references are returned, never values.
Modules
The module catalog contains the modules you can consume or publish. To build a bundle from the command line, see argy modules in the Argy Code CLI reference and the Argy Code extensions.
| Method and path | Permission | Description |
|---|---|---|
GET /v1/modules | module:read | Lists the catalog. Filters: q, type, visibility, state, orgId. |
POST /v1/modules | module:write | Creates a module. Response 201. |
POST /v1/modules/search | module:read | Searches the catalog (q field). |
GET /v1/modules/{moduleId} | module:read | Module detail. |
GET /v1/modules/{moduleId}/versions | module:read | Lists a module's versions. |
PUT /v1/modules/{moduleId}/versions/{version}/bundle | module:write | Uploads a version's bundle. |
PUT /v1/modules/{moduleId}/versions/{version}/publish | module:write | Publishes a version (empty body). |
POST /v1/modules/{moduleId}/compile | module:write | Starts compilation. Response 202. |
PUT /v1/modules/{moduleId}/publish, .../deprecate, .../unpublish | module:write | Changes the module's publication state. |
DELETE /v1/modules/{moduleId} | module:write | Deletes a module. Response 204. |
Studio bundles
A bundle is a deterministic module delivered as a versioned, immutable archive. The /v1/studio/bundles routes cover its lifecycle; using them from the interface is covered in Projects and modules.
| Method and path | Description |
|---|---|
POST /v1/studio/bundles/validate | Validates a bundle without creating it. |
POST /v1/studio/bundles | Creates a bundle (draft). |
GET /v1/studio/bundles/{moduleId}/versions | Lists a bundle's versions. |
GET /v1/studio/bundles/{moduleId}/versions/{version}/secrets | Lists the secret:// references the version requires, never the values. |
PUT /v1/studio/bundles/{moduleId}/versions/{version}/bundle | Uploads a version's archive. |
POST /v1/studio/bundles/{moduleId}/versions/{version}/publish | Publishes a version. |
POST .../versions/{version}/yank and .../deprecate | Yanks or deprecates a version. |
Permissions: studio:read to validate and to list versions and secrets; studio:write to create, upload, publish, yank and deprecate.
Deployments and runs
| Method and path | Permission | Description |
|---|---|---|
POST /v1/deployments | pipeline:write | Creates a deployment. Response 201. 429 QUOTA_EXCEEDED if the monthly quota is reached. |
GET /v1/runs | pipeline:read | Lists runs. Accepted filters: projectId and environmentId. |
GET /v1/runs/{runId} | pipeline:read | Run detail. |
GET /v1/runs/{runId}/logs | pipeline:read | Run logs. |
POST /v1/runs/{runId}/cancel | pipeline:write | Cancels a run. |
POST /v1/runs/{runId}/retry | pipeline:write | Retries a run. |
The creator of a deployment is always taken from the token, never from the request body. Idempotency follows the same rule as POST /v1/projects/{projectId}/deploy.
curl "https://api.argy.cloud/v1/runs?projectId=$PROJECT_ID" \
-H "Authorization: Bearer $ARGY_PAT"
Approvals
Runs that require human validation go through approval requests: GET /v1/approval/requests and GET /v1/approval/requests/{requestId} to read them, POST /v1/approval/requests/{requestId}/actions/approve or .../reject to decide. See Governance and observability for how this works in the portal.
Platform capabilities
GET /v1/agent/capabilities returns the versioned inventory (schemaVersion 1) of the tools provided by the runtime image: imageProfile, imageDigest, manifestDigest and the tools list (name, version, sha256 digest), with the SBOM and the scan report when they are published. It describes what the runtime image provides, not the rights granted to the caller.
The optional imageDigest parameter (sha256: followed by 64 hexadecimal characters) selects a specific image; without it, the response describes the most recent image. A malformed imageDigest is rejected with 400. A tool missing from the inventory is unavailable.
Permission: any one of module:read, studio:read, project:read or agent:run.
Notifications
| Method and path | Permission | Description |
|---|---|---|
GET /v1/notifications | notifications:read | Lists your notifications. |
GET /v1/notifications/unread-count | notifications:read | Number of unread notifications. |
PATCH /v1/notifications/{id} | notifications:read | Updates a notification (read state). |
POST /v1/notifications/mark-all-read | notifications:read | Marks all notifications as read. |
POST /v1/notifications | notifications:manage | Emits a notification. |
Read-only subscription and billing
These routes read the state of the subscription, consumption and invoices. Changing the subscription is done from the portal: see Portal billing.
| Method and path | Permission | Description |
|---|---|---|
GET /v1/plans | billing:read | Available plans. |
GET /v1/subscriptions/current | billing:read | The tenant's current subscription. |
GET /v1/usage | billing:read | Consumption for the period. |
GET /v1/invoices | billing:read | Lists invoices. |
GET /v1/invoices/{id} | billing:read | Invoice detail. |
GET /v1/invoices/{id}/download | billing:read | Downloads an invoice. |
Governance and observability
Policies and audit logs
| Method and path | Permission | Description |
|---|---|---|
GET /v1/governance/policies | governance:read | Lists policies. Filters: action, resourceType, enabled, orgId. |
POST /v1/governance/policies | governance:write | Creates a policy. |
PATCH, DELETE /v1/governance/policies/{policyId} | governance:write | Updates or deletes a policy. |
PATCH /v1/governance/policies/{policyId}/enable | governance:write | Enables or disables a policy (enabled field). |
GET /v1/governance/audit-logs | governance:read | Paginated audit log: resourceType, resourceId, actorId, action, from, to, page, limit. |
GET /v1/governance/audit-logs/export | governance:read | Log export (from, to, format parameters), capped in number of rows. |
GET /v1/governance/compliance | governance:read | Compliance score. |
The audit log response has the shape { data, total, page, limit, hasMore }.
Observability
Permission pipeline:read. DORA metrics, service level objectives, incidents and drifts are also shown in the portal (Governance and observability).
| Method and path | Description |
|---|---|
GET /v1/observability/dora | DORA indicators. |
GET /v1/observability/slos | Service level objectives. |
GET /v1/observability/incidents | Incidents. |
GET /v1/observability/drifts | Detected drifts. |
GET /v1/observability/pipelines/reliability | Pipeline reliability. |
Common errors
| Status | Code | Cause | Action |
|---|---|---|---|
| 400 | BAD_REQUEST | Body or parameter validation. | Fix the request. |
| 400 | BAD_REQUEST (reasonCode: IDEMPOTENCY_KEY_NOT_ALLOWED) | Idempotency key placed in the body. | Send it in the Idempotency-Key header. |
| 401 | UNAUTHORIZED | Missing, invalid, expired or revoked token. | See IAM authentication. |
| 403 | FORBIDDEN | Missing permission. | Create a token carrying the listed permission. |
| 403 | FORBIDDEN (reasonCode: ORG_SELECTION_FORBIDDEN) | Organization outside your memberships. | Use an organization you belong to. |
| 404 | NOT_FOUND | Resource missing or not visible. | Check the identifier. |
| 429 | QUOTA_EXCEEDED | Monthly deployment quota reached. | Check the quota in the portal. |
See also
- API overview: conventions, error envelope, limits
- IAM authentication: tokens and permissions
- RAG API and LLM Gateway: the other two public APIs
- Projects and modules: projects, Studio and bundles in the portal
- Argy Code CLI reference and Argy Code extensions:
argy modulesand bundle publishing - Governance and observability: policies, audit and indicators in the portal
- Security model