Fourthline Workflow Setup API

Create Identity Verification API v2 workflows and SDK sessions.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /v2/workflows Create workflow #
POST /v2/workflows/{workflowId}/validationcode Create SDK 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/fourthline:fourthline-workflow-setup-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

fourthline-workflow-setup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Identity Verification API v2 Workflow Setup API
  version: '2'
  description: 'Identity Verification API v2.


    This API uses API-level versioning. Workflow endpoints are under `/v2/workflows/`.


    The ReadMe documentation version is independent of this API version. This reference is published on the ReadMe 2.0 documentation version. That version is the documentation set. It is not a version of the AML API or the QES API.


    **Authentication:** No changes are required for authentication when migrating to API v2. Call Create access token (`POST /v1/oauth2/token`). API v1 and API v2 use this path. The AML API and the QES API use the same access token. The token is valid for **1 hour**. Send it as `Authorization: Bearer `.


    The AML API and the QES API are separate references. They use endpoint-level versioning.


    **JSON property names** use **camelCase** (for example `workflowId`, `clientId`, `problemDetails`, `transferData`).


    **Product keys** use PascalCase **string values**, not property names: `IdentityVerification`, `Payments` (Bank Account Verification), `Signatures` (Qualified Electronic Signature). The same keys appear in Get workflow status, reports, and Identity Verification Webhooks v2.


    **Other conventions:** Create access token request and response fields use OAuth **snake_case** (`grant_type`, `access_token`). Document `type` values and `rawVizReading[].fieldName` identifiers use PascalCase strings (for example `SelfieImage`, `FirstName`).


    **Error responses:** The JSON error shape depends on the endpoint.


    **ProblemDetails** — top-level `type`, `title`, `status`, and `detail` (no `problemDetails` wrapper).


    `validationProblemDetails` — extends `problemDetails` with an `errors` object: keys are property or rule names; values are arrays of error message strings.


    `validationProblemDetails` is returned on `400` from:

    - Upload or update client data (`PATCH`)

    - Upload client document (`POST`)

    - Upload ID document metadata (`POST`)


    Other conventions:

    - **Workflow** endpoints that still wrap errors: a `problemDetails` object with `title`, `status`, `detail`, and `traceId` (for example Get workflow status, Upload multiple client documents non-`400` responses).

    - **Create workflow** `400`: ValidationProblemDetails; `404`: ProblemDetails.

    - **Get report as ZIP** errors: plain-text `404` bodies; `500` with an empty response body.

    - **Create SDK session** validation failures: `message`, `code`, and `errors[]` (each item has `code`, `property`, `message`).

    - **Qualified Electronic Signature** endpoints: top-level `title`, `status`, `detail`, and `traceId` (no `problemDetails` wrapper).

    - **Create access token** OAuth errors: `error` and `error_description`.'
servers:
- url: https://api.ext-sandbox.fourthline.com
  description: 'Main API host. The JSON workflow report is served at **`/v2/workflows/{workflowId}/report/json`** on this host.

    '
tags:
- name: Workflow Setup
  description: Create Identity Verification API v2 workflows and SDK sessions.
