A key-pair property holds a private key Scute generates and never shows. An agent's tool asks Scute to sign with it, using its task token. Anyone can verify the signature with the property's public JWKS. The same rules as for secrets apply: the agent must be listed, the task live, and the property's permission allowed. See Properties.
Create a key pair#
/v1/apps/:app_id/propertiesApp keycurl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/properties \ -H "Authorization: Bearer $SCUTE_APP_SECRET" \ -H "Content-Type: application/json" \ -d '{ "name": "partner-signing", "kind": "keypair", "algorithm": "EdDSA", "agents": ["billing-assistant"] }'The answer has algorithm, key_id (prop_...) and public_key (PEM). The private key is never returned.
Sign#
/v1/auth/:app_id/agent/properties/:name/signTask tokenSend one of:
Proofs for a permission that needs verification or approval go in challenge, approval (or approval_id) and session_id, as on a secret read.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/agent/properties/partner-signing/sign \ -H "Authorization: Bearer $TASK_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "claims": { "sub": "order-1182", "aud": "partner.example" } }'{ "jws": "eyJhbGciOiJFZERTQSIs...", "alg": "EdDSA", "kid": "prop_..." }With data, the answer is { "signature": "<base64url>", "alg": "...", "kid": "..." }. ES256 signatures are the 64-byte r || s form JWS uses, not DER.
| Status | error_code | When |
|---|---|---|
| 422 | invalid | Neither claims nor data, or data is not base64url |
| 422 | wrong_kind | It is a secret, not a key pair |
The other errors are the same as for a secret read.
Publish the public key#
/v1/auth/:app_id/properties/:name/jwks.jsonNonePublic, cached for 5 minutes. Returns the current key and any previous keys still in their grace period, as JWKs with kid, alg and use: "sig". A disabled property, or a name that is not a key pair, is a 404.
curl https://api.scute.io/v1/auth/$SCUTE_APP_ID/properties/partner-signing/jwks.json{ "keys": [ { "kid": "prop_...", "alg": "EdDSA", "use": "sig", "kty": "OKP", "crv": "Ed25519", "x": "..." } ] }Point the party that verifies at this URL and pick the key by kid.
Rotation#
/v1/apps/:app_id/properties/:name/rotateApp keyFor a key pair, rotating generates a new key with a new key_id, in the same algorithm. The old public key stays in the JWKS for 7 days, so signatures made shortly before still verify. The property's previous_keys lists each old key with kid, public_key and until.