Endpoints for management of files
Hypatos REST API (2.68.0)
The Hypatos API is organized around REST. The majority of the endpoints provide CRUD functionality for resources. The API is also exposing Intent Resources which mimic user intents or actions.
The Hypatos API uses OAuth 2.0 Client Credential Grant to authenticate requests. Before making any requests to any endpoint a client must authenticate with the authorization server and requests an access token from the token endpoint.
POST /auth/token HTTP/1.1
Host: api.cloud.hypatos.ai
Content-Type: application/x-www-form-urlencoded
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
grant_type=client_credentialsAuthorization header contains client_id:client_secret encoded as explained in RFC Client Password section.
If the authorization server authenticated the client successfully, an access token is issued. Here is an example successful response:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Cache-Control: no-store
Pragma: no-cache
{
"access_token": "mF_9.B5f-4.1JqM",
"expires_in": 86400,
"scope": "enrichment.write files.read",
"token_type": "Bearer",
}This token can be used to authenticate the requests to API endpoints by sending a Bearer token in the Authorization HTTP header. The following example demonstrates how to use the access token to retrieve a list of documents.
GET /v2/documents HTTP/1.1
Host: api.cloud.hypatos.ai
Authorization: Bearer mF_9.B5f-4.1JqMChanges to this API are released regularly. We use Semantic Versioning 2.0.0 scheme for versioning so that the clients can identify any backward-incompatible changes easily. Briefly summarized one can say, if the MAJOR version of the new API version didn't change you can expect the new version to be backward-compatible.
In order to maximise the stability of our API, we institue rate limits for all of API endpoints. Clients who send too many requests over a given period of time will see error responses that show up as status code 429 Too Many Requests.
When you see error responses with status code 429, it means you exhausted your current quota and need to withhold from sending further requests until the quota is reset. We encourage you not to wait until you get a 429 error but to monitor your quota in each request. In each response you receive from the API, you will find HTTP headers providing the details about your current quota. Here is the list of the HTTP headers:
x-ratelimit-limit: Indicates the quota associated to the client in the current time-window followed by the description of the quota policy.x-ratelimit-remaining: Indicates the number of remaining requests in the current time-windowx-ratelimit-reset: Indicates the number of seconds until quota reset of the current time-window
Please note that IETF is currently in the process of publishing a standard for these headers. Please explore the draft for more details.
A basic technique to gracefully handle rate limits is watch for your quota permanently and increase the time between your request as the quota is decreasing. To recover from a 429 error you need a retry mechanism following an exponential backoff schedule.
Request
List agents for the authenticated company.
A summary projection: prompt and configuration are returned empty, toolIds null. systemPrompt and outputFormat are returned today but are expected to be omitted in a future release. Retrieve an agent by id for its complete representation. The namesAndVersions lookup returns prompt and configuration populated; toolIds is null in any list response.
- API EUhttps://api.cloud.hypatos.ai/v2/agents
- API UShttps://api.cloud.hypatos.com/v2/agents
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agents
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X GET \
'https://api.cloud.hypatos.ai/v2/agents?namesAndVersions=string&limit=20&offset=0&editor=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful Response
The page of results.
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Date when Agent was added
Date when Agent was last modified
Lightweight version summaries, populated when withVersionsMetadata=true
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
Source template agent identifier
Concrete source template agent version used for import
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
The limit applied to this page. Equal to the limit query parameter unless it exceeded the maximum allowed value, in which case it is that maximum.
The offset applied to this page (echoes the offset query parameter).
{ "data": [ { … } ], "limit": 20, "offset": 0, "totalCount": 137 }
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
- API EUhttps://api.cloud.hypatos.ai/v2/agents
- API UShttps://api.cloud.hypatos.com/v2/agents
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agents
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/agents \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"companyId": "string",
"name": "Agent name",
"version": "string",
"description": "Some description",
"prompt": "Hello GPT, how are you?",
"model": "b099cb97-4a5c-458f-8dcf-91139e731214",
"systemPrompt": "You are a helpful assistant.",
"outputFormat": {},
"editors": [
"string"
],
"configuration": {},
"toolIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"type": "BASIC"
}'Successful Response
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Date when Agent was added
Date when Agent was last modified
Lightweight version summaries, populated when withVersionsMetadata=true
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
Concrete source template agent version used for import
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "rootAgentId": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "name": "Agent name", "version": "Agent version", "description": "Some description", "prompt": "Hello GPT, how are you?", "model": "b099cb97-4a5c-458f-8dcf-91139e731214", "systemPrompt": "You are a helpful assistant.", "outputFormat": {}, "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "2023-10-27T11:38:18.000Z", "updatedBy": "Updater", "updatedAt": "2023-10-27T12:38:18.000Z", "editors": [ "string" ], "versions": [ {} ], "versionsMetadata": [ { … } ], "configuration": {}, "toolIds": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "isOotb": false, "sourceTemplateAgentId": "ab8eaaa7-db02-4453-a2db-8710c57d56dd", "sourceTemplateAgentVersion": "string", "type": "BASIC" }
- API EUhttps://api.cloud.hypatos.ai/v2/agents/{id}
- API UShttps://api.cloud.hypatos.com/v2/agents/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agents/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X GET \
'https://api.cloud.hypatos.ai/v2/agents/{id}?withVersions=false&withVersionsMetadata=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful Response
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Date when Agent was added
Date when Agent was last modified
Lightweight version summaries, populated when withVersionsMetadata=true
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
Concrete source template agent version used for import
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "rootAgentId": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "name": "Agent name", "version": "Agent version", "description": "Some description", "prompt": "Hello GPT, how are you?", "model": "b099cb97-4a5c-458f-8dcf-91139e731214", "systemPrompt": "You are a helpful assistant.", "outputFormat": {}, "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "2023-10-27T11:38:18.000Z", "updatedBy": "Updater", "updatedAt": "2023-10-27T12:38:18.000Z", "editors": [ "string" ], "versions": [ {} ], "versionsMetadata": [ { … } ], "configuration": {}, "toolIds": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "isOotb": false, "sourceTemplateAgentId": "ab8eaaa7-db02-4453-a2db-8710c57d56dd", "sourceTemplateAgentVersion": "string", "type": "BASIC" }
Request
Replace a custom agent. Persisted OOTB agents return HTTP 422; use root PATCH to customize them.
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
- API EUhttps://api.cloud.hypatos.ai/v2/agents/{id}
- API UShttps://api.cloud.hypatos.com/v2/agents/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agents/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X PUT \
'https://api.cloud.hypatos.ai/v2/agents/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"companyId": "string",
"name": "Agent name",
"version": "string",
"description": "Some description",
"prompt": "Hello GPT, how are you?",
"model": "b099cb97-4a5c-458f-8dcf-91139e731214",
"systemPrompt": "You are a helpful assistant.",
"outputFormat": {},
"editors": [
"string"
],
"configuration": {},
"toolIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"type": "BASIC"
}'Successful Response
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Date when Agent was added
Date when Agent was last modified
Lightweight version summaries, populated when withVersionsMetadata=true
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
Concrete source template agent version used for import
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "rootAgentId": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "name": "Agent name", "version": "Agent version", "description": "Some description", "prompt": "Hello GPT, how are you?", "model": "b099cb97-4a5c-458f-8dcf-91139e731214", "systemPrompt": "You are a helpful assistant.", "outputFormat": {}, "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "2023-10-27T11:38:18.000Z", "updatedBy": "Updater", "updatedAt": "2023-10-27T12:38:18.000Z", "editors": [ "string" ], "versions": [ {} ], "versionsMetadata": [ { … } ], "configuration": {}, "toolIds": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "isOotb": false, "sourceTemplateAgentId": "ab8eaaa7-db02-4453-a2db-8710c57d56dd", "sourceTemplateAgentVersion": "string", "type": "BASIC" }
Request
Patch by persisted kind: OOTB allows prompt/description/editors; custom keeps partial-update semantics.
For custom agents, omitted fields stay unchanged, explicit null clears nullable fields, and companyId and name are immutable. A custom-only or otherwise protected field sent to an OOTB agent is rejected with 422.
Partial-update body for an agent; send only the fields to change. name and companyId are immutable.
- API EUhttps://api.cloud.hypatos.ai/v2/agents/{id}
- API UShttps://api.cloud.hypatos.com/v2/agents/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agents/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
- ExternalAgentPatch
- ExternalOotbAgentPatch
curl -i -X PATCH \
'https://api.cloud.hypatos.ai/v2/agents/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "string",
"name": "string",
"description": "string",
"prompt": "string",
"model": "string",
"systemPrompt": "string",
"outputFormat": {},
"configuration": {},
"editors": [
"string"
],
"type": "string",
"toolIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}'Successful Response
Model UID used for this agent. If not specified, the default model will be used.
System prompt for the agent
Date when Agent was added
Date when Agent was last modified
Lightweight version summaries, populated when withVersionsMetadata=true
Ids of the tools assigned to this agent. On create/update: null or omitted leaves the assignments unchanged (a new agent starts with none), [] removes them all, and a list replaces them with exactly this set (a change creates a new agent version). Populated on by-id reads; null in list responses.
Concrete source template agent version used for import
The type of agent (BASIC, BASIC_V2, AGENTIC, METADATA, PAGE_BY_PAGE, LLM_OCR, STATIC, CASE_CLASSIFICATION, FILE_SUMMARIZATION, SCRIPT). SCRIPT runs author-provided TypeScript (from the prompt field, rendered with full mustache context) in a sandbox and returns JSON instead of calling an LLM.
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "rootAgentId": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "name": "Agent name", "version": "Agent version", "description": "Some description", "prompt": "Hello GPT, how are you?", "model": "b099cb97-4a5c-458f-8dcf-91139e731214", "systemPrompt": "You are a helpful assistant.", "outputFormat": {}, "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "2023-10-27T11:38:18.000Z", "updatedBy": "Updater", "updatedAt": "2023-10-27T12:38:18.000Z", "editors": [ "string" ], "versions": [ {} ], "versionsMetadata": [ { … } ], "configuration": {}, "toolIds": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "isOotb": false, "sourceTemplateAgentId": "ab8eaaa7-db02-4453-a2db-8710c57d56dd", "sourceTemplateAgentVersion": "string", "type": "BASIC" }
- API EUhttps://api.cloud.hypatos.ai/v2/agents/{id}
- API UShttps://api.cloud.hypatos.com/v2/agents/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agents/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X DELETE \
'https://api.cloud.hypatos.ai/v2/agents/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- API EUhttps://api.cloud.hypatos.ai/v2/agent-workflows
- API UShttps://api.cloud.hypatos.com/v2/agent-workflows
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agent-workflows
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X GET \
'https://api.cloud.hypatos.ai/v2/agent-workflows?projectId=string&limit=20&offset=0&editor=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful Response
The page of results.
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Date when Workflow was added
Id of the caller that created the workflow; an OAuth client id when created via this API
Id of the caller that last updated the workflow; an OAuth client id when updated via this API
Date when Workflow was last modified
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
The workflow's step configuration: the agents to run and how they are chained
Source workflow identifier for imported workflows
Concrete source workflow version used for import
The limit applied to this page. Equal to the limit query parameter unless it exceeded the maximum allowed value, in which case it is that maximum.
The offset applied to this page (echoes the offset query parameter).
{ "data": [ { … } ], "limit": 20, "offset": 0, "totalCount": 137 }
Request
Create a custom workflow; OOTB identity or source provenance in the request returns HTTP 422.
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
- API EUhttps://api.cloud.hypatos.ai/v2/agent-workflows
- API UShttps://api.cloud.hypatos.com/v2/agent-workflows
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agent-workflows
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/agent-workflows \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"companyId": "string",
"projects": "6299d91c04dd5dd5d81c99bb,63bc7bf22b5bc8f3d0625092",
"name": "Some very nice workflow",
"model": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9",
"description": "Some more verbose description",
"trainingCompanyId": "6081acde0377a83b93f05a10",
"trainingProjects": "6523b5bcac1cb469d7fc1bd9",
"similarityThreshold": 0.78,
"useOcrTextPages": false,
"editors": [
"string"
],
"similarityApi": true,
"useImages": false,
"maxNumTrainingDocuments": 2,
"bboxRegionDetectionMode": "WORD_MATCHING",
"workflowType": "EXTRACTION",
"workflowConfiguration": {}
}'Successful Response
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Date when Workflow was added
Id of the caller that created the workflow; an OAuth client id when created via this API
Id of the caller that last updated the workflow; an OAuth client id when updated via this API
Date when Workflow was last modified
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
The workflow's step configuration: the agents to run and how they are chained
Source workflow identifier for imported workflows
Concrete source workflow version used for import
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "projects": "6299d91c04dd5dd5d81c99bb,63bc7bf22b5bc8f3d0625092", "name": "Some very nice workflow", "model": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "description": "Some more verbose description", "trainingCompanyId": "6081acde0377a83b93f05a10", "trainingProjects": "6523b5bcac1cb469d7fc1bd9", "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "acme-integration", "updatedBy": "acme-integration", "updatedAt": "2023-10-27T12:38:18.000Z", "similarityThreshold": 0.78, "useOcrTextPages": false, "editors": [ "string" ], "similarityApi": true, "useImages": false, "maxNumTrainingDocuments": 2, "bboxRegionDetectionMode": "WORD_MATCHING", "workflowType": "EXTRACTION", "workflowConfiguration": {}, "version": "string", "sourceWorkflowId": "eb3ffc5d-a273-4862-91d2-41d306d39afe", "sourceWorkflowVersion": "string", "isOotb": false }
- API EUhttps://api.cloud.hypatos.ai/v2/agent-workflows/{id}
- API UShttps://api.cloud.hypatos.com/v2/agent-workflows/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agent-workflows/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X GET \
'https://api.cloud.hypatos.ai/v2/agent-workflows/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful Response
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Date when Workflow was added
Id of the caller that created the workflow; an OAuth client id when created via this API
Id of the caller that last updated the workflow; an OAuth client id when updated via this API
Date when Workflow was last modified
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
The workflow's step configuration: the agents to run and how they are chained
Source workflow identifier for imported workflows
Concrete source workflow version used for import
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "projects": "6299d91c04dd5dd5d81c99bb,63bc7bf22b5bc8f3d0625092", "name": "Some very nice workflow", "model": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "description": "Some more verbose description", "trainingCompanyId": "6081acde0377a83b93f05a10", "trainingProjects": "6523b5bcac1cb469d7fc1bd9", "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "acme-integration", "updatedBy": "acme-integration", "updatedAt": "2023-10-27T12:38:18.000Z", "similarityThreshold": 0.78, "useOcrTextPages": false, "editors": [ "string" ], "similarityApi": true, "useImages": false, "maxNumTrainingDocuments": 2, "bboxRegionDetectionMode": "WORD_MATCHING", "workflowType": "EXTRACTION", "workflowConfiguration": {}, "version": "string", "sourceWorkflowId": "eb3ffc5d-a273-4862-91d2-41d306d39afe", "sourceWorkflowVersion": "string", "isOotb": false }
Request
Replace a custom workflow. Persisted OOTB workflows return HTTP 422; use root PATCH to customize them.
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
- API EUhttps://api.cloud.hypatos.ai/v2/agent-workflows/{id}
- API UShttps://api.cloud.hypatos.com/v2/agent-workflows/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agent-workflows/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X PUT \
'https://api.cloud.hypatos.ai/v2/agent-workflows/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"companyId": "string",
"projects": "6299d91c04dd5dd5d81c99bb,63bc7bf22b5bc8f3d0625092",
"name": "Some very nice workflow",
"model": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9",
"description": "Some more verbose description",
"trainingCompanyId": "6081acde0377a83b93f05a10",
"trainingProjects": "6523b5bcac1cb469d7fc1bd9",
"similarityThreshold": 0.78,
"useOcrTextPages": false,
"editors": [
"string"
],
"similarityApi": true,
"useImages": false,
"maxNumTrainingDocuments": 2,
"bboxRegionDetectionMode": "WORD_MATCHING",
"workflowType": "EXTRACTION",
"workflowConfiguration": {},
"version": "string"
}'Successful Response
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Date when Workflow was added
Id of the caller that created the workflow; an OAuth client id when created via this API
Id of the caller that last updated the workflow; an OAuth client id when updated via this API
Date when Workflow was last modified
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
The workflow's step configuration: the agents to run and how they are chained
Source workflow identifier for imported workflows
Concrete source workflow version used for import
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "projects": "6299d91c04dd5dd5d81c99bb,63bc7bf22b5bc8f3d0625092", "name": "Some very nice workflow", "model": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "description": "Some more verbose description", "trainingCompanyId": "6081acde0377a83b93f05a10", "trainingProjects": "6523b5bcac1cb469d7fc1bd9", "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "acme-integration", "updatedBy": "acme-integration", "updatedAt": "2023-10-27T12:38:18.000Z", "similarityThreshold": 0.78, "useOcrTextPages": false, "editors": [ "string" ], "similarityApi": true, "useImages": false, "maxNumTrainingDocuments": 2, "bboxRegionDetectionMode": "WORD_MATCHING", "workflowType": "EXTRACTION", "workflowConfiguration": {}, "version": "string", "sourceWorkflowId": "eb3ffc5d-a273-4862-91d2-41d306d39afe", "sourceWorkflowVersion": "string", "isOotb": false }
Request
Patch by persisted kind after ownership is established.
OOTB workflows accept only workflowConfiguration.steps, name, description, projects, and editors; a protected field sent to an OOTB workflow is rejected with 422. Custom workflows keep their existing partial-update contract.
Partial-update body for a workflow; send only the fields to change. companyId is immutable.
- API EUhttps://api.cloud.hypatos.ai/v2/agent-workflows/{id}
- API UShttps://api.cloud.hypatos.com/v2/agent-workflows/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agent-workflows/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
- ExternalWorkflowPatch
- ExternalOotbWorkflowPatch
curl -i -X PATCH \
'https://api.cloud.hypatos.ai/v2/agent-workflows/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "string",
"projects": "string",
"name": "string",
"model": "string",
"description": "string",
"trainingCompanyId": "string",
"trainingProjects": "string",
"similarityThreshold": 0,
"useOcrTextPages": true,
"editors": [
"string"
],
"similarityApi": true,
"useImages": true,
"maxNumTrainingDocuments": 0,
"bboxRegionDetectionMode": "WORD_MATCHING",
"workflowType": "EXTRACTION",
"workflowConfiguration": {}
}'Successful Response
Comma separated list of projectIds
Model id used for prompting
Description of Workflow
Comma separated list of training projectIds used as source documents repository
Date when Workflow was added
Id of the caller that created the workflow; an OAuth client id when created via this API
Id of the caller that last updated the workflow; an OAuth client id when updated via this API
Date when Workflow was last modified
Defines the minimum similarity between the uploaded document and context examples from the training project
Ability to use ocrTextPages (Google OCR) in the prompt
Ability to set similarity service API for document training data
Ability to set images usage to workflow
Maximum number of training documents used in the workflow
The bounding boxes region detection mode of prompting-settings
Type of workflow (EXTRACTION returns value-form entities, PREPROCESSING returns raw JSON)
The workflow's step configuration: the agents to run and how they are chained
Source workflow identifier for imported workflows
Concrete source workflow version used for import
{ "id": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "companyId": "6081acde0377a83b93f05a10", "projects": "6299d91c04dd5dd5d81c99bb,63bc7bf22b5bc8f3d0625092", "name": "Some very nice workflow", "model": "dcbc075f-a99c-4199-86ed-fb4ed5684dd9", "description": "Some more verbose description", "trainingCompanyId": "6081acde0377a83b93f05a10", "trainingProjects": "6523b5bcac1cb469d7fc1bd9", "createdAt": "2023-10-27T11:38:18.000Z", "createdBy": "acme-integration", "updatedBy": "acme-integration", "updatedAt": "2023-10-27T12:38:18.000Z", "similarityThreshold": 0.78, "useOcrTextPages": false, "editors": [ "string" ], "similarityApi": true, "useImages": false, "maxNumTrainingDocuments": 2, "bboxRegionDetectionMode": "WORD_MATCHING", "workflowType": "EXTRACTION", "workflowConfiguration": {}, "version": "string", "sourceWorkflowId": "eb3ffc5d-a273-4862-91d2-41d306d39afe", "sourceWorkflowVersion": "string", "isOotb": false }
- API EUhttps://api.cloud.hypatos.ai/v2/agent-workflows/{id}
- API UShttps://api.cloud.hypatos.com/v2/agent-workflows/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/agent-workflows/{id}
- curl
- Java
- Python
- Node.js
- JavaScript
curl -i -X DELETE \
'https://api.cloud.hypatos.ai/v2/agent-workflows/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'