LogoLogo
  • Welcome!
  • GETTING STARTED
    • Signing Up
    • Choose a Product
    • Choose an Integration Option
    • Run Your First Test Job
    • Complete Your KYC
    • Fund Your Wallet
    • Go Live!
    • Pricing
  • SUPPORTED ID TYPES & DOCUMENTS
    • For Individuals (KYC)
      • Using ID Number
        • Supported Countries
          • Côte d'Ivoire
            • National ID (without Photo)
            • Resident ID (without Photo)
          • Ghana
            • Ghana Card
            • Ghana Card (without Photo)
            • Passport
            • Voter's ID
          • Kenya
            • Alien Card
            • KRA Pin
            • National ID
            • National ID (without Photo)
            • Passport
            • Tax Information
          • Nigeria
            • Bank Account
            • BVN
            • NIN V2
            • NIN Slip Verification
            • V_NIN (Virtual NIN)
            • Phone Number
            • Voter's ID
          • South Africa
            • National ID
            • National ID (without Photo)
            • Phone Number
            • Refugee and Asylum ID
          • Uganda
            • National ID (without Photo)
            • Basic KYC in Uganda
          • Zambia
            • Bank Account
            • TPIN
          • Zimbabwe
            • National ID (without Photo)
        • Test Data
          • Customising Sandbox Test Data
        • ID Number Regex
        • Visual Samples of Supported ID Types
      • Using Document Image
        • Continents
          • Africa
          • Asia and the Middle East
          • Europe
          • North America
          • Oceania
          • South America
    • For Businesses (KYB)
      • Supported Countries
        • Nigeria
          • Business Registration
          • Tax Information
        • Kenya
          • Business Registration
        • South Africa
          • Business Registration
      • ID Number Regex
  • PRODUCTS
    • For Individuals (KYC)
      • AML Check
        • AML News Media
      • Basic KYC
      • Biometric KYC
      • Digital Address Verification
      • Document Verification
        • Document Verification
        • Enhanced Document Verification
      • Electronic Signature
      • Enhanced KYC
      • Phone Number Verification
      • SmartSelfie™ Authentication
      • SmartSelfie™ Compare
      • Smile Secure
    • For Businesses (KYB)
      • Business Verification
  • Integration Options
    • Mobile
      • Getting Started
      • Products
        • Biometric KYC
        • BVN Consent
        • Document Verification
        • Enhanced Document Verification
        • Enhanced KYC
        • SmartSelfie™ Enrollment and Authentication
        • Enhanced SmartSelfie™ Enrollment And Authentication
      • Customization
        • UI Components
      • Offline Mode
      • Release Notes
        • Android Release Notes
        • iOS Release Notes
        • Flutter Release Notes
        • React Native Release Notes
    • No-Code
      • Smile Links
        • Link FAQs
        • Rest API
    • Server to Server
      • Ruby
        • Installation
        • Signature
        • Products
          • Basic KYC
          • Enhanced KYC
          • Biometric KYC
          • Document Verification
          • SmartSelfie™ Authentication
          • KYB - Business Verification
          • AML Check
        • Generate Token for Web Integration
        • Utilities
      • Python
        • Installation
        • Signature
        • Products
          • Basic KYC
          • Enhanced KYC
          • Biometric KYC
          • Document Verification
          • SmartSelfie™ Authentication
          • Business Verification
        • Generate Token for Web Integration
        • Utilities
      • Java
        • Release Notes
        • Installation
        • Signature
        • Products
          • Basic KYC
          • Enhanced KYC
          • Biometric KYC
          • Document Verification
          • SmartSelfie™ Authentication
        • Generate Token for Web Integration
        • Utilities
      • Node.js
        • Installation
        • Signature
        • Products
          • Basic KYC
          • Enhanced KYC
          • Biometric KYC
          • Document Verification
          • Enhanced Document Verification
          • SmartSelfie™ Authentication
          • Business Verification
        • Generate Token for Web Integration
        • Utilities
      • PHP
        • Installation
        • Signature
        • Products
          • Basic KYC
          • Enhanced KYC
          • Biometric KYC
          • Document Verification
          • SmartSelfie™ Authentication
        • Generate Token for Web Integration
        • Utilities
    • Rest API
      • Signing your API Request
        • Using Signature
      • Products
      • Postman Collection
      • Utilities
    • Web / Mobile Web
      • Web Integration
        • Installation
        • Usage
        • End User Consent
        • Support
      • Javascript SDK
        • Installation
        • Usage
        • Migration
        • Deprecated Version
          • Installation
          • Usage
          • Notes
          • Support
  • FURTHER READING
    • FAQs
      • What are your support hours?
      • How do I set up a callback?
      • How to re-enroll, deactivate or delete a user?
      • Add or remove team members
      • What are top-level keys?
      • What are partner_params?
      • How do job types map to the new product names?
      • Is there an API I can use to monitor my wallet balance?
      • Is there an API I can query to check the availability status of an ID type?
      • How do I integrate Smile ID in other countries or query other ID types?
      • What are the image types I can upload to Smile ID?
      • Why aren't Kenyan IDs returning images for some IDs queried?
      • Why are some of my bank verification requests returning 'ID authority unavailable'?
      • How can I look up a specific user's data?
      • Selfie best-practices
      • Document capture best-practices
      • What happens under the hood?
      • Guide to the user consent screen
      • What is code 2302?
      • Using the Demo App and Scanning QR codes
    • Job status
    • KYC receipts
    • Result codes
      • Error codes
    • Securing your account with two-factor authentication (2FA)
    • Security Overview
    • Troubleshooting
      • Troubleshooting error 2204 & 2205 - "You're not authorized to do that"
      • Why is my Web API job taking so long?
      • Image capture issues on web client
