Skip to content

Get a legal document with its full text

GET
/v1/legal/documents/{type}
curl --request GET \
--url https://api.emite.cr/v1/legal/documents/terminos-y-condiciones

Public. The served version of one document: its metadata and its Markdown text. hash is the SHA-256 of exactly that text — show this text and send that hash back verbatim as documentHash when accepting; a hash that does not match the served text is 409 HASH_MISMATCH. An unknown type is 404 UNKNOWN_DOCUMENT_TYPE.

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

Slug of the document.

Media typeapplication/json
object
type
required

Slug of the document: terminos-y-condiciones (Terms and Conditions), politica-de-privacidad (Privacy Policy) or politica-de-cookies (Cookie Policy).

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

Display name of the document, in Spanish.

string
version
required

The version served today, numbers separated by dots (3.0). Compare versions number by number, not as text: 3.10 comes after 3.9.

string
effectiveDate
required

Effective date (Costa Rica, YYYY-MM-DD). A minor version governs from it; a material one governs each company from its acceptance, and from this day a company that has not accepted it cannot issue in production.

string format: date
publishedAt
required

Day (Costa Rica, YYYY-MM-DD) it was published.

string format: date
change
required

What kind of change this version is (none asks for an acceptance or stops anything):

  • adverse — it hurts the customer: published at least 30 days before effectiveDate, announced by email and in the platform.
  • non_adverse — a correction or a change in the customer's favour: it governs from its publication and is announced in the platform.
  • required — required by a law, an authority or the security of the service: it governs from its publication, in what is strictly necessary, and is announced by email.
string
Allowed values: adverse non_adverse required
changeNote
required

What changed in this version, in a sentence or two (Spanish).

string
kind
required

The legal nature of the document: contractual (the Terms and Conditions) or regulatorio, regulatory (the privacy and cookie policies).

string
Allowed values: contractual regulatorio
requiredForSignup
required

Whether the document must be accepted — by each person to create an account, and by each company. false for one that is only announced (the Cookie Policy).

boolean
summary
required

What the document covers, in a short summary (Spanish).

string
hash
required

sha256: followed by the SHA-256 (lowercase hex) of the exact Markdown text of the document (its markdown). Send it back verbatim as documentHash when accepting: it proves which text was accepted.

string
sizeBytes
required

Size of the Markdown text, in bytes (UTF-8).

number
markdown
required

The full text, in Markdown.

string
Example
{
"type": "terminos-y-condiciones",
"effectiveDate": "2026-11-11",
"publishedAt": "2026-10-12",
"change": "adverse",
"kind": "contractual",
"hash": "sha256:..."
}