Grant explicit revocable field, purpose, account and time-bounded third-party direction after fresh authentication and ownership proof
/users/me/data-consentsOwn active customer session, bank-verified customer binding, customer scope and authentication within five minutes required. Exact current disclosure hash, explicit confirmation, selected fields/purpose/accounts and expiry are retained immutably. Identity proves ownership of every consumer account using a 30-second signer-bound svc_identity token with only accounts:consent:verify. Business permissions or arbitrary account lists are insufficient. A replay may return revoked evidence but never restores authority.
Headers
Idempotency-KeystringRequiredSend on every write that creates or changes money or state; a replay with the same key returns the original result with 200.
Body parameters
account_idsarray of stringsRequiredconfirmedbooleanRequireddisclosure_sha256stringRequiredexpires_atstring · date-timeRequiredfieldsarray of stringsRequiredprovider_idstringRequiredprovider_versionintegerRequiredpurposestringRequiredReturns
200 OK
created_atstring · date-timeRequiredcustomer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
grantobjectRequired8 child attributes
disclosurestringRequireddisclosure_sha256stringRequiredfieldsarray of stringsRequiredhistory_daysintegerRequiredmax_consent_daysintegerRequiredprivacy_policy_idstringRequiredprivacy_rule_idstringRequiredpurposestringRequiredidstringRequiredprovider_namestringRequiredprovider_subjectstringRequiredrequestobjectRequired8 child attributes
account_idsarray of stringsRequiredconfirmedbooleanRequireddisclosure_sha256stringRequiredexpires_atstring · date-timeRequiredfieldsarray of stringsRequiredprovider_idstringRequiredprovider_versionintegerRequiredpurposestringRequiredrevoked_atstring · date-time or nullOptionalsession_idstringRequiredExample sess_2tVh8nqLxq4GbDe0K1F6S9zRcWm
user_idstringRequiredExample user_2tVh8nqLxq4GbDe0K1F6S9zRcWm
versionintegerRequiredErrors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503