API reference

Generated from aweb-app.json · llms.txt

aw signs every team-certificate request for you. The HTTP wire format under each operation is only needed to port a signer — see Authentication.

# aw vault-secrets list GET /v1/secrets secrets:readteam cert

List the secrets you may use: refs, kinds, sensitivity, destinations and approval requirements. Never values.

aw vault-secrets list
HTTP wire format
GET /v1/secrets
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth GET https://secrets.r2.oatshq.com/v1/secrets
# aw vault-secrets describe GET /v1/secrets/{secret} secrets:readteam cert

Show one secret's operations, with their parameters, and the jobs you may run with it.

ParameterInTypeRequired
secretpathstringrequired
aw vault-secrets describe --secret <secret>
HTTP wire format
GET /v1/secrets/{secret}
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth GET https://secrets.r2.oatshq.com/v1/secrets/{secret}
# aw vault-secrets request POST /v1/secrets/{secret}/requests secrets:useteam cert

Make a brokered call with a secret: a named operation, or an open request where the grant allows one. Read the structured state independently of HTTP success. If awaiting_approval, check status using request_ref; after approved with next:resubmit, explicitly re-submit the identical request_id and body. Status never dispatches.

ParameterInTypeRequired
secretpathstringrequired
request_idbodystringrequired
operationbodystringoptional
paramsbodyobjectoptional
methodbodystringoptional
urlbodystringoptional
headersbodyarrayoptional
databody—optional
reasonbodystringoptional
aw vault-secrets request --secret <secret> --request_id <request_id>
HTTP wire format
POST /v1/secrets/{secret}/requests
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>
Content-Type: application/json

{"request_id": "..."}

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth POST https://secrets.r2.oatshq.com/v1/secrets/{secret}/requests --body '{"request_id": "..."}'
# aw vault-secrets run POST /v1/jobs/{job}/runs secrets:runteam cert

Run a pinned job on a runner, with the credentials its definition names. The first release uses fixed durable slots; omit secret. Supply request_id. Check aggregate status using request_ref: one approved slot does not approve the run. After approved with next:resubmit, explicitly re-submit the identical ID and body. Admitted means waiting for the runner, not completed. The agent never receives credentials.

ParameterInTypeRequired
jobpathstringrequired
request_idbodystringrequired
runnerbodystringrequired
paramsbodyobjectoptional
reasonbodystringoptional
secretbodystringoptional
aw vault-secrets run --job <job> --request_id <request_id> --runner <runner>
HTTP wire format
POST /v1/jobs/{job}/runs
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>
Content-Type: application/json

{"request_id": "...", "runner": "..."}

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth POST https://secrets.r2.oatshq.com/v1/jobs/{job}/runs --body '{"request_id": "...", "runner": "..."}'
# aw vault-secrets status GET /v1/status/{ref} secrets:readteam cert

Show request, approval or reconciliation state by request_id or a returned locator. Use request_ref for aggregate run approval status. Never a link, admission or dispatch. If approved with next:resubmit, explicitly re-submit the original request with the same request_id and unchanged body. Read state even when HTTP succeeds.

ParameterInTypeRequired
refpathstringrequired
aw vault-secrets status --ref <ref>
HTTP wire format
GET /v1/status/{ref}
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth GET https://secrets.r2.oatshq.com/v1/status/{ref}
# aw vault-secrets cancel POST /v1/requests/{request_id}/cancel secrets:useteam cert

Cancel your own request while it is not yet admitted.

ParameterInTypeRequired
request_idpathstringrequired
aw vault-secrets cancel --request_id <request_id>
HTTP wire format
POST /v1/requests/{request_id}/cancel
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth POST https://secrets.r2.oatshq.com/v1/requests/{request_id}/cancel
# aw vault-secrets contain POST /v1/containment secrets:adminteam cert

