Korala AI Session Access API

The Session Access API from Korala AI — 8 operation(s) for session access.

GitHub OpenAPI

Operations 8

GET /api/v1/v/{token} Get session by access token #
POST /api/v1/v/{token}/handoff Continue a session on another device #
POST /api/v1/v/handoff/{code} Open a session from a handoff link #
POST /api/v1/v/{token}/workflows/{swId}/start Start a workflow within a session #
POST /api/v1/v/{token}/workflows/{swId}/confirm Confirm upload and start workflow processing #
POST /api/v1/v/{token}/workflows/{swId}/liveness/start Open a Face Liveness session for a capture slot #
POST /api/v1/v/{token}/workflows/{swId}/liveness/complete Complete a Face Liveness session #
GET /api/v1/v/{token}/workflows/{swId}/status Get workflow run status within a session #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/korala-ai:korala-ai-session-access-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

korala-ai-session-access-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Korala Public Session Access API
  description: Public API for Korala document signing service
  version: 1.0.0
  contact: {}
servers:
- url: https://api.korala.ai
  description: Production
tags:
- name: Session Access
paths:
  /api/v1/v/{token}:
    get:
      operationId: SessionAccessController_getSession_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionAccessDto'
      summary: Get session by access token
      tags:
      - Session Access
  /api/v1/v/{token}/handoff:
    post:
      description: A link and QR code, valid for ten minutes, that open this session on another device at the step it has reached. The link carries no access token.
      operationId: SessionAccessController_createHandoff_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionHandoffDto'
      summary: Continue a session on another device
      tags:
      - Session Access
  /api/v1/v/handoff/{code}:
    post:
      description: Exchanges the code from a handoff link for the session it opens.
      operationId: SessionAccessController_redeemHandoff_v1
      parameters:
      - name: code
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionHandoffRedeemedDto'
        '400':
          description: Not a genuine handoff link
        '410':
          description: The link, or the session, has expired
      summary: Open a session from a handoff link
      tags:
      - Session Access
  /api/v1/v/{token}/workflows/{swId}/start:
    post:
      description: Creates a new workflow run and returns an upload URL. Only the current sequential workflow can be started.
      operationId: SessionAccessController_startWorkflow_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      - name: swId
        required: true
        in: path
        schema:
          type: string
      - name: user-agent
        required: true
        in: header
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartSessionWorkflowDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartSessionWorkflowResponseDto'
        '400':
          description: Not the current step; the binding asks for a document choice that is missing, malformed or not allowed; or the choice leaves nothing to capture.
        '409':
          description: 'The step is already running: follow it with the status route.'
      summary: Start a workflow within a session
      tags:
      - Session Access
  /api/v1/v/{token}/workflows/{swId}/confirm:
    post:
      operationId: SessionAccessController_confirmUpload_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      - name: swId
        required: true
        in: path
        schema:
          type: string
      - name: user-agent
        required: true
        in: header
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmSessionWorkflowUploadDto'
      responses:
        '200':
          description: ''
        '400':
          description: Malformed UUID in path parameter (`swId`).
        '409':
          description: 'The workflow has already started: an earlier confirm was accepted.'
      summary: Confirm upload and start workflow processing
      tags:
      - Session Access
  /api/v1/v/{token}/workflows/{swId}/liveness/start:
    post:
      description: 'For a slot flagged livenessSession: opens a live camera check session bound to this run and returns the session id with credentials that can only stream it. Three attempts per slot; each is billed.'
      operationId: SessionAccessController_startLiveness_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      - name: swId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartLivenessSessionDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LivenessSessionDto'
        '400':
          description: Not a Face Liveness slot, or no attempts left
        '409':
          description: The run has started, or the slot is already filled
      summary: Open a Face Liveness session for a capture slot
      tags:
      - Session Access
  /api/v1/v/{token}/workflows/{swId}/liveness/complete:
    post:
      description: 'Call as soon as the check finishes in the browser: the API fetches the liveness result (available for three minutes), stores the reference frame as the slot''s capture and reports whether the slot is filled or the check can be retried.'
      operationId: SessionAccessController_completeLiveness_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      - name: swId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompleteLivenessSessionDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LivenessSessionOutcomeDto'
        '400':
          description: Not the session opened for this slot
        '409':
          description: The session was already completed
      summary: Complete a Face Liveness session
      tags:
      - Session Access
  /api/v1/v/{token}/workflows/{swId}/status:
    get:
      operationId: SessionAccessController_getWorkflowStatus_v1
      parameters:
      - name: token
        required: true
        in: path
        schema:
          type: string
      - name: swId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionWorkflowRunStatusDto'
        '400':
          description: Malformed UUID in path parameter (`swId`).
      summary: Get workflow run status within a session
      tags:
      - Session Access
