Decide my approval
/titan/user/approvals/{id}:decideApprove or deny the caller's own agent's action, while the workspace's session profile allows delegated_self_approval (SELF_APPROVAL_NOT_ALLOWED otherwise); an approve counts toward every approval profile without delegator separation (DELEGATOR_SEPARATION otherwise). Where one of the approval's profiles names a delegator role (tool permissions), the caller decides it whatever the session profile says and their approve counts through that role, toward the profiles without delegator separation; nobody else holds that role. They may deny such an approval too. An approve that could no longer count (only delegator-separated profiles left) is DELEGATOR_SEPARATION, with no vote recorded. Authorized by the user access token of the person the requesting session acts for (their user-route token); NOT_FOUND unless person approvals is on. With device-signed decisions on, a decision needs proof: a compact JWS from one of the caller's trusted phones (past its 24 hour waiting period), header exactly {alg: ES256, kid: the phone's device_id, typ: titan-device-decision+jwt}, over {aud: urn:titan:person-devices:<enforcement deployment>, sub: the caller, approval_id, decision, action_digest (the approval's, from its view), iat, exp} with exp - iat at most 120 s and a low-S signature. Without one, 403 DEVICE_SIGNATURE_REQUIRED; one that does not verify for exactly this approval, decision and action, 403 DEVICE_SIGNATURE_INVALID; a valid one from a phone without a key attestation where the deployment refuses those (unattested_phones refuse_signatures), 403 DEVICE_ATTESTATION_REQUIRED; none records a vote. The vote records the phone, and the grant that executes the approval carries the JWS's SHA-256 as decision.approval_digest. Where it is off, proof is refused as an unknown field (INVALID_REQUEST). With approval routing, push delivery and device-signed decisions on, on a deployment whose person routes verify Hexel identities (no user-route verifier of its own), an approver also reads and decides here an approval whose approval profile's notify list names push, while they hold one of its roles in current policy: the decision needs their phone's proof as above, the workspace's session profile must allow the mobile_push channel (APPROVAL_CHANNEL_NOT_ALLOWED, 403), and the admin route's rules apply (NOT_AN_ELIGIBLE_APPROVER, REQUESTER_SEPARATION and DELEGATOR_SEPARATION, 403; APPROVAL_NOT_PENDING, 409); a role's groups count as there (in the approval's snapshot and still a member; APPROVER_GROUPS_UNAVAILABLE, 503, when CIAM can't answer); any other approval is NOT_FOUND.
Path parameters
Headers
Bearer <token>. The person's user-route token: a user access token from the deployment's identity provider for an audience only the person routes accept, carrying their use claim. The Gateway verifies it; the edge does not. A session's token is refused here, and a user-route token is refused as a session's. Served only while the deployment turns the person routes on; NOT_FOUND otherwise.
Body parameters
Returns
200Successful response; exact status varies by operation.object
One of: "pending", "approved", "denied"
Errors
- defaultRejected request.