Narrow authority at once: revoke a grant, approvals or an approver's passkey or contact, disable a secret or the installation, deregister a runner, or remove one member from a user-defined role. Owners; assigned approvers may revoke their own approvals.

ParameterInTypeRequired
request_idbodystringrequired
actionbodystringrequired
targetbodystringoptional
credential_idbodystringoptional
principalbodystringoptional
aw vault-secrets contain --request_id <request_id> --action <action>
HTTP wire format
POST /v1/containment
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>
Content-Type: application/json

{"request_id": "...", "action": "..."}

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth POST https://secrets.r2.oatshq.com/v1/containment --body '{"request_id": "...", "action": "..."}'
# aw vault-secrets propose-change POST /v1/changes secrets:adminteam cert

Draft a widening metadata or authority change. It takes effect only after an owner's passkey confirmation on the console. Never accepts a secret value.

ParameterInTypeRequired
request_idbodystringrequired
changebodyobjectrequired
aw vault-secrets propose-change --request_id <request_id> --change <change>
HTTP wire format
POST /v1/changes
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>
Content-Type: application/json

{"request_id": "...", "change": "..."}

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth POST https://secrets.r2.oatshq.com/v1/changes --body '{"request_id": "...", "change": "..."}'
# aw vault-secrets activity GET /v1/activity secrets:readteam cert

Show the owner's operational record of requests, approvals and dispatches, including outcomes that need reconciliation. Never values.

aw vault-secrets activity
HTTP wire format
GET /v1/activity
Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>

Hand-runnable with the aw CLI, no plugin:

aw id request --team-auth GET https://secrets.r2.oatshq.com/v1/activity

Every operation is team-scoped and authenticated with your AWID team certificate. Through the aw plugin verbs (or aw id request --team-auth), aw signs each request for you — you never assemble these headers by hand. Build your own client only if you are porting the signer to another language.

This wire format tracks the canonical team-auth-envelope-v2 conformance vector at cli/go/internal/conformance/vectors/team-auth-envelope-v2.json — match it byte for byte to port a signer.

Four headers on every team-certificate request

Authorization: DIDKey <did:key> <base64 Ed25519 signature, standard alphabet, no padding>
X-AWEB-Timestamp: <RFC3339 UTC, equal to the envelope timestamp field>
X-AWEB-Signed-Payload: <base64url WITHOUT padding of the canonical JSON payload bytes>
X-AWID-Team-Certificate: <standard base64 of the team certificate JSON>

Mind the three encodings: the Authorization signature and the certificate use standard base64; the signed payload uses base64url without padding (secrets rejects values containing =). The certificate's member_did_key must equal the Authorization did:key.

The signed payload — a canonical-JSON envelope (version 2)

{
  "aud": "https://secrets.r2.oatshq.com",
  "body_sha256": "<lowercase hex sha256 of the exact request body bytes; empty body hashes the empty string>",
  "method": "<uppercase HTTP method, e.g. POST>",
  "path": "<escaped request target incl. query, e.g. /v1/secrets/example/requests>",
  "team_id": "<your AWID team id>",
  "timestamp": "<RFC3339 UTC, equal to X-AWEB-Timestamp>",
  "v": 2
}

The bytes signed are canonical JSON: sorted keys, no insignificant whitespace, UTF-8, no HTML escaping (the awid canonical_json_bytes convention). The signature is over those canonical payload bytes after the timestamp is injected — not over the base64url X-AWEB-Signed-Payload header value.

Reserved fields are aud, body_sha256, method, path, team_id, timestamp, and v; a surface may add custom fields only in addition to these. aw sets aud to this origin (scheme and host), method uppercase, path to the exact escaped request target the server receives (root-mounted /v1/... with query string, no /api prefix), body_sha256 to the lowercase hex SHA-256 of the exact body bytes, timestamp equal to X-AWEB-Timestamp, and team_id from the certificate. The server recomputes and verifies all of it within a 300-second replay window.