Skip to content

What an acceptance link opens: the company, the person and the documents to accept.

POST
/v1/legal/acceptance-links/inspect
curl --request POST \
--url https://api.emite.cr/v1/legal/acceptance-links/inspect \
--header 'Content-Type: application/json' \
--data '{ "token": "example" }'

state: open lists each pending document with its full text; state: accepted says the company is already up to date. 404 LEGAL_LINK_INVALID for an unknown token and LEGAL_LINK_EXPIRED for an expired link with something still to accept.

Media typeapplication/json
object
token
required

The token of the acceptance link (/accept-legal?token=).

string
Examplegenerated
{
"token": "example"
}
Media typeapplication/json
object
state
required

open — there is something to review and accept (see documents); accepted — the company is up to date, because the link was used, nothing is offered any more, or the company is outside the regime (see accepted).

string
Allowed values: open accepted
company
required

The company the link is for.

object
name
required

Name of the company the link is for.

string
identificationType
required

Hacienda identification type of the company (01 cédula física, 02 cédula jurídica, 03 DIMEX, 04 NITE…).

string
identificationNumber
required

Identification number of the company.

string
recipient
required

The person the link was sent to; it works only while they remain an owner or admin of the company (403 LEGAL_LINK_NOT_AUTHORIZED).

object
name
required

Name of the owner or admin the link was sent to.

string
nullable
email
required

Email of the owner or admin the link was sent to.

string
documents
required

The documents offered, each with its full text; empty when accepted.

Array<object>
object
type
required

Slug of the document.

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

Display name of the document, in Spanish.

string
state
required

transition — the company is asked, once, to accept it. notice — a new version that governs from effectiveDate anyway; accepting it earlier is optional. Neither stops anything.

string
Allowed values: transition notice
newVersion
required

The version offered: the latest one.

string
effectiveDate
required

The day it takes effect for every company (Costa Rica, YYYY-MM-DD).

string
nullable
change
required

What kind of change it is.

string
nullable
Allowed values: adverse non_adverse required
changeNote
required

What changed in this version, in Spanish.

string
document
required

The full served text, to show before accepting; send its version and hash back when accepting.

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
expiresAt
required

When the link expires, 30 days after it was sent. An expired link with something still to accept is 404 LEGAL_LINK_EXPIRED.

string format: date-time
accepted
required

What the company has accepted, per document, when accepted; empty otherwise.

Array<object>
object
type
required

Slug of the document.

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

Display name of the document, in Spanish.

string
acceptance
required

The highest version the company accepted, with who, when and how.

object
version
required

The version the company accepted.

string
acceptedAt
required

When it was accepted.

string format: date-time
method
required

How the company accepted:

  • web — in the app, by an owner or admin, on behalf of the active company.
  • company-creation — by whoever created the company, as part of creating it.
  • email-link — by an owner or admin, through the link of a notice emailed to them.
  • company-reopening — by whoever reopened the company after it was closed, as part of reopening it.
string
Allowed values: web company-creation email-link company-reopening
declaredCapacity
required

In which capacity the person declared the authority to bind the company.

string
Allowed values: holder legal_representative authorized
name
required

Name of the person who accepted, as their account shows it now.

string
nullable
email
required

Email of the person who accepted, as their account shows it now.

string
nullable
Example
{
"state": "open",
"documents": [
{
"type": "terminos-y-condiciones",
"state": "transition",
"change": "adverse",
"document": {
"type": "terminos-y-condiciones",
"effectiveDate": "2026-11-11",
"publishedAt": "2026-10-12",
"change": "adverse",
"kind": "contractual",
"hash": "sha256:..."
}
}
],
"accepted": [
{
"type": "terminos-y-condiciones",
"acceptance": {
"method": "web",
"declaredCapacity": "holder"
}
}
]
}