Skip to content

The signed-in person's own acceptance history

GET
/v1/legal/my-acceptances
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.

documentType
string
Allowed values: terminos-y-condiciones politica-de-privacidad politica-de-cookies

Only the acceptances of this document; omit it for all of them.

Media typeapplication/json
Array<object>
object
id
required

Id of the acceptance record.

string format: uuid
documentType
required

Slug of the document accepted.

string
Allowed values: terminos-y-condiciones politica-de-privacidad politica-de-cookies
documentVersion
required

The version accepted.

string
documentHash
required

sha256: and the SHA-256 of the exact text accepted: the proof of what was seen.

string
acceptanceMethod
required

How it was obtained: signup — while registering; re-acceptance — accepting a new version; order-form — in a signed Order Form.

string
Allowed values: signup re-acceptance order-form
ipAddress
required

IP address the acceptance came from; null when none was recorded.

string
nullable
acceptedAt
required

When it was accepted.

string format: date-time
isCurrentVersion
required

Whether the version accepted is the one served today.

boolean
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).