Skip to content

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 pathPermissionDescription
GET /v1/projectsproject:readLists projects. Filters: q, gitUrl, orgId.
POST /v1/projectsproject:writeCreates a project. Response 201.
GET /v1/projects/{projectId}project:readProject detail.
PATCH /v1/projects/{projectId}project:writeUpdates a project.
DELETE /v1/projects/{projectId}project:writeDeletes 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 pathPermissionDescription
GET /v1/projects/{projectId}/environmentsproject:readLists environments.
POST /v1/projects/{projectId}/environmentsproject:writeCreates an environment.
GET, PATCH, DELETE /v1/projects/{projectId}/environments/{envId}project:read / project:writeReads, updates or deletes an environment.
GET /v1/projects/{projectId}/deploymentsproject:readLists the project's deployments.
POST /v1/projects/{projectId}/deploymentsproject:writeRecords a deployment.
GET, PATCH, DELETE /v1/projects/{projectId}/deployments/{deploymentId}project:read / project:writeReads, updates or deletes a deployment.
POST /v1/projects/{projectId}/deployproject:deployTriggers 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 pathPermissionDescription
GET /v1/modulesmodule:readLists the catalog. Filters: q, type, visibility, state, orgId.
POST /v1/modulesmodule:writeCreates a module. Response 201.
POST /v1/modules/searchmodule:readSearches the catalog (q field).
GET /v1/modules/{moduleId}module:readModule detail.
GET /v1/modules/{moduleId}/versionsmodule:readLists a module's versions.
PUT /v1/modules/{moduleId}/versions/{version}/bundlemodule:writeUploads a version's bundle.
PUT /v1/modules/{moduleId}/versions/{version}/publishmodule:writePublishes a version (empty body).
POST /v1/modules/{moduleId}/compilemodule:writeStarts compilation. Response 202.
PUT /v1/modules/{moduleId}/publish, .../deprecate, .../unpublishmodule:writeChanges the module's publication state.
DELETE /v1/modules/{moduleId}module:writeDeletes 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 pathDescription
POST /v1/studio/bundles/validateValidates a bundle without creating it.
POST /v1/studio/bundlesCreates a bundle (draft).
GET /v1/studio/bundles/{moduleId}/versionsLists a bundle's versions.
GET /v1/studio/bundles/{moduleId}/versions/{version}/secretsLists the secret:// references the version requires, never the values.
PUT /v1/studio/bundles/{moduleId}/versions/{version}/bundleUploads a version's archive.
POST /v1/studio/bundles/{moduleId}/versions/{version}/publishPublishes a version.
POST .../versions/{version}/yank and .../deprecateYanks 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 pathPermissionDescription
POST /v1/deploymentspipeline:writeCreates a deployment. Response 201. 429 QUOTA_EXCEEDED if the monthly quota is reached.
GET /v1/runspipeline:readLists runs. Accepted filters: projectId and environmentId.
GET /v1/runs/{runId}pipeline:readRun detail.
GET /v1/runs/{runId}/logspipeline:readRun logs.
POST /v1/runs/{runId}/cancelpipeline:writeCancels a run.
POST /v1/runs/{runId}/retrypipeline:writeRetries 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 pathPermissionDescription
GET /v1/notificationsnotifications:readLists your notifications.
GET /v1/notifications/unread-countnotifications:readNumber of unread notifications.
PATCH /v1/notifications/{id}notifications:readUpdates a notification (read state).
POST /v1/notifications/mark-all-readnotifications:readMarks all notifications as read.
POST /v1/notificationsnotifications:manageEmits 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 pathPermissionDescription
GET /v1/plansbilling:readAvailable plans.
GET /v1/subscriptions/currentbilling:readThe tenant's current subscription.
GET /v1/usagebilling:readConsumption for the period.
GET /v1/invoicesbilling:readLists invoices.
GET /v1/invoices/{id}billing:readInvoice detail.
GET /v1/invoices/{id}/downloadbilling:readDownloads an invoice.

Governance and observability

Policies and audit logs

Method and pathPermissionDescription
GET /v1/governance/policiesgovernance:readLists policies. Filters: action, resourceType, enabled, orgId.
POST /v1/governance/policiesgovernance:writeCreates a policy.
PATCH, DELETE /v1/governance/policies/{policyId}governance:writeUpdates or deletes a policy.
PATCH /v1/governance/policies/{policyId}/enablegovernance:writeEnables or disables a policy (enabled field).
GET /v1/governance/audit-logsgovernance:readPaginated audit log: resourceType, resourceId, actorId, action, from, to, page, limit.
GET /v1/governance/audit-logs/exportgovernance:readLog export (from, to, format parameters), capped in number of rows.
GET /v1/governance/compliancegovernance:readCompliance 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 pathDescription
GET /v1/observability/doraDORA indicators.
GET /v1/observability/slosService level objectives.
GET /v1/observability/incidentsIncidents.
GET /v1/observability/driftsDetected drifts.
GET /v1/observability/pipelines/reliabilityPipeline reliability.

Common errors

StatusCodeCauseAction
400BAD_REQUESTBody or parameter validation.Fix the request.
400BAD_REQUEST (reasonCode: IDEMPOTENCY_KEY_NOT_ALLOWED)Idempotency key placed in the body.Send it in the Idempotency-Key header.
401UNAUTHORIZEDMissing, invalid, expired or revoked token.See IAM authentication.
403FORBIDDENMissing permission.Create a token carrying the listed permission.
403FORBIDDEN (reasonCode: ORG_SELECTION_FORBIDDEN)Organization outside your memberships.Use an organization you belong to.
404NOT_FOUNDResource missing or not visible.Check the identifier.
429QUOTA_EXCEEDEDMonthly deployment quota reached.Check the quota in the portal.

See also