Developer tools / User guide
API reference
Use the Anchras Connect-RPC API with JSON over HTTP and browse per-service OpenAPI contracts.
On this page
Anchras services expose Connect-RPC endpoints defined by protobuf contracts. Each service guide below links to the OpenAPI document shipped with this portal, including operation names, request fields, response schemas, and errors.
Make a request
The hosted API uses /api before the service procedure. A directly exposed self-hosted API may use the procedure at its root. JSON requests use POST and a bearer credential:
export ANCHRAS_API_BASE=https://platform.anchras.com/api
# Supply ANCHRAS_API_KEY through your secret manager or protected environment.
curl --fail-with-body "$ANCHRAS_API_BASE/anchras.instance.v1.InstanceService/ListInstances" -H "Authorization: Bearer $ANCHRAS_API_KEY" -H 'Content-Type: application/json' -H 'Connect-Protocol-Version: 1' --data '{}'Use a key with the required instance-read permissions. Agent registration and heartbeat use the agent-facing API and its own credentials, not a user API key.
Authentication and permissions
Web users use short-lived access tokens and refresh sessions. Automation uses scoped API keys. Both are constrained by organization and action permissions. An API key that also carries ARN constraints is subject to resource-level restrictions.
Request and response contracts
Select a service from the directory, then open its API reference. The downloadable OpenAPI schema includes field types and response shapes. The contract snapshot belongs to the web release; your deployed API server's /api/docs and /api/openapi/<service>.yaml endpoints expose its own contract. When accessing that API through the platform's generic /api proxy, the raw server path has an additional prefix (for example /api/api/openapi/instance.yaml).
Errors and retries
Inspect Connect error codes and messages. Authentication failures require valid credentials; permission failures require the appropriate scope or role. A failed precondition often means a dependency, provider configuration, or resource state is unsuitable. Do not retry authorization or validation errors indefinitely.
An accepted create or action request may only enqueue work. Read resource/run status before depending on its result or repeating a resource-allocating request.
Pagination and resource identity
Use returned pagination metadata where available. Preserve exact IDs and ARNs returned by the service; do not reconstruct provider identifiers from display names. Always perform calls in the intended organization.