paths:
  /v2/workflows:
    post:
      summary: Create workflow
      description: 'Use this endpoint to create a workflow that combines multiple Fourthline products into a single onboarding flow.


        **Note:** Specify either `partnerClientId` or `clientId`. Do not provide both parameters in the same request.'
      operationId: create-workflow
      tags:
      - Workflow Setup
      parameters:
      - $ref: '#/components/parameters/authorization'
      - $ref: '#/components/parameters/cacheControl'
      requestBody:
        required: true
        content:
          application/json:
            examples:
              Create workflow:
                summary: Create workflow
                value:
                  workflow: UK_KYC_v2
                  clientId: baa2bf19-5258-47ec-b428-276d3f045820
            schema:
              type: object
              required:
              - workflow
              properties:
                workflow:
                  type: string
                  description: 'The name of the workflow configuration to run. <br /> <br />Format: Must be unique and contain only letters, numbers, underscores (`_`). Maximum length: 128 characters. <br /> <br />Example: `UK_KYC_v2` <br />

                    <img src="https://files.readme.io/ad2486a-Inline_Note.svg" align="left" alt="Note" /> **Note:** Once set, the workflow name **cannot** be changed.'
                partnerClientId:
                  type: string
                  description: 'Your unique identifier for the client. Once assigned, use the same `partnerClientId` for that client (natural person) across all workflows. <br /><br /> Reusing the same identifier helps prevent duplicate client records. <br /><br />Format: We recommend a uuid-style string <br /><br /><img src="https://files.readme.io/8eb9022-Inline_Tip.svg" align="left"/> **Tip:** Provide either `partnerClientId` or `clientId` — not both.'
                clientId:
                  type: string
                  format: uuid
                  description: 'Fourthline identifier for the client. <br /> Use the `clientId` when using Authentication products, as the reference workflow is selected based on this value. <br /><br />  <img src="https://files.readme.io/8eb9022-Inline_Tip.svg" align="left"/> **Tip**: Provide either `partnerClientId` or `clientId` — not both.'
      responses:
        '201':
          description: Workflow created
          content:
            application/json:
              examples:
                created:
                  summary: Created
                  value:
                    workflowId: 3a3f90d8-019b-4001-98f8-c54848d07827
                    clientId: baa2bf19-5258-47ec-b428-276d3f045820
              schema:
                type: object
                properties:
                  workflowId:
                    type: string
                    description: 'The unique identifier of the workflow. <br /><br />Format: uuid <br /><br />Example: `790f325a-48c9-4b82-bb53-c0ea128236f0`'
                  clientId:
                    type: string
                    description: 'The unique client id assigned to the client by Fourthline in the [Create workflow](ref:create-workflow) response. <br /><br />Format: uuid <br /><br />Example: `baa2bf19-5258-47ec-b428-276d3f045820`'
        '400':
          description: "Bad Request (request validation). Returned when the request body fails validation. \n"
          content:
            application/json:
              examples:
                validation_failed:
                  summary: Request validation failed
                  value:
                    type: https://tools.ietf.org/html/rfc7231#section-6.5.1
                    title: One or more validation errors occurred.
                    status: 400
                    errors:
                      PartnerClientId:
                      - Only partnerClientId or clientId needs to be supplied.
                      ClientId:
                      - Only partnerClientId or clientId needs to be supplied.
                      Workflow:
                      - '''Workflow'' must not be empty.'
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '404':
          description: 'Returned when the requested workflow definition is not configured, or when neither `clientId` nor `partnerClientId` can be resolved to an existing client.

            '
          content:
            application/json:
              examples:
                workflow_not_found:
                  summary: Workflow not found
                  value:
                    type: https://tools.ietf.org/html/rfc7231#section-6.5.4
                    title: Not Found
                    status: 404
                    detail: Workflow not found. Please contact Fourthline if this error is unexpected.
                client_id_not_found:
                  summary: ClientId not found
                  value:
                    type: https://tools.ietf.org/html/rfc7231#section-6.5.4
                    title: Not Found
                    status: 404
                    detail: ClientId not found.
              schema:
                $ref: '#/components/schemas/ProblemDetails'
  /v2/workflows/{workflowId}/validationcode:
    post:
      summary: Create SDK session
      description: 'Use this endpoint to create an App Drop-in or Web SDK session for a workflow.


        **Important**:


        • SDK validation codes are single use and expire after 2 hours.

        • If the client stops in the middle of the workflow, you need to create a new SDK session.

        • When the client closes the app or browser, the `validationCode` is invalidated and cleared from the cache.'
      operationId: create-sdk-session
      tags:
      - Workflow Setup
      parameters:
      - name: workflowId
        in: path
        required: true
        description: 'The unique identifier of the workflow. <br /><br />Format: uuid <br /><br />Example: `790f325a-48c9-4b82-bb53-c0ea128236f0`'
        schema:
          type: string
      - $ref: '#/components/parameters/authorization'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - target
              properties:
                target:
                  type: string
                  description: 'The type of SDK session. <br />Enum: <br />• `Mobile`: App Drop-in session <br />• `Web`: Web SDK session.'
                  enum:
                  - Mobile
                  - Web
      responses:
        '200':
          description: Validation code returned
          content:
            application/json:
              examples:
                ok:
                  summary: OK
                  value:
                    validationCode: ABCD9999
                    expiryDateTime: '2025-04-30T15:52:47.6706559+00:00'
              schema:
                type: object
                properties:
                  validationCode:
                    type: string
                    description: 'The single-use validation code to link the SDK session to the workflow. <br /><br />Format: Alphanumerical string of 8 characters'
                  expiryDateTime:
                    type: string
                    description: 'The timestamp for when the validation code expires (**2 hours** after creation). <br /><br />Format: ISO 8601 UTC date and time'
                    format: date-time
        '400':
          description: Invalid request
          content:
            application/json:
              examples:
                bad_request:
                  summary: Bad Request
                  value:
                    message: Request model validation error.
                    code: '400'
                    errors:
                    - code: '400'
                      property: target
                      message: Please specify a valid target
              schema:
                type: object
                properties:
                  message:
                    description: The error message.
                    type: string
                  code:
                    description: The general error code.
                    type: string
                  errors:
                    description: Information about the specific error.
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          description: The specific error code.
                          type: string
                        property:
                          description: The property that threw the error.
                          type: string
                        message:
                          description: The description of the error thrown by the property.
                          type: string
        '401':
          description: Invalid or expired access token
          content:
            application/json:
              examples:
                unauthorized:
                  summary: Unauthorized
                  value:
                    error: invalid_token
                    error_description: The access token is invalid or has expired
              schema:
                type: object
                properties:
                  error:
                    description: 'A machine-readable code that identifies the type of error. <br /><br />Example: `invalid_token`'
                    type: string
                  error_description:
                    description: 'A human-readable message that explains the error in more detail. <br /><br />Example: `The access token is invalid or has expired`'
                    type: string
        '404':
          description: Resource not found
          content:
            application/json:
              examples:
                not_found:
                  summary: Not Found
                  value:
                    type: https://tools.ietf.org/html/rfc7231#section-6.5.4
                    title: Not Found
                    status: 404
              schema:
                type: object
                properties:
                  title:
                    description: The error type.
                    type: string
                  status:
                    description: The HTTP status code.
                    type: integer
        '500':
          description: Unexpected server error
          content:
            application/json:
              examples:
                server_error:
                  summary: Internal Server Error
                  value:
                    type: https://tools.ietf.org/html/rfc7231#section-6.6.1
                    title: Internal Server Error
                    status: 500
                    detail: Failed to create API credentials for a6b18d1e-bc3b-4a63-b987-3b3fa0b109b3
              schema:
                type: object
                properties:
                  title:
                    description: The error type.
                    type: string
                  status:
                    description: The HTTP status code.
                    type: integer
                  detail:
                    description: The error message.
                    type: string
components:
  parameters:
    cacheControl:
      name: Cache-Control
      in: header
      required: false
      description: To have the response validated by the origin server instead of reusing stored content, we strongly recommend including this parameter and setting it to `no-cache`.
      schema:
        type: string
        default: no-cache
    authorization:
      name: Authorization
      in: header
      required: true
      description: The `access_token` returned in your most recent [Create access token](ref:create-access-token) response.
      schema:
        type: string
        default: Bearer <access_token>
  schemas:
    ValidationProblemDetails:
      type: object
      description: 'Extends `problemDetails` with an `errors` object for request validation failures. Keys are property or rule names; values are arrays of error message strings.

        '
      properties:
        type:
          type: string
          format: uri
          description: A URI reference that identifies the problem type.
        title:
          type: string
          description: A short, human-readable summary of the problem type.
        status:
          type: integer
          description: The HTTP status code.
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence. May be omitted when `errors` is present.
        errors:
          type: object
          description: Field- or rule-level validation errors.
          additionalProperties:
            type: array
            items:
              type: string
    ProblemDetails:
      type: object
      description: 'Top-level error body with `type`, `title`, `status`, and `detail`. Returned at the JSON root (no `problemDetails` wrapper).

        '
      properties:
        type:
          type: string
          format: uri
          description: A URI reference that identifies the problem type.
        title:
          type: string
          description: A short, human-readable summary of the problem type.
        status:
          type: integer
          description: The HTTP status code.
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence.
x-readme-fauxas: true
x-provenance:
  method: searched
  source: https://docs.fourthline.com/reference
  harvested: '2026-12-02'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.fourthline.com/reference/create-sdk-session.md
  - https://docs.fourthline.com/reference/create-workflow.md
  - https://docs.fourthline.com/reference/get-report-json.md
  - https://docs.fourthline.com/reference/get-report-pdf.md
  - https://docs.fourthline.com/reference/get-report-xml.md
  - https://docs.fourthline.com/reference/get-report-zipfile.md
  - https://docs.fourthline.com/reference/get-workflow-status.md
  - https://docs.fourthline.com/reference/post_v2-testendpoint-workflows-workflowid.md
  - https://docs.fourthline.com/reference/remove-document-duplication-restriction.md
  - https://docs.fourthline.com/reference/start-workflow.md
  - https://docs.fourthline.com/reference/upload-client-data.md
  - https://docs.fourthline.com/reference/upload-client-document.md
  - https://docs.fourthline.com/reference/upload-client-documents-bulk.md
  - https://docs.fourthline.com/reference/upload-identity-document-metadata.md
  merge:
    pages: 14
    deduped: 32
    conflicts_kept_first: 0