Skip to main content

Workflows Service Methods

This section highlights the different methods that can be used to retrieve workflow resources through the DeepIDV API.

Table of Contents

Workflows by Organization Id

Get's all created workflows under an organization. Returned in DESCENDING order by created at date

Request

GET /workflow

Parameters

Headers

TypeParamsValuesDescription
HEADERx-api-key*stringThe users API Key

Response

Success (200)

{
"workflows": [
{
"id": "<workflow_id>",
"name": "<workflow_name>",
"createdAt": "<created_at>"
}
]
}
Response Fields
FieldTypeDescription
workflow_idstringThe unique id for a workflow
workflow_namestringThe name of the workflow
created_atstringThe date stamp of when the workflow was created

Sessions Sent Under Workflow

Get's all sessions sent under a workflow. Returned in DESCENDING order by created at date

Request

GET /workflow/{workflow_id}

Parameters

Headers

TypeParamsValuesDescription
HEADERx-api-key*stringThe users API Key

Response

Success (200)

{
"workflows": [
{
"id": "<workflow_id>",
"name": "<workflow_name>",
"createdAt": "<created_at>"
}
]
}
Response Fields
FieldTypeDescription
workflow_idstringThe unique id for a workflow
workflow_namestringThe name of the workflow
created_atstringThe date stamp of when the workflow was created

Error Status Reference

The DeepIDV API uses standard HTTP status codes to indicate the success or failure of requests. The following table describes the possible error responses you may encounter:

Status CodeError MessageDescription
400{"error": "Invalid Input."}The request parameters are invalid or missing required fields
401{"error": "Invalid API key."}The provided API key is invalid or expired
402{"error": "Insufficient funds or subscription."}Unauthorized - Payment required
403{"error": "API key is missing."}No API key was provided in the request
429{"error": "Rate limit exceeded."}Too many requests have been made in a short period
500{"error": "Something went wrong."}An unexpected error occurred on the server

Best Practices for Error Handling

  • Always validate required fields before sending requests
  • Implement retry logic with exponential backoff for rate limit errors (429)
  • Store error logs for debugging and monitoring purposes
  • Display user-friendly error messages in your application