This page provides an inventory of supported Vodori API queries and mutations. Use it with the tenant-specific GraphQL schema.
How to Use This Inventory
- Retrieve the current tenant schema from https://apis.vodori.com/api/graphql/schema before building or regenerating a client.
- Send GraphQL operations to https://apis.vodori.com/api/graphql using an OAuth 2.0 machine token supplied for the customer integration.
- Tenant configuration can add document-type-specific query fields and metadata shapes. Treat this inventory as the common contract and the current tenant schema as authoritative for configured fields.
Operation Summary
| Operation | Type | Purpose |
|---|---|---|
| document | Query | Retrieve one document revision or the current revision for a document series. |
| documentCollection | Query | Retrieve a pageable, filterable, sortable collection of documents. |
| auditCollection | Query | Retrieve a pageable collection of supported document audit records. |
| workflow | Query | Retrieve one normalized workflow by workflow identifier or document identifier. |
| workflowCollection | Query | Retrieve a pageable, filterable, sortable collection of normalized workflows. |
| workflowOptions | Query | Discover tenant-specific document types, workflow types, metadata fields, and content requirements available to the caller. |
| uploadOperation | Query | Read the durable processing status of a managed workflow upload operation. |
| startWorkflow | Mutation | Create a new workflow. |
| startRevision | Mutation | Create a major revision workflow for an existing document. |
| updateWorkflowInPreparation | Mutation | Apply metadata or content changes while keeping the workflow on the same document version in Preparation. |
| updateWorkflowInReview | Mutation | Incorporate review changes and create the next minor version in Preparation. |
| cancelWorkflow | Mutation | Cancel an active workflow without deleting its document or binaries. |
| refreshUpload | Mutation | Replace expired presigned URLs for an unfinished upload contract. |
| completeUpload | Mutation | Submit uploaded part ETags and start durable binary processing. |
Query Inventory
document
Retrieve one document revision or the current revision for a document series.
Filter options and inputs: where: DocumentFilter! with id, documentId, currentVersion, and version { major, minor }. Use an identifier plus currentVersion or version when a specific revision is required.
Special rules: Tenant-generated document types can expose additional typed customer fields. Retrieve the current tenant schema before selecting customer-specific fields.
Example
query Document($where: DocumentFilter!) {
document(where: $where) {
sys { id documentId version { major minor } currentVersion url }
fields { displayName filename }
data
}
}
Variables
{ "where": { "documentId": "DOC-123", "currentVersion": true } }documentCollection
Retrieve a pageable, filterable, sortable collection of documents.
Filter options and inputs: skip (default 0), limit (default 1000), where: DocumentCollectionFilter using sysFilter, fieldsFilter, OR, and AND; sortBy: SortBy using CREATED, MODIFIED, or EXPIRATION with ASC or DESC.
Special rules: Filters can be combined. Customer-generated document query fields and metadata shapes vary by tenant; use the current schema.
Example
query Documents($where: DocumentCollectionFilter, $skip: Int, $limit: Int) {
documentCollection(where: $where, skip: $skip, limit: $limit, sortBy: { sortableField: MODIFIED, orderDirection: DESC }) {
skip limit total
nodes { sys { id documentId version { major minor } } fields { displayName } }
}
}
Variables
{ "where": { "fieldsFilter": { "displayName_contains": "example" } }, "skip": 0, "limit": 25 }auditCollection
Retrieve a pageable collection of supported document audit records.
Filter options and inputs: skip, limit, where: AuditFilter with series, userId, and version; sortBy: AuditSortBy with TIMESTAMP and ASC or DESC.
Special rules: This is a supported document-audit projection, not a complete workflow audit export.
Example
query Audits($where: AuditFilter) {
auditCollection(where: $where, sortBy: { sortableField: TIMESTAMP, orderDirection: DESC }) {
skip limit total
nodes { id series timestamp userId version { major minor } auditAction data }
}
}
Variables
{ "where": { "series": "series-123" } }workflow
Retrieve one normalized workflow by workflow identifier or document identifier.
Filter options and inputs: where: WorkflowFilter! with workflowId or documentId.
Special rules: Use workflowId when available. The returned workflow includes normalized status, document references, timestamps, initiator, metadata, and circulation summaries.
Example
query Workflow($where: WorkflowFilter!) {
workflow(where: $where) {
workflowId documentId documentVersions workflowUrl
workflowType workflowTypeName status statusDisplay
initiator { id display }
createdDate lastModifiedDate completedDate
workflowMetadata
}
}
Variables
{ "where": { "workflowId": "workflow-123" } }workflowCollection
Retrieve a pageable, filterable, sortable collection of normalized workflows.
Filter options and inputs: skip (default 0), limit (default 25), where: WorkflowCollectionFilter with workflowIds, documentId, workflowTypes, initiatorEmail, statuses, lastModifiedDateFrom, and lastModifiedDateTo; sortBy: WorkflowSortBy.
Special rules: Default sort is last modified date descending. Workflow statuses are normalized public values.
Example
query Workflows($where: WorkflowCollectionFilter) {
workflowCollection(where: $where, limit: 25, sortBy: { field: LAST_MODIFIED_DATE, direction: DESC }) {
skip limit total
nodes { workflowId documentId workflowType status lastModifiedDate }
}
}
Variables
{ "where": { "statuses": [PREPARING, IN_REVIEW], "initiatorEmail": "user@example.com" } }workflowOptions
Discover tenant-specific document types, workflow types, metadata fields, and content requirements available to the caller.
Filter options and inputs: Optional where: WorkflowOptionsFilter with documentTypes.
Special rules: Requires workflow write access. Use returned aliases, accepted values, requirement flags, and content requirements rather than hard-coding another tenant configuration.
Example
query WorkflowOptions($where: WorkflowOptionsFilter) {
workflowOptions(where: $where) {
documentTypes {
documentType label contentRequirements { sourceBinary rendition }
documentMetadataFields { field label fieldType requirement acceptedValues { value label } }
createWorkflowTypes { workflowType label contentRequirements { sourceBinary rendition } }
revisionWorkflowTypes { workflowType label contentRequirements { sourceBinary rendition } }
}
}
}
Variables
{ "where": { "documentTypes": ["simple-document"] } }uploadOperation
Read the durable processing status of a managed workflow upload operation.
Filter options and inputs: id: ID! using operationId from the workflow mutation response.
Special rules: Poll until SUCCEEDED or FAILED. Respect retryAfterSeconds when present. Failure details are reported on operation.failure.
Example
query UploadOperation($id: ID!) {
uploadOperation(id: $id) {
correlationId
operation { id status updatedAt retryAfterSeconds workflow { workflowId status } failure { code message retryable category } }
errors { code message field retryable category }
}
}
Variables
{ "id": "operation-123" }Mutation Inventory
startWorkflow
Create a new workflow.
Filter options and inputs: No filter. input: requestId, initiatorEmail, documentType, workflowType, optional sourceBinary, rendition, workflowMetadata, and documentMetadata.
Special rules: documentType, workflowType, metadata, and content must follow workflowOptions. requestId is idempotent. initiatorEmail represents the active tenant user. PREPARING with nextAction NONE may still require a Vodori user to submit the workflow.
Example
mutation StartWorkflow($input: StartWorkflowInput!) {
startWorkflow(input: $input) {
correlationId code message nextAction
workflow { workflowId documentId documentVersions workflowUrl status }
uploads { operationId uploadId purpose expiresAt completionToken parts { partNumber url } }
errors { code message field retryable category }
}
}
Variables
{ "input": { "requestId": "erp-2026-000184", "initiatorEmail": "user@example.com", "documentType": "simple-document", "workflowType": "create-and-approve", "workflowMetadata": { "title": "Example approval" }, "documentMetadata": { "externalId": "ERP-184" } } }startRevision
Create a major revision workflow for an existing document.
Filter options and inputs: No filter. input: requestId, documentId, current documentVersion, workflowType, initiatorEmail, optional content descriptors, and sparse metadata overrides.
Special rules: Use an eligible revision workflow type from workflowOptions. documentVersion rejects stale requests. Content requirements can differ for claim revisions and other configured workflows.
Example
mutation StartRevision($input: StartRevisionInput!) {
startRevision(input: $input) {
correlationId code message nextAction
workflow { workflowId documentId documentVersions status }
uploads { operationId uploadId purpose expiresAt completionToken parts { partNumber url } }
errors { code message field retryable category }
}
}
Variables
{ "input": { "requestId": "revision-2026-0042", "initiatorEmail": "user@example.com", "documentId": "DOC-123", "documentVersion": "1.0", "workflowType": "major-revision" } }updateWorkflowInPreparation
Apply metadata or content changes while keeping the workflow on the same document version in Preparation.
Filter options and inputs: No filter. input: requestId, initiatorEmail, workflowId, documentId, documentVersion, and at least one metadata or content change.
Special rules: Omitted sparse fields are preserved. At least one effective change is required. Content descriptors must follow the configured workflow content rules.
Example
mutation UpdatePreparation($input: UpdateWorkflowInPreparationInput!) {
updateWorkflowInPreparation(input: $input) {
correlationId code message nextAction
workflow { workflowId documentId documentVersions status workflowMetadata }
uploads { operationId uploadId purpose completionToken parts { partNumber url } }
errors { code message field retryable category }
}
}
Variables
{ "input": { "requestId": "prep-update-0042", "initiatorEmail": "user@example.com", "workflowId": "workflow-123", "documentId": "DOC-123", "documentVersion": "1.0", "documentMetadata": { "externalId": "ERP-185" } } }updateWorkflowInReview
Incorporate review changes and create the next minor version in Preparation.
Filter options and inputs: No filter. input: requestId, initiatorEmail, workflowId, documentId, current documentVersion, editReason, sourceHandling when applicable, documentMetadata, optional workflowMetadata, sourceBinary, and rendition.
Special rules: editReason is required and retained with review activity and may appear in notifications. sourceHandling must match API_UPLOAD or VODORI_MANAGED ownership rules. Omitted sparse fields are preserved; explicit null can clear a nullable field.
Example
mutation UpdateReview($input: UpdateWorkflowInReviewInput!) {
updateWorkflowInReview(input: $input) {
correlationId code message nextAction
workflow { workflowId documentId documentVersions status }
uploads { operationId uploadId purpose completionToken parts { partNumber url } }
errors { code message field retryable category }
}
}
Variables
{ "input": { "requestId": "review-update-0042", "initiatorEmail": "user@example.com", "workflowId": "workflow-123", "documentId": "DOC-123", "documentVersion": "1.0", "editReason": "Incorporate reviewer feedback", "sourceHandling": "VODORI_MANAGED", "documentMetadata": { "campaign": "Updated campaign" } } }cancelWorkflow
Cancel an active workflow without deleting its document or binaries.
Filter options and inputs: No filter. input: requestId, workflowId, reason, and initiatorEmail.
Special rules: reason is required and retained with the cancellation record. Retry only with the same requestId and identical payload.
Example
mutation CancelWorkflow($input: CancelWorkflowInput!) {
cancelWorkflow(input: $input) {
correlationId code message
workflow { workflowId documentId status }
errors { code message field retryable category }
}
}
Variables
{ "input": { "requestId": "cancel-0042", "initiatorEmail": "user@example.com", "workflowId": "workflow-123", "reason": "Request withdrawn by upstream system" } }refreshUpload
Replace expired presigned URLs for an unfinished upload contract.
Filter options and inputs: No filter. input: uploadId.
Special rules: Use only for an unfinished contract. A completed contract cannot be refreshed. Upload replacement parts before calling completeUpload.
Example
mutation RefreshUpload($input: RefreshUploadInput!) {
refreshUpload(input: $input) {
correlationId
uploads { operationId uploadId purpose expiresAt completionToken parts { partNumber url headers } }
errors { code message field retryable category }
}
}
Variables
{ "input": { "uploadId": "upload-123" } }completeUpload
Submit uploaded part ETags and start durable binary processing.
Filter options and inputs: No filter. input: uploadId, completionToken, and every uploaded partNumber/eTag pair.
Special rules: Upload bytes directly to the presigned URLs without the Vodori bearer token. Preserve each ETag. An identical completion retry is safe; a changed retry produces UPLOAD_COMPLETION_MISMATCH.
Example
mutation CompleteUpload($input: CompleteUploadInput!) {
completeUpload(input: $input) {
correlationId
operation { id status retryAfterSeconds failure { code message retryable category } }
errors { code message field retryable category }
}
}
Variables
{ "input": { "uploadId": "upload-123", "completionToken": "COMPLETION_TOKEN", "parts": [{ "partNumber": 1, "eTag": "ETAG_FROM_PUT_RESPONSE" }] } }Common Write Response Fields
| Field | Meaning |
|---|---|
| correlationId | Server-generated identifier for one API execution. Retain it for support and cross-service tracing. |
| code | Stable write result code such as SUCCESS, ACCEPTED, VALIDATION_ERROR, or CONFLICT. |
| message | Human-readable summary of the result. |
| nextAction | Immediate upload action still required: NONE, COMPLETE_UPLOAD, or HUMAN_SOURCE_UPLOAD. |
| errors[] | Stable public errors with code, message, field, retryable, and category. |
| uploads[] | Managed upload contracts containing operationId, uploadId, completionToken, expiration, and presigned parts. |
Comments
0 comments
Article is closed for comments.