SuperdindaDocs
Consents

Submit consent evidence (public)

POST
/consent-requests/{token}/evidence

multipart/form-data: selfie (image/jpeg|png|webp, ≤8 MB), audio (audio/webm|mp4|ogg|mpeg|wav — video/webm is accepted for webm containers, ≤20 MB), accepted = "true", optional audioDurationMs. The selfie must show exactly one face and the audio must match the frozen statement (verified synchronously); only then are both stored and the request turned given. Limits: RATE_EVIDENCE_PER_LINK (default 10 per hour) and RATE_EVIDENCE_PER_IP (default 30 per hour).

Path Parameters

token*string

the opaque token from the link

Length16 <= length <= 4096

Response Body

Consent given

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'http://localhost:3000/consent-requests/stringstringstri/evidence'
Example Response
{  "success": true,  "data": {    "status": "given",    "givenAt": "2019-08-24T14:15:22Z",    "protectionLink": "string"  }}