The signed-in person's own acceptance history
const url = 'https://api.emite.cr/v1/legal/my-acceptances?documentType=terminos-y-condiciones';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.emite.cr/v1/legal/my-acceptances?documentType=terminos-y-condiciones' \ --header 'Authorization: Bearer <token>'Every acceptance of a legal document recorded for the person, newest first: the version, the hash of the exact text, how it was obtained, the IP it came from, and whether that version is the one served today. Filter with documentType. This is the person's own record; the company's acceptance is in GET /v1/legal/status. Needs a person's session.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only the acceptances of this document; omit it for all of them.
Responses
Section titled “Responses”object
Id of the acceptance record.
Slug of the document accepted.
The version accepted.
sha256: and the SHA-256 of the exact text accepted: the proof of what was seen.
How it was obtained: signup — while registering; re-acceptance — accepting a new version; order-form — in a signed Order Form.
IP address the acceptance came from; null when none was recorded.
When it was accepted.
Whether the version accepted is the one served today.
Example
[ { "documentType": "terminos-y-condiciones", "documentVersion": "3.0", "documentHash": "sha256:...", "acceptanceMethod": "signup" }]No session, or the caller is not a person (an API key has no user).