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

# Read a session and its outcome



## OpenAPI

````yaml /openapi.json get /v1/sessions/{id}
openapi: 3.1.0
info:
  title: VerifNer API
  version: 1.0.0
  description: >-
    Identity verification for Nigerien passports and national identity cards.
    One call, a reasoned verdict: five checks with evidence, a score, VERIFIED
    at 0.90 and above, REVIEW from 0.60, REJECTED below.
servers:
  - url: https://api.verifner.com
security:
  - apiKey: []
tags:
  - name: Verify
    description: Server-to-server verification with the secret key.
  - name: Sessions
    description: >-
      Browser flows: your server opens a session, the web SDK uploads with a
      client token.
  - name: Webhooks
    description: verification.completed, signed with HMAC-SHA256, retried with backoff.
paths:
  /v1/sessions/{id}:
    get:
      tags:
        - Sessions
      summary: Read a session and its outcome
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^ses_
      responses:
        '200':
          description: Session
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Session'
                  - type: object
                    properties:
                      result:
                        type: object
                        nullable: true
                        properties:
                          verdict:
                            $ref: '#/components/schemas/Verdict'
                          final_verdict:
                            $ref: '#/components/schemas/Verdict'
                            nullable: true
                          score:
                            type: number
                          document_type:
                            type: string
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Session:
      $schema: http://json-schema.org/draft-07/schema#
      type: object
      properties:
        id:
          type: string
        mode:
          type: string
          enum:
            - live
            - test
        status:
          type: string
          enum:
            - pending
            - completed
            - expired
        reference:
          type:
            - string
            - 'null'
        document_type:
          anyOf:
            - type: string
              enum:
                - cni
                - passport
            - type: 'null'
          description: The one document asked for; null lets the person choose.
        verification_id:
          type:
            - string
            - 'null'
        expires_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        created_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      required:
        - id
        - mode
        - status
        - reference
        - document_type
        - verification_id
        - expires_at
        - created_at
      additionalProperties: false
    Verdict:
      $schema: http://json-schema.org/draft-07/schema#
      type: string
      enum:
        - verified
        - review
        - rejected
    Error:
      $schema: http://json-schema.org/draft-07/schema#
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: '`vn_live_…` or `vn_test_…`, from the console.'

````