Skip to main content

Permissions

KYC share tokens use a permission system to control which data categories are included when a third party verifies a token. Permissions are set at token creation and cannot be changed afterward.

Available Permissions

View the list of available permissions:

curl -X GET https://api.bytrustgate.com/api/v1/kyc-share/permissions

This is a public endpoint (no authentication required).

Response (200 OK)

{
"permissions": [
{
"key": "basic_info",
"name": "Basic Info",
"description": "Name and date of birth"
},
{
"key": "id_verification",
"name": "ID Verification",
"description": "ID type, number, and verification status"
},
{
"key": "address",
"name": "Address",
"description": "Verified address"
},
{
"key": "screening",
"name": "Screening",
"description": "AML/sanctions screening result"
},
{
"key": "documents",
"name": "Documents",
"description": "Access to verified documents"
},
{
"key": "full",
"name": "Full",
"description": "All verification data"
}
]
}

Permission Details

basic_info

Returns identity information from verified documents:

FieldTypeDescription
first_namestringApplicant's first name
last_namestringApplicant's last name
date_of_birthstring (ISO date)Date of birth

id_verification

Returns identity document verification results:

FieldTypeDescription
id_typestringDocument type (e.g., passport, drivers_license)
id_numberstringDocument number
id_countrystringIssuing country (ISO 3166-1)
id_verifiedbooleanWhether document passed verification

address

Returns verified address information:

FieldTypeDescription
addressobjectFull verified address object

screening

Returns AML/sanctions screening results:

FieldTypeDescription
screening_clearbooleanWhether screening passed with no hits
screening_checked_atdatetimeWhen screening was last run
has_pepbooleanWhether applicant matched PEP lists
has_sanctionsbooleanWhether applicant matched sanctions lists

documents

Returns metadata about verified documents (not the document files themselves):

FieldTypeDescription
documentsarrayList of document metadata objects
documents[].typestringDocument type
documents[].verified_atdatetimeWhen document was verified
documents[].issuing_countrystringIssuing country

full

Grants all of the above permissions. Equivalent to setting every other permission to true.

How Permissions Work

At Token Creation

When generating a token, you specify which permissions to grant:

curl -X POST https://api.bytrustgate.com/api/v1/kyc-share/token \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"applicant_id": "550e8400-e29b-41d4-a716-446655440000",
"shared_with": "Partner Company",
"permissions": {
"basic_info": true,
"screening": true,
"id_verification": false,
"address": false,
"documents": false,
"full": false
}
}'

At least one permission must be set to true.

At Verification

When a third party verifies the token, the response only includes fields for the granted permissions. In the example above, the response would include first_name, last_name, date_of_birth, screening_clear, screening_checked_at, has_pep, and has_sanctions — but not id_type, id_number, address, or documents.

Always Included

Regardless of permissions, every verify response includes:

FieldDescription
applicant_idThe applicant's UUID
verification_statusThe applicant's current status (e.g., approved)
verified_atWhen the applicant was verified
token_permissionsWhich permissions the token grants
uses_remainingHow many uses are left on the token

Never Shared

These data types are never included in share token responses, regardless of permissions:

  • Document images — Original uploaded files
  • Biometric data — Selfies, face embeddings, liveness frames
  • Device fingerprints — Browser or device information
  • Internal case notes — Compliance team notes
  • Raw PII fields — Beyond what permissions explicitly allow

Permission Combinations

Common permission configurations for different use cases:

Use CasePermissionsWhat Third Party Sees
Identity checkbasic_infoName and DOB only
Full KYC sharefullAll verification data
Compliance sharebasic_info + screeningName, DOB, and AML results
Document verificationid_verification + documentsID details and document metadata

Next Steps