You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for creating an Anoncreds Presentation Request is currently incomplete and somewhat misleading. The example payload shown in the tutorial
does not align with what the API actually expects in release v2.0.0.
Issues identified:
Missing proofs field
The request body must include a top-level proofs attribute (an array), even if it is empty.
Without this field, the API returns:
400 RequestBodyDecodingFailure (missing at 'proofs')
This requirement is not mentioned in the tutorial, so users following it will consistently encounter this error.
Incorrect cred_def_id format
The documentation shows cred_def_id as a simple identifier (e.g. 3fc80ccf-d8da-3215-a626-8712f73d5101).
In practice, the API requires a full URL to the credential definition, such as:
Without the correct format, proof requests cannot be resolved.
Recommendation:
The API and Swagger docs should clearly define the expected formats for cred_def_id, schema_id, and other fields. This would make error messages (such as Bad Request) more meaningful and significantly reduce confusion for developers.
Fixed in hyperledger-identus/cloud-agent#1810 (merged) — the AnonCreds present-proof example now includes the required proofs field and uses the full registry URLs for cred_def_id and schema_id.
Activity
[-]Anoncreds documentation API documentation[/-][+]Improve API Documentation for Anoncreds [/+]TheSeydiCharyyev commentedon Jun 16, 2026
Fixed in hyperledger-identus/cloud-agent#1810 (merged) — the AnonCreds present-proof example now includes the required
proofsfield and uses the full registry URLs forcred_def_idandschema_id.