The NFC issuer exposes endpoints for issuing and migrating NFC credentials. For product-level credential semantics, Sybil-resistance guarantees, and validity details, see NFC Credential.Documentation Index
Fetch the complete documentation index at: https://docs.world.org/llms.txt
Use this file to discover all available pages before exploring further.
The base URL is environment-specific. Contact your World ID point of contact for
environment endpoints and access.
Migration
/v2/migrate
application/json
Request
Headers
| Header | Required | Description |
|---|---|---|
x-zkp-proofstring | yes | Base64-encoded JSON containing the ZKP proof and identity commitment. |
attestation-gateway-tokenstring | yes | Attestation gateway token for device integrity verification. |
Body fields
| Field | Required | Description |
|---|---|---|
identityCommitmentstring | yes | The holder’s identity commitment (decimal or hex with 0x
prefix). Must match the ZKP header. |
substring | yes | World ID 4.0 blinded subject identifier (hex with 0x
prefix, 256-bit). Must match previous migrations for this identity. |
credentialobject | yes | Flow-specific credential data (see below). The client decrypts PCP data locally before submission. |
Credential fields
- Passport / eID
- MNC (My Number Card)
The
credential object contains data extracted and decrypted from the user’s Personal Custody Package (PCP) by the client.| Field | Description |
|---|---|
credential.sodstring | Base64-encoded SOD (Security Object Document) in DER format from the identity document. |
credential.verification_metadatastring | Base64-encoded verification metadata from the original document check. |
Response
Success response
Error responses
| Status | Error | Description |
|---|---|---|
| 400 | invalid_data | Request payload is malformed or missing required fields. |
| 400 | sub_mismatch | sub does not match the one used in previous migrations for this identity. |
| 400 | document_expired | The identity document has expired and cannot be used for migration. |
| 401 | unauthorized | Authentication failed. |
| 404 | not_found | No matching enrollment record found for this credential. |
Planned Endpoints
Enrollment Coming soon
Details coming soon.Re-issuance Coming soon
Details coming soon.Implementation Notes
This is advanced documentation about the internal workings of the NFC
Credential and is not relevant for RP integration.
Associated Data
The associated data of this credential contains different data groups found in the original document. More information coming soon.Associated Data Commitment
To ensure the associated data has guaranteed integrity and can be re-used in the future for credential re-issuance, the commitment is computed as follows:- For ICAO-9303 documents, the message digest of the
EF.SODsignature is used. The message digest is obtained fromSignedData.SignerInfos[0].SignedAttrswhere the signed attribute for the digest is identified by the Object Identifier1.2.840.113549.1.9.4. This digest is then hashed with theblake3hashing function from the raw bytes. Finally, theblake3hash is converted to a field element with modulo reduction. - Information on MNC documents coming soon.