Powered by GitBook
On this page
  • Parameters
  • Image Types
  • Examples
  • Example 1: Base64 Encoded Selfie Image
  • Example 2: File Image of ID Card
  • Example 3: Mixed Image Types with ID Info

Was this helpful?

  1. FURTHER READING
  2. FAQs

What are the image types I can upload to Smile ID?

There are four image types Smile ID uses to process a job, depending on your product of choice:

  • Selfie - We strongly recommend using our mobile SDKs to capture these images.

  • Document / ID Card Photo - Including front and back images.

  • Liveness Images - For active liveness detection. We strongly recommend using our mobile SDKs to capture these images.

  • Portrait - Specific to SmartSelfie Comparison. It is a high-quality image of the user from a trusted source (e.g., a passport photo).

Parameters

Parameter
Required
Data Type
Description

image_type_id

yes

Integer

It can be 0-12. The description of each Integer can be found in the table below.

image

optional

String

A base64 encoded image. Only for types 2/3/6/7.

file_name

optional

String

The name of the file being uploaded. Required for image types 0/1/4/5.

Image Types

Use the following chart to declare the image_type_id and understand their usage in different job types:

image_type_id

Indicates

Job Type

Image Format

Notes

0

Selfie image in .jpg file format only

All

File

1

ID card image in .jpg file format only

All

File

2

Base64 encoded selfie image (.jpg only)

All

Base64

3

Base64 encoded ID card image (.jpg only)

All

Base64

4

Liveness image in .jpg file format only

All

File

5

Back of ID card image in .jpg file format only

All

File

6

Base64 encoded liveness image (.jpg only)

All

Base64

7

Base64 encoded back of ID card image (.jpg only)

All

Base64

12

Portrait

JT3 (Comparison photos)

File

Only available via synchronous API.

Note: Selfie images are required for all job types unless the user has previously been enrolled with a selfie image and use_enrolled_image is set to true. use_enrolled_image must be set in the initial request.

Examples

Here are a few example schemas for different types of images:

Example 1: Base64 Encoded Selfie Image

{
  "images": [
    {
      "image": "base64_encoded_string",
      "image_type_id": 2
    }
  ]
}

Example 2: File Image of ID Card

Note: For this job to pass, a selfie must have been previously enrolled for the given user_id and use_enrolled_image must be set to true in the initial request.

{
  "images": [
    {
      "file_name": "id_card_front.jpg",
      "image_type_id": 1
    }
  ]
}

Example 3: Mixed Image Types with ID Info

{
  "id_info": {
    "country": "NG",
    "entered": "true",
    "id_number": "123456789",
    "id_type": "PASSPORT"
  },
  "images": [
    {
      "image": "base64_encoded_string",
      "image_type_id": 2
    },
    {
      "file_name": "id_card_front.jpg",
      "image_type_id": 1
    },
    {
      "file_name": "id_card_back.jpg",
      "image_type_id": 5
    }
  ]
}
PreviousHow do I integrate Smile ID in other countries or query other ID types?NextWhy aren't Kenyan IDs returning images for some IDs queried?

Last updated 11 months ago

Was this helpful?

For more detailed information, please refer to the Smile ID documentation:

What are the image types I can upload to Smile ID?