Skip to content

Get the WhatsApp link

GET
/v1/auth/me/whatsapp
curl --request GET \
--url https://api.emite.cr/v1/auth/me/whatsapp \
--header 'Authorization: Bearer <token>'

Current WhatsApp link status + notification toggles of the signed-in person: { linked: false } without a link; otherwise linked: true, the number (phoneE164), verified (false while its code is pending), tenantId (the company the number acts for: that of the session that linked it) and the toggles (prefs). For a person’s session (JWT) only: an API key answers 403.

The link of the signed-in person, or { linked: false }.

Media typeapplication/json
object
linked
required

Whether the person has a WhatsApp number linked, pending or verified. Without one, this is the only field.

boolean
phoneE164

The linked number, in E.164. Present when linked.

string
verified

true once the code sent over WhatsApp was confirmed; false while it is pending (POST /v1/auth/me/whatsapp/verify). Present when linked.

boolean
tenantId

The company the number acts for: that of the session that linked it. Present when linked.

string format: uuid
prefs

The notification toggles of the link, all off on a new link (PUT /v1/auth/me/whatsapp/prefs changes them). Present when linked.

object
notifyAccepted
required

Notify when Hacienda accepts a document the company issued.

boolean
notifyRejected
required

Notify when Hacienda rejects a document the company issued.

boolean
notifyError
required

Notify when a document ends in error instead of a verdict: sending it or checking its status failed for good, or Hacienda gave no verdict within 24 hours.

boolean
notifyPurchaseDue
required

Notify when pending purchase acceptances approach their DGT deadline.

boolean
notifyImportCompleted
required

Notify when a batch of documents received at the company’s inbound mailbox finishes importing.

boolean
Example
{
"phoneE164": "+50688887777"
}