Korala AI Workflows API
The Workflows API from Korala AI — 9 operation(s) for workflows.
The Workflows API from Korala AI — 9 operation(s) for workflows.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/korala-ai:korala-ai-workflows-api"
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.
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: 3.2.0
info:
title: Korala Public Workflows API
description: Public API for Korala document signing service
version: 1.0.0
contact: {}
servers:
- url: https://api.korala.ai
description: Production
tags:
- name: Workflows
paths:
/api/v1/workflows:
post:
operationId: WorkflowsController_createDefinition_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWorkflowDefinitionDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ManagedWorkflowDefinitionDto'
security:
- api-key: []
- bearer: []
summary: Create a new workflow definition
tags:
- Workflows
get:
operationId: WorkflowsController_findAllDefinitions_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: page
required: false
in: query
description: Page number (1-based)
schema:
minimum: 1
default: 1
type: number
- name: limit
required: false
in: query
description: Number of items per page
schema:
minimum: 1
maximum: 100
default: 10
type: number
- name: includePublic
required: false
in: query
description: Include public workflows in results
schema:
default: true
type: boolean
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedManagedWorkflowDefinitionsDto'
security:
- api-key: []
- bearer: []
summary: List all workflow definitions
tags:
- Workflows
/api/v1/workflows/{slug}:
get:
operationId: WorkflowsController_findDefinitionBySlug_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: slug
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ManagedWorkflowDefinitionDto'
security:
- api-key: []
- bearer: []
summary: Get workflow definition by slug
tags:
- Workflows
patch:
operationId: WorkflowsController_updateDefinition_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: slug
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateWorkflowDefinitionDto'
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ManagedWorkflowDefinitionDto'
security:
- api-key: []
- bearer: []
summary: Update a workflow definition
tags:
- Workflows
delete:
operationId: WorkflowsController_deleteDefinition_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: slug
required: true
in: path
schema:
type: string
responses:
'204':
description: Workflow deleted successfully
security:
- api-key: []
- bearer: []
summary: Delete a workflow definition
tags:
- Workflows
/api/v1/workflows/{slug}/run:
post:
description: Creates a new workflow run and returns an upload URL. Upload your document to the URL, then call confirm to start processing.
operationId: WorkflowsController_startRun_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: slug
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/StartWorkflowRunDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/StartWorkflowRunResponseDto'
security:
- api-key: []
- bearer: []
summary: Start a new workflow run
tags:
- Workflows
/api/v1/workflows/runs:
get:
operationId: WorkflowsController_findAllRuns_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: workflowDefinitionId
required: false
in: query
description: Filter by workflow definition ID
schema:
type: string
- name: page
required: false
in: query
description: Page number (1-based)
schema:
minimum: 1
default: 1
type: number
- name: limit
required: false
in: query
description: Number of items per page
schema:
minimum: 1
maximum: 100
default: 10
type: number
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedWorkflowRunsDto'
security:
- api-key: []
- bearer: []
summary: List all workflow runs
tags:
- Workflows
/api/v1/workflows/runs/{id}:
get:
description: Returns the current status and results of a workflow run.
operationId: WorkflowsController_findRunById_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/WorkflowRunWithStepsDto'
'400':
description: Malformed UUID in path parameter (`id`).
summary: Get workflow run by ID
tags:
- Workflows
/api/v1/workflows/runs/{id}/confirm:
post:
description: Call this after uploading the document to start the workflow execution.
operationId: WorkflowsController_confirmUpload_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: id
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmWorkflowUploadDto'
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/WorkflowRunDto'
'400':
description: Malformed UUID in path parameter (`id`).
'409':
description: 'The run has already started: an earlier confirm was accepted.'
summary: Confirm upload and start workflow processing
tags:
- Workflows
/api/v1/workflows/runs/{id}/steps:
get:
operationId: WorkflowsController_getRunSteps_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/WorkflowStepRunDto'
'400':
description: Malformed UUID in path parameter (`id`).
summary: Get all step runs for a workflow run
tags:
- Workflows
/api/v1/workflows/runs/{id}/artifacts:
get:
operationId: WorkflowsController_getRunArtifacts_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/WorkflowRunArtifactDto'
'400':
description: Malformed UUID in path parameter (`id`).
security:
- api-key: []
- bearer: []
summary: Get artifacts for a workflow run
tags:
- Workflows
/api/v1/workflows/runs/{id}/review:
post:
description: Approve or reject a workflow run that is paused at a review step.
operationId: WorkflowsController_submitReview_v1
parameters:
- name: X-Korala-Mode
in: header
description: 'Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.'
required: false
schema:
type: string
enum:
- live
- test
- name: id
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ReviewWorkflowStepDto'
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/WorkflowRunWithStepsDto'
'400':
description: Malformed UUID in path parameter (`id`).
'409':
description: 'The review cannot be decided now: it is not the current paused review step, it already has a different decision, or the session no longer permits it. reason: session_expired when the session has expired (its status is expired, or the person had not finished when expiresAt passed), or when an approval would send a session in review back to in progress after expiresAt with a resubmissionMinimumWindowMinutes of 0; create a new session. A session in review never expires.'
content:
application/json:
schema:
type: object
properties:
message:
type: string
reason:
type: string
enum:
- session_expired
description: 'Set when the session has expired: create a new one.'
required:
- message
security:
- api-key: []
- bearer: []
summary: Submit review for a paused workflow run
tags:
- Workflows
components:
schemas:
StartWorkflowRunResponseDto:
type: object
properties:
runId:
type: string
description: The workflow run ID to poll for status
artifacts:
type: array
items:
$ref: '#/components/schemas/ArtifactUploadPlanDto'
status:
allOf:
- $ref: '#/components/schemas/WorkflowRunStatus'
required:
- runId
- artifacts
- status
WorkflowStepDto:
type: object
properties:
type:
allOf:
- $ref: '#/components/schemas/WorkflowStepType'
config:
type: object
additionalProperties: true
required:
- type
- config
WorkflowRunWithStepsDto:
type: object
properties:
sandbox:
type: boolean
description: 'Persisted execution mode: true for test data'
readOnly: true
id:
type: string
workflowDefinitionId:
type: string
organizationId:
type:
- string
- 'null'
status:
allOf:
- $ref: '#/components/schemas/WorkflowRunStatus'
inputData:
type:
- object
- 'null'
additionalProperties: true
outputData:
type:
- object
- 'null'
additionalProperties: true
currentStep:
type: number
errorMessage:
type:
- string
- 'null'
inputFileUrl:
type:
- string
- 'null'
inputFileMimeType:
type:
- string
- 'null'
startedAt:
format: date-time
type:
- string
- 'null'
completedAt:
format: date-time
type:
- string
- 'null'
createdAt:
format: date-time
type: string
stepRuns:
type: array
items:
$ref: '#/components/schemas/WorkflowStepRunDto'
required:
- sandbox
- id
- workflowDefinitionId
- status
- currentStep
- createdAt
- stepRuns
WorkflowRunStatus:
type: string
enum:
- pending
- running
- paused
- completed
- failed
ReviewWorkflowStepDto:
type: object
properties:
action:
type: string
enum:
- approve
- reject
description: Whether to approve or reject the review
stepRunId:
type: string
format: uuid
description: Exact paused step being reviewed. Supply it for safe retries; required after any earlier review has been decided on this run.
editedData:
type: object
additionalProperties: true
description: Edited field values (only for approve)
reason:
type: string
description: Reason for rejection (only for reject)
required:
- action
WorkflowStepRunStatus:
type: string
enum:
- pending
- running
- paused
- completed
- failed
- skipped
WorkflowStepType:
type: string
enum:
- capture
- ocr
- extract
- validate
- enrich
- check
- risk
- output
- review
- webhook
ConfirmWorkflowUploadDto:
type: object
properties:
metadata:
type: object
additionalProperties: true
description: Additional metadata about the upload
artifacts:
description: Artifact batch metadata for multi-artifact workflows
type: array
items:
$ref: '#/components/schemas/ConfirmArtifactUploadDto'
StartWorkflowRunDto:
type: object
properties:
inputData:
type: object
additionalProperties: true
description: Additional input data for the workflow
example:
customField: value
ArtifactCameraConfigDto:
type: object
properties:
preferredFacing:
type: string
enum:
- environment
- user
outputFormat:
type: string
enum:
- image/jpeg
- image/png
outputQuality:
type: number
maxResolution:
type: number
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
WorkflowRunArtifactDto:
type: object
properties:
id:
type: string
workflowRunId:
type: string
slotKey:
type: string
label:
type:
- string
- 'null'
mimeType:
type:
- string
- 'null'
captureMode:
type:
- string
- 'null'
sizeBytes:
type:
- number
- 'null'
status:
allOf:
- $ref: '#/components/schemas/WorkflowArtifactStatus'
url:
type:
- string
- 'null'
createdAt:
format: date-time
type: string
uploadedAt:
format: date-time
type:
- string
- 'null'
required:
- id
- workflowRunId
- slotKey
- status
- createdAt
PaginatedManagedWorkflowDefinitionsDto:
type: object
properties:
total:
type: number
description: Total number of workflows
page:
type: number
description: Current page number
limit:
type: number
description: Number of items per page
totalPages:
type: number
description: Total number of pages
data:
type: array
items:
$ref: '#/components/schemas/ManagedWorkflowDefinitionDto'
required:
- total
- page
- limit
- totalPages
- data
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
ManagedWorkflowDefinitionDto:
type: object
properties:
sandbox:
type: boolean
description: 'Persisted execution mode: true for test data'
readOnly: true
id:
type: string
organizationId:
type:
- string
- 'null'
name:
type: string
slug:
type: string
description:
type:
- string
- 'null'
steps:
type: array
items:
$ref: '#/components/schemas/WorkflowStepDto'
inputSchema:
type:
- object
- 'null'
additionalProperties: true
outputSchema:
type:
- object
- 'null'
additionalProperties: true
isPublic:
type: boolean
isActive:
type: boolean
createdAt:
format: date-time
type: string
updatedAt:
format: date-time
type: string
description: 'When what a run executes last changed: the steps, output sharing, the input or output schema, or the slug. A rename, a new description or switching the workflow on or off leaves it alone.'
outputSharing:
type: array
items:
$ref: '#/components/schemas/WorkflowOutputSharingRuleDto'
required:
- sandbox
- id
- name
- slug
- steps
- isPublic
- isActive
- createdAt
- updatedAt
- outputSharing
UpdateWorkflowDefinitionDto:
type: object
properties:
outputSharing:
maxItems: 100
description: Outputs restricted to the journey that starts this verification, including outputs of later steps in this workflow. Independent fields in the same step remain shared. An empty array clears restrictions.
type: array
items:
$ref: '#/components/schemas/WorkflowOutputSharingRuleDto'
name:
type: string
example: Updated Workflow Name
slug:
type: string
example: updated-slug
description:
type: string
example: Updated description
steps:
description: Array of step configurations
type: array
items:
type: string
inputSchema:
type: object
additionalProperties: true
description: Expected input schema (JSON Schema format)
outputSchema:
allOf:
- type: object
additionalProperties: true
description: Expected output schema (JSON Schema format). null removes the stored schema; leaving it out keeps it.
isPublic:
type: boolean
description: Whether this workflow is publicly accessible
isActive:
type: boolean
description: Whether this workflow is active
PaginatedWorkflowRunsDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/WorkflowRunDto'
total:
type: number
description: Total number of runs
page:
type: number
description: Current page number
limit:
type: number
description: Number of items per page
totalPages:
type: number
description: Total number of pages
required:
- data
- total
- page
- limit
- totalPages
WorkflowStepRunDto:
type: object
properties:
id:
type: string
workflowRunId:
type: string
stepIndex:
type: number
stepType:
allOf:
- $ref: '#/components/schemas/WorkflowStepType'
status:
allOf:
- $ref: '#/components/schemas/WorkflowStepRunStatus'
inputData:
type:
- object
- 'null'
additionalProperties: true
outputData:
type:
- object
- 'null'
additionalProperties: true
errorMessage:
type:
- string
- 'null'
processingTimeMs:
type:
- number
- 'null'
createdAt:
format: date-time
type: string
completedAt:
format: date-time
type:
- string
- 'null'
required:
- id
- workflowRunId
- stepIndex
- stepType
- status
- createdAt
WorkflowRunDto:
type: object
properties:
sandbox:
type: boolean
description: 'Persisted execution mode: true for test data'
readOnly: true
id:
type: string
workflowDefinitionId:
type: string
organizationId:
type:
- string
- 'null'
status:
allOf:
- $ref: '#/components/schemas/WorkflowRunStatus'
inputData:
type:
- object
- 'null'
additionalProperties: true
outputData:
type:
- object
- 'null'
additionalProperties: true
currentStep:
type: number
errorMessage:
type:
- string
- 'null'
inputFileUrl:
type:
- string
- 'null'
inputFileMimeType:
type:
- string
- 'null'
startedAt:
format: date-time
type:
- string
- 'null'
completedAt:
format: date-time
type:
- string
- 'null'
createdAt:
format: date-time
type: string
required:
- sandbox
- id
- workflowDefinitionId
- status
- currentStep
- createdAt
CreateWorkflowDefinitionDto:
type: object
properties:
outputSharing:
maxItems: 100
description: Outputs restricted to the journey that starts this verification, including outputs of later steps in this workflow. Independent fields in the same step remain shared. An empty array clears restrictions.
type: array
items:
$ref: '#/components/schemas/WorkflowOutputSharingRuleDto'
name:
type: string
example: Proof of Address Extraction
slug:
type: string
example: proof-of-address
description:
type: string
example: Extract and validate proof of address documents
steps:
description: Array of step configurations
example:
- type: capture
config:
acceptedTypes:
- application/pdf
maxSizeMb: 10
- type: ocr
config:
provider: auto
type: array
items:
type: string
inputSchema:
type: object
additionalProperties: true
description: Expected input schema (JSON Schema format)
outputSchema:
type: object
additionalProperties: true
description: Expected output schema (JSON Schema format)
isPublic:
type: boolean
description: Whether this workflow is publicly accessible for demos
default: false
required:
- name
- slug
- steps
WorkflowOutputSharingRuleDto:
type: object
properties:
stepIndex:
type: number
minimum: 0
maximum: 99
stepType:
type: string
description: Physical step type, or workflow for its approval result.
field:
type: string
description: A verification field alias or output field path.
maxLength: 211
scope:
type: string
enum:
- current_context
required:
- stepIndex
- field
- scope
WorkflowArtifactStatus:
type: string
enum:
- planned
- uploaded
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