components:
  schemas:
    SessionHandoffDto:
      type: object
      properties:
        url:
          type: string
          description: Opens the session on another device; valid for ten minutes. Carries no access token.
        qrDataUrl:
          type: string
          description: The same link as a PNG data URL QR code
        expiresAt:
          format: date-time
          type: string
      required:
      - url
      - qrDataUrl
      - expiresAt
    LivenessSessionOutcomeDto:
      type: object
      properties:
        status:
          type: string
          enum:
          - succeeded
          - failed
          - expired
          - incomplete
          description: 'succeeded: the reference frame is stored and the slot counts as captured. Anything else can be retried while attempts remain.'
        attemptsRemaining:
          type: number
          description: Attempts left
        feedback:
          description: Retry guidance for the camera check, such as low lighting
          type: array
          items:
            type: string
      required:
      - status
      - attemptsRemaining
      - feedback
    StartLivenessSessionDto:
      type: object
      properties:
        requestId:
          type: string
          description: Client attempt UUID. Reuse only when retrying the same start request.
          format: uuid
        slotKey:
          type: string
          description: The capture slot flagged livenessSession
      required:
      - slotKey
    StartSessionWorkflowResponseDto:
      type: object
      properties:
        runId:
          type: string
          description: The workflow run ID to poll for status
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/ArtifactUploadPlanDto'
      required:
      - runId
      - artifacts
    SessionHandoffRedeemedDto:
      type: object
      properties:
        accessToken:
          type: string
          description: The access token of the session the link opens
      required:
      - accessToken
    SessionWorkflowStepStatusDto:
      type: object
      properties:
        id:
          type: string
        stepType:
          allOf:
          - $ref: '#/components/schemas/WorkflowStepType'
        status:
          allOf:
          - $ref: '#/components/schemas/WorkflowStepRunStatus'
      required:
      - id
      - stepType
      - status
    SessionResolution:
      type: string
      enum:
      - approved
      - rejected
    SessionDocumentChoiceDto:
      type: object
      properties:
        country:
          type: string
          description: ISO 3166-1 alpha-2
        type:
          type: string
          enum:
          - passport
          - national_id
          - driving_license
      required:
      - country
      - type
    WorkflowRunStatus:
      type: string
      enum:
      - pending
      - running
      - paused
      - completed
      - failed
    WorkflowStepRunStatus:
      type: string
      enum:
      - pending
      - running
      - paused
      - completed
      - failed
      - skipped
    LivenessSessionDto:
      type: object
      properties:
        sessionId:
          type: string
          description: The live camera check session the browser streams to
        region:
          type: string
          description: Processing region for the live camera check
        credentials:
          description: Temporary credentials that can only stream a Face Liveness session, valid 15 minutes
          allOf:
          - $ref: '#/components/schemas/LivenessStreamingCredentialsDto'
        attempt:
          type: number
          description: This attempt, starting at 1
        attemptsRemaining:
          type: number
          description: Attempts left after this one
      required:
      - sessionId
      - region
      - credentials
      - attempt
      - attemptsRemaining
    WorkflowStepType:
      type: string
      enum:
      - capture
      - ocr
      - extract
      - validate
      - enrich
      - check
      - risk
      - output
      - review
      - webhook
    ConfirmSessionWorkflowUploadDto:
      type: object
      properties:
        contentType:
          type: string
          description: Content type of the uploaded file
          example: application/pdf
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/ConfirmArtifactUploadDto'
        deviceSignals:
          description: Browser-reported signals from the device confirming a verification capture. Used only as a review candidate; not a device identity assertion.
          allOf:
          - $ref: '#/components/schemas/ReportedDeviceSignalsDto'
    StartSessionWorkflowDto:
      type: object
      properties:
        inputData:
          type: object
          additionalProperties: true
          description: 'Additional input for this workflow run. It reaches the run as inputData.endUserInput, beside the data the session, earlier workflows and the binding provide, and never replaces any of it. Where the binding context has documentChoice: true, it must carry document: { country (ISO 3166-1 alpha-2), type (passport | national_id | driving_license) }, which decides the capture slots; elsewhere document is ignored.'
    SessionWorkflowRunStatusDto:
      type: object
      properties:
        id:
          type: string
        status:
          allOf:
          - $ref: '#/components/schemas/WorkflowRunStatus'
        errorMessage:
          type:
          - string
          - 'null'
          description: Why the run failed, when it is something the person can fix (a capture problem such as a wrong file type); null otherwise
        stepRuns:
          type: array
          items:
            $ref: '#/components/schemas/SessionWorkflowStepStatusDto'
      required:
      - id
      - status
      - stepRuns
    ReportedDeviceSignalsDto:
      type: object
      properties:
        browserInstallationId:
          type: string
          description: Random identifier kept by this browser installation. It may be cleared or forged; the server hashes it before storage.
        language:
          type: string
        timezone:
          type: string
        screenWidth:
          type: number
        screenHeight:
          type: number
        pixelRatio:
          type: number
        hardwareConcurrency:
          type: number
        maxTouchPoints:
          type: number
        webglRenderer:
          type: string
        webdriver:
          type: boolean
      required:
      - language
      - timezone
      - screenWidth
      - screenHeight
      - pixelRatio
      - maxTouchPoints
    SessionParticipantRole:
      type: string
      enum:
      - subject
      - beneficial_owner
      - controller
      - director
      - representative
    SessionAccessDto:
      type: object
      properties:
        sandbox:
          type: boolean
          description: 'Persisted execution mode: true for test data'
          readOnly: true
        id:
          type: string
        status:
          allOf:
          - $ref: '#/components/schemas/SessionStatus'
        resolution:
          allOf:
          - $ref: '#/components/schemas/SessionResolution'
        redirectUrl:
          type:
          - string
          - 'null'
        expiresAt:
          format: date-time
          type:
          - string
          - 'null'
        participants:
          type: array
          items:
            $ref: '#/components/schemas/SessionAccessParticipantDto'
        workflows:
          description: Ordered list of workflows in this session
          type: array
          items:
            $ref: '#/components/schemas/SessionAccessWorkflowDto'
        currentWorkflow:
          description: The next workflow the user should work on
          allOf:
          - $ref: '#/components/schemas/SessionAccessWorkflowDto'
      required:
      - sandbox
      - id
      - status
      - participants
      - workflows
    ArtifactCameraConfigDto:
      type: object
      properties:
        preferredFacing:
          type: string
          enum:
          - environment
          - user
        outputFormat:
          type: string
          enum:
          - image/jpeg
          - image/png
        outputQuality:
          type: number
        maxResolution:
          type: number
    LivenessStreamingCredentialsDto:
      type: object
      properties:
        accessKeyId:
          type: string
        secretAccessKey:
          type: string
        sessionToken:
          type: string
        expiration:
          type: string
          format: date-time
      required:
      - accessKeyId
      - secretAccessKey
      - sessionToken
      - expiration
    SessionStatus:
      type: string
      enum:
      - created
      - in_progress
      - pending_review
      - completed
      - expired
      - failed
    ArtifactUploadPlanDto:
      type: object
      properties:
        livenessRecording:
          type: boolean
          description: Capture a continuous video alongside the posed selfies
        captureChallenge:
          description: Server-issued selfie submission challenge. Resume invalidates the previous challenge and requires recapture. This does not establish liveness.
          allOf:
          - $ref: '#/components/schemas/CaptureChallengeDto'
        slotKey:
          type: string
        label:
          type:
          - string
          - 'null'
        required:
          type: boolean
        acceptedTypes:
          type: array
          items:
            type: string
        maxSizeMb:
          type: number
        inputModes:
          type: array
          items:
            type: string
        uploadUrl:
          type: string
          description: Pre-signed URL to upload the artifact
        key:
          type: string
          description: Storage key for the uploaded artifact
        livenessPose:
          type:
          - string
          - 'null'
          enum:
          - straight
          - left
          - right
          - null
          description: 'For a liveness challenge: the face pose this capture asks for'
        cameraConfig:
          allOf:
          - $ref: '#/components/schemas/ArtifactCameraConfigDto'
        uploaded:
          type: boolean
          description: A file is already in place for this slot (uploaded before the run was resumed, perhaps on another device); include the slot when confirming, but do not upload it again
        livenessSession:
          type: boolean
          description: 'Filled by a live camera check session instead of an upload: open one with the liveness start route, run the check, then call the liveness complete route. uploadUrl is empty for this slot.'
      required:
      - slotKey
      - required
      - acceptedTypes
      - maxSizeMb
      - inputModes
      - uploadUrl
      - key
    SessionWorkflowStatus:
      type: string
      enum:
      - pending
      - in_progress
      - completed
      - failed
      - resubmit_required
    ConfirmArtifactUploadDto:
      type: object
      properties:
        captureChallengeId:
          type: string
          description: Required for slots with a captureChallenge in their upload plan.
        slotKey:
          type: string
        contentType:
          type:
          - string
          - 'null'
        captureMode:
          type:
          - string
          - 'null'
      required:
      - slotKey
    CaptureChallengeDto:
      type: object
      properties:
        recordingSlotKey:
          type: string
          description: Slot for the continuous selfie recording, when required
        version:
          type: number
          enum:
          - 1
        id:
          type: string
          format: uuid
        workflowRunId:
          type: string
          format: uuid
        slotOrder:
          type: array
          items:
            type: string
        issuedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
      required:
      - version
      - id
      - workflowRunId
      - slotOrder
      - issuedAt
      - expiresAt
    SessionAccessParticipantDto:
      type: object
      properties:
        id:
          type: string
        role:
          allOf:
          - $ref: '#/components/schemas/SessionParticipantRole'
        displayName:
          type:
          - string
          - 'null'
      required:
      - id
      - role
    CompleteLivenessSessionDto:
      type: object
      properties:
        slotKey:
          type: string
          description: The capture slot flagged livenessSession
        sessionId:
          type: string
          description: The session id the start route returned
      required:
      - slotKey
      - sessionId
    SessionAccessWorkflowDto:
      type: object
      properties:
        id:
          type: string
        workflowDefinitionId:
          type: string
        workflowName:
          type:
          - string
          - 'null'
        workflowSlug:
          type:
          - string
          - 'null'
        workflowRunId:
          type:
          - string
          - 'null'
        outputKey:
          type: string
        participantId:
          type:
          - string
          - 'null'
        participantRole:
          allOf:
          - $ref: '#/components/schemas/SessionParticipantRole'
        participantDisplayName:
          type:
          - string
          - 'null'
        order:
          type: number
        status:
          allOf:
          - $ref: '#/components/schemas/SessionWorkflowStatus'
        context:
          type:
          - object
          - 'null'
          additionalProperties: true
        attemptCount:
          type: number
        maxAttempts:
          type: number
        resubmissionReasons:
          description: 'Why Korala asked for this workflow again: capture reason codes the person can act on (capture.document_expired, capture.document_unsupported, capture.image_unreadable, capture.side_missing, capture.file_too_large, capture.document_no_face, capture.selfie_no_face, capture.selfie_multiple_faces, capture.selfie_too_dark, capture.selfie_blurry). Kept while the redo runs and cleared when the workflow next completes. Null when nobody asked, or when the partner did.'
          type:
          - array
          - 'null'
          items:
            type: string
        documentChoice:
          description: 'On the session link only: the document chosen for a run still waiting for its uploads, so another device continues with it'
          allOf:
          - $ref: '#/components/schemas/SessionDocumentChoiceDto'
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
      - id
      - workflowDefinitionId
      - outputKey
      - order
      - status
      - attemptCount
      - maxAttempts
      - createdAt
      - updatedAt
  securitySchemes:
    preparation-token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: One-hour, single-template preparation session token. Not a dashboard or OAuth token.
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
    timestamp:
      type: apiKey
      in: header
      name: X-Timestamp
    signature:
      type: apiKey
      in: header
      name: X-Signature