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
Show one secret's operations, with their parameters, and the jobs you may run with it.
Parameter
In
Type
Required
secret
path
string
required
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}
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.
Parameter
In
Type
Required
secret
path
string
required
request_id
body
string
required
operation
body
string
optional
params
body
object
optional
method
body
string
optional
url
body
string
optional
headers
body
array
optional
data
body
—
optional
reason
body
string
optional
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": "..."}'
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.
Parameter
In
Type
Required
job
path
string
required
request_id
body
string
required
runner
body
string
required
params
body
object
optional
reason
body
string
optional
secret
body
string
optional
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": "..."}'
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.
Parameter
In
Type
Required
ref
path
string
required
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}
Cancel your own request while it is not yet admitted.
Parameter
In
Type
Required
request_id
path
string
required
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
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.
Parameter
In
Type
Required
request_id
body
string
required
action
body
string
required
target
body
string
optional
credential_id
body
string
optional
principal
body
string
optional
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": "..."}'
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.
Parameter
In
Type
Required
request_id
body
string
required
change
body
object
required
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": "..."}'
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
Authentication
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.
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.