Register or update an entity
Creates the entity for externalUserId, or updates it when one already exists in this organisation and environment. The call is an idempotent upsert on externalUserId: repeating it never creates a second entity. Registering a reference you previously deleted brings that entity back (restored: true).
type, kycProvenance and kycSource are written from every request, so send them again on an update (an omitted kycProvenance is stored as UNVERIFIED). An entity Toden verified keeps its kycProvenance, verification time and re-verification date. Profile fields and metadata you omit keep their stored values.
When the entity is verified (EXTERNAL_VERIFIED from you, or MYAZA_VERIFIED set by Toden) and profile.idType and profile.idNumber are both present, the entity is linked to a shared identity by exact match on that document. No name or date-of-birth matching is done, and an unverified entity is never linked.
Side effects: the entity.imported webhook fires when the entity is created, and identity.resolved fires when its identity link changes. The entity is enrolled in ongoing screening where screening runs for your organisation; screening is billed per screen run in production and is free in sandbox. The call is recorded in your audit log.
Error codes
A missing or unknown key returns 401 with a plain sentence in error rather than a code.
Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.
Authentication
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required. A scoped publishable key has Verification flow access, the fixed set flow.run, flow.config.read and verifications.status.read; a scoped secret key reaches what its scopes allow.
Request
Whether the entity is a person or a business. An omitted value keeps the stored type (INDIVIDUAL for a new entity). The type of an entity Toden verified never changes.
How the entity was verified. EXTERNAL_VERIFIED records a verification done outside Toden. Written on every call, so an omitted value is stored as UNVERIFIED. MYAZA_VERIFIED is set only when Toden verifies a customer: sending it returns 400 kyc_provenance_not_allowed, and a call for an entity Toden verified never changes its provenance or verification dates.
Response
The identifier of the shared identity the entity is linked to, or null when it has not been resolved to one.
Your metadata exactly as stored, or null when none is held.
The provenance the entity holds after this call. MYAZA_VERIFIED when Toden verified the entity: the provenance in this request never replaces it.
The screening enrolment, or the string INACTIVE when screening does not run for your organisation.