> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verisecid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct verification (v2)

> Run full verification directly with provided images. Persists result to submissions and returns full analysis.



## OpenAPI

````yaml api-reference/openapi.json post /v1/kyc/direct
openapi: 3.1.0
info:
  title: VerisecID KYC API
  description: Hosted KYC sessions to verify users via a secure, managed flow.
  version: 1.0.0
servers:
  - url: https://api.verisecid.com
security:
  - bearerAuth: []
tags:
  - name: Hosted sessions
    description: Create and manage hosted verification sessions
  - name: Direct verification
    description: Run verification with provided images using a secret key
  - name: Webhooks
    description: Receive verification events and test deliveries
paths:
  /v1/kyc/direct:
    post:
      tags:
        - Direct verification
      summary: Direct verification (v2)
      description: >-
        Run full verification directly with provided images. Persists result to
        submissions and returns full analysis.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sessionId:
                  type: string
                  description: Optional custom session id
                expectedDocumentType:
                  type: string
                  enum:
                    - passport
                    - id-card
                documentFrontBase64:
                  type:
                    - string
                    - 'null'
                documentBackBase64:
                  type:
                    - string
                    - 'null'
                selfieBase64s:
                  type: array
                  items:
                    type: string
                  minItems: 1
                applicantFirstName:
                  type:
                    - string
                    - 'null'
                applicantLastName:
                  type:
                    - string
                    - 'null'
                metadata:
                  type: object
                  additionalProperties: true
              required:
                - expectedDocumentType
                - documentFrontBase64
      responses:
        '200':
          description: Verification result
          content:
            application/json:
              schema:
                type: object
                properties:
                  sessionId:
                    type: string
                  status:
                    type: string
                    enum:
                      - completed
                      - failed
                  kycStatus:
                    type: string
                    enum:
                      - Approved
                      - Declined
                  result:
                    type: object
                    additionalProperties: true
                  verificationUrl:
                    type: string
                    format: uri
                required:
                  - sessionId
                  - status
                  - kycStatus
                  - result
                  - verificationUrl
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnsupportedMediaType:
      description: Unsupported media type
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type:
            - string
            - integer
        message:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````