Table of Contents
- Introduction
- Definitions
- Basic API Information
- Authentication
- HTTP Methods
- API Rate Limits
- Query Complexity Limits
- API Defaults
- Vodori Types
- Id Field Definitions
- Request Identity and Audit Context
- Example Queries
- Filtering
- Sorting
- Paging
- Retrieving Binary Content for Download
- Errors
- Write Result Codes
- Operation Error Codes
- HTTP Status Codes
Introduction
The Vodori API is a GraphQL based interface for accessing the content in Pepper Cloud. GraphQL based APIs are self-documenting to provide strong typing and minimize payload sizes for complex data graphs.
Vodori’s GraphQL schema is dynamically generated for each customer in real-time based on a combination of the product schema overlayed with types derived from a customer’s configuration. The benefit to an end-user is that the schema is specific to each customer and provides type safety and validation for the customer-specific configuration, which reduces errors and increases ease of use & discoverability.
We highly recommend reading through the official community documentation on GraphQL: https://graphql.org/learn/
Definitions
Alias - An alternative name provided for a query field to avoid conflicts during data fetching.
Argument - A value that is passed into a query.
Enumeration type - Enumeration types are a special kind of scalar that is restricted to a particular set of allowed values.
Field - A Field defines what data a given Type holds. Other languages might refer to it as property. A Field can also get arguments just like a function.
Non-Null - Marking a field as non-null is done by adding an exclamation mark, ! after the type name. This means that the service always expects to return a non-null value for this field.
OOB - Out of the box
Object Type - A type in a GraphQL schema that has one or more fields.
Query - A prebuilt type for querying our data. Every field in the Query type can be perceived as a query on its own. A Query field only returns data but doesn't change it.
SDL - The language we use to define our GraphQL schema
Scalar Type - A type that qualifies the data a GraphQL field resolves, a scalar represents the leaves of the query. GraphQL ships with some scalar types out of the box: Int, Float, String, Boolean and ID.
Schema - A GraphQL schema is at the center of any GraphQL server implementation and describes the functionality available to the clients which connect to it.
Type - GraphQL is a type-based query language. As such, a Type is the basic building block to model our domain. Every type consists of one or more fields.
Variables - Dynamic values that are passed to a query as a separate dictionary.
Vodori Type - A GraphQL Type that comes out of the box with the API for all customers.
Basic API Information
The API is available at the following URLs:
-
Sandbox & Production Environment: https://apis.vodori.com/api/graphql
Once authenticated, the schema for your tenant can be retrieved by sending a GET request to the following endpoint: https://apis.vodori.com/api/graphql/schema
The schema is represented as a JSON that includes all the query and document types as well as their fields and any supporting structures such as enums, or interfaces. We highly recommend using a GraphQL client such as the Altair GraphQL Client that will provide a way to explore the schema using a point-and-click interface with type-sense autocomplete.
Authentication
Systems that wish to use the Vodori API must be registered with Vodori in advance.
Note: All applications must be registered to access the Vodori API. Each application will be provisioned with its own set of credentials.
After registering the application, Vodori will provide customers with a Client Id and a secret.
Note: You must keep the client secret safe as it contains the information required to make API requests into your content repository.
Once a valid Client Id and secret have been provisioned, access tokens may be requested at the following URLs:
- Sandbox & Production Environment: https://prod-vodori-api.us.auth0.com/oauth/token
Example Sandbox or Production access token request:
curl --request POST --url https://prod-vodori-api.us.auth0.com/oauth/token --header 'content-type: application/json'
--data '{"client_id":"{YOUR_CLIENT_ID}","client_secret":"{YOUR_CLIENT_SECRET}","audience":"https://apis.vodori.com","grant_type":"client_credentials"}'Example access token response:
{"access_token":"{ACCESS_TOKEN}","expires_in":3600,"token_type":"Bearer"}Example Production schema request using a valid access token:
curl -i --request GET --url https://apis.vodori.com/api/graphql/schema
--header 'authorization: Bearer {access token}'Access tokens are valid for one hour. Applications should: 1.) Persist the access token provided by the endpoint, 2.) only request new tokens after the existing token has expired.
HTTP Methods
The Vodori API supports the POST request method. The Vodori API is available at a single URL for all GraphQL request types (POST) and customers.
- Sandbox & Production Environment: https://apis.vodori.com/api/graphql
The following query is used in the examples below, which retrieves the url, currentVersion, displayName, segment, and filename properties for a document with the passed in id and version:
Query:
query ($where: DocumentFilter!) {
document(where: $where) {
sys {
url
currentVersion
}
fields {
displayName
segment {
id
display
}
filename
}
}
}Variable
{
"where": {
"id": "611fd97ee5e7cb70c9fe117b",
"currentVersion": true,
"version": {
"major": 1,
"minor": 0
}
}
}Structuring a GraphQL POST request
A standard GraphQL POST request should use the application/json content type and include a JSON-encoded body of the following format. The query should be sent as a property in a JSON payload with the property name query. Variables can be added as an additional JSON property in the payload with the property name variables.
curl -g -X POST -H "Content-Type: application/json" -H "Authorization: Bearer {TOKEN}" \
-d '{"query":"query($where: DocumentFilter!) { document(where: $where) {sys {url currentVersion}fields {displayName segment{id display} filename} }}","variables":{"where": {"id": "123ab45cd6e7fg89h0ij112k","currentVersion": true,"version": {"major": 1,"minor": 0}}}}' \
https://apis.vodori.com/api/graphqlResponse
The response will be returned in the body of the response in JSON format.
{
"data":{
"document":{
"sys":{
"url":null,
"currentVersion":true
},
"fields":{
"displayName":"Example Document Display Name",
"Segment":{"id": "GBL", "display": "Global" },
"filename":"example-filename.pdf"
}
}
}
}Note: "errors" field will be present in responses should any request result in an error.
API Rate Limits
API Rate limits specify the number of requests a client can make to the Vodori API in a specific time frame.
There are two types of limits:
-
Rate
When a client gets rate limited, the API responds with the 429 Too Many Requests HTTP status code and HTTP header x-amzn-errortype: TooManyRequestsException. Decrease the number of requests per second to resolve this issue.
-
Quota
When quota limits are configured and a client hits their limit, the API responds with the 429 Too Many Requests HTTP status code and HTTP header x-amzn-errortype: LimitExceededException. Please contact Vodori if you reach your quota limit.
Query Complexity Limits
Query complexity limits specify the amount of data a client can request from the Vodori API in a single request. The complexity is calculated as the maximum number of entries and assets a query can potentially return. API calls may return up to 1,000 entities per request, and nest filters up to 3 deep. We recommend customers implement paging for larger datasets.
API Defaults
The Vodori API allows querying against all documents that are published and marked as approved for use in Vodori. Please contact your Vodori CSM with questions or additional configuration requirements.
Vodori Types
Vodori types are GraphQL Schema types that are built into the product. Every customer schema will include these types in their API.
Document
Document is the base GraphQL type available with the out-of-box configuration of the API. The Document type has 4 subtypes: fields, sys, data and audit.
The sys subtype contains fields that are maintained or calculated by the system. The fields subtype contains fields that are defined by Pepper Cloud and whose value is supplied by the user. The data subtype contains fields that are configured through Vodori on a per-customer basis. The audit subtype contains a list of audits that relate to the Document.
type Document implements DocumentType {
fields: Fields
sys: Sys
data: JSON
audit: [Audit]
}DocumentCollection
The DocumentCollection type is available for querying multiple Documents. The DocumentCollection has 4 fields available:
-
skip: the number of Documents skipped in the query
-
limit: the maximum amount of Documents returned in the DocumentCollection
-
total: the total number of Documents in the DocumentCollection
-
nodes: a list of the Document objects that were retrieved
type DocumentCollection implements Collection {
skip: Int!
limit: Int!
total: Int!
nodes: [Document]!
}Audit & Audit Action
The Audit type represents changes that have been made to a Document. The Audit type includes the following fields:
-
id: the audit ID
-
series: the document series ID that the audit pertains to
-
timestamp: the timestamp when the audit was written
-
userId: the ID of the user who performed the audited action, if any
-
version: the version of the document that the audit pertains to
-
data: a JSON of supplemental information about the audit
type Audit {
id: ID!
series: String
timestamp: Instant
userId: String
version: Version
action: AuditAction
data: JSON
}The AuditAction enum describes all possible audit actions that the API has access to for a Document. Currently, LIFECYCLE_TRANSITION audits are returned.
enum AuditAction {
LIFECYCLE_TRANSITION
}AuditCollection
The AuditCollection type is for querying for multiple Audits. The AuditCollection can be filtered on series, userId, and version.
type AuditCollection implements Collection {
skip: Int!
limit: Int!
total: Int!
nodes: [Audit]!
}Example Query
query($where: AuditFilter) {
auditCollection(where: $where) {
limit
skip
total
nodes {
series
data
userId
}
}
}Response
In this response, an auditCollection is returned containing a number of different audits. In the selected audits you can see that the data field contains changes that have occurred on the Document.
{
"data": {
"auditCollection": {
"limit": 1000,
"skip": 34,
"total": 629,
"nodes": [
{
"series": "610832714982f224b4878f71",
"data": {
"oldState": "DRAFT",
"newState": "REVIEW"
},
"userId": null
}
]
}
}
}Workflow
Workflow is the normalized representation of a Vodori MLR workflow. It includes the workflow identifier, related document identifiers and versions, workflow type, represented initiator, status, configured metadata, circulation summaries, and timestamps.
type Workflow {
workflowId: ID!
documentId: ID!
documentVersions: [String!]!
documentDisplayId: String
workflowUrl: String!
workflowType: String
workflowTypeName: String
initiator: KeyValuePair
status: WorkflowStatus!
statusDisplay: String
createdDate: Instant
lastModifiedDate: Instant
completedDate: Instant
circulations: [CirculationSummary!]!
workflowMetadata: JSON
}WorkflowCollection
WorkflowCollection is used to retrieve multiple workflows. It supports paging through skip, limit, and total, and returns workflows in nodes.
type WorkflowCollection implements Collection {
skip: Int!
limit: Int!
total: Int!
nodes: [Workflow!]!
}Id Field Definitions
Documents
id
A Document can go through multiple revisions (e.g. version 1.0, 1.1, 2.0). This set of document revisions is referred to as a series. Each revision of a Document in a series will have the same id. Thus the id field refers to the series of a Document, not a specific version of a Document. The id field is equal to the series field in an Audit or AuditCollection request.
documentId
The documentId is the generated id for a document based on customer-specific configurations (e.g. "PROMO-2-GBL-EN", or "COM-14-LATAM-ES"). These are the user-facing ids that are shown in Vodori.
Audits
id
The id is the unique id for a particular Audit entry.
series
The series in an Audit is equal to the id of a series of Documents.
Example response with each Id type:
[
{
"sys": {
"id": "123fcd16e5e7cb70c9fe10e7",
"lastModifiedDate": "2021-08-20T15:44:42.074Z",
"documentId": "ABC-10-GBL-EN",
"version": {
"major": 1,
"minor": 0
}
},
"audit": [
{
"id": "555fcf49e5e7cb70c9fe110a",
"series": "123fcd16e5e7cb70c9fe10e7",
"auditAction": "LIFECYCLE_TRANSITION"
}
]
},
{
"sys": {
"id": "123fcd16e5e7cb70c9fe10e7",
"lastModifiedDate": "2021-08-20T15:50:15.248Z",
"documentId": "ABC-10-GBL-EN",
"version": {
"major": 2,
"minor": 0
}
}
}
]Workflows
workflowId
The workflowId is the unique identifier for a Vodori workflow. It is returned by workflow queries and mutations and is used to retrieve, update, or cancel that workflow.
Request Identity and Audit Context
Lifecycle-changing workflow mutations use three identifiers with different purposes:
- initiatorEmail: Identifies the active Vodori user represented by the request. It is required for startWorkflow, startRevision, updateWorkflowInPreparation, updateWorkflowInReview, and cancelWorkflow. The email must belong to an active user in the same tenant who is authorized to perform the requested action. It is audit and authorization context, not a credential.
- requestId: A caller-owned idempotency key for one logical business command. A safe retry reuses the same requestId and identical business payload. Reusing an identifier with different content produces a conflict. Generate a new identifier only for a genuinely new command. The suggested format is UUID.
- correlationId: A Vodori-generated identifier for one API execution across Vodori services. Retain it with requestId and internal transaction records because it is the primary reference for support diagnosis and cross-service tracing.
Upload-contract operations refreshUpload and completeUpload use the upload identifier and completion contract rather than initiatorEmail or requestId. Their responses still include correlationId for tracing.
Preserve initiatorEmail, requestId, and correlationId with the customer transaction record. Together they distinguish the represented business user, the logical command, and the individual API execution.
Example Queries
Get a single Document
You can query for a single Document by passing in a DocumentFilter. With the DocumentFilter you are able to filter on the id, documentId, version, and currentVersion boolean of a Document. The query allows you to specify the fields that you want to receive in the response.
{
document(
where: {
documentId: "SIM-65627"
id: "61f44f9e5f9e97410390b05f"
version: { major: 1, minor: 0 }
currentVersion: true
}
) {
sys {
id
documentId
mimeType
contentLength
url
version {
major
minor
}
md5
currentVersion
lifecycle {
state
stateDisplay
current
date
}
contentClassification
lastModifiedBy
lastModifiedDate
createdBy
createdDate
}
fields {
displayName
filename
contentOwner {
id
display
}
kind
contentType
segment {
id
display
}
expirationDate
}
}
}Get a collection of Documents
You can query for a collection of Documents and set a limit to the number of Documents you want in the response. The result of the query will have the same shape as the query, which means that you will always get back what you expect.
query {
documentCollection(
limit: 10
where: { fieldsFilter: { kind: "simple-document" } }
) {
skip
limit
total
nodes {
sys {
documentId
}
fields {
segment {
id
display
}
displayName
kind
}
}
}
}Filtering
Filters are a GraphQL type that describes how a user can request data from the Vodori API.
Postfix Definitions
Postfixes are present on selected fields in order to help filter beyond equality. You can refer to the following table to get definitions for what each available postfix represents.
| Filter | Postfix |
|---|---|
| Equal to | |
| Not equal to | _not |
| Contains | _contains |
| In the list | _in |
| Not in the list | _not_in |
| Less than | _lt |
| Greater than | _gt |
| Exists | _exists |
Filter Types
DocumentFilter
The DocumentFilter is the filter that is used when retrieving a single Document. You can use a combination of the following 4 fields to ensure that you are able to get a unique Document.
input DocumentFilter {
id: String
documentId: String
currentVersion: Boolean
version: VersionInput
}DocumentCollectionFilter
The DocumentCollectionFilter is the filter used when retrieving a collection of Documents. You are able to combine Fields from both SysFilter and FieldsFilter to create a custom filter. You can also specify logical operators OR & AND to further filter down a collection of Documents.
input DocumentCollectionFilter {
sysFilter: SysFilter
fieldsFilter: FieldsFilter
OR: [DocumentCollectionFilter]
AND: [DocumentCollectionFilter]
}SysFilter
The SysFilter allows you to filter on system-defined values such as lifecycle, lastModifiedDate, etc. Fields with postfixes allow for more custom filtering like negation (_not), or less than and greater than for dates(_lt, _gt).
input SysFilter {
id: ID
documentId: String
documentId_in: [String]
documentId_not_in: [String]
mimeType: String
mimeType_in: [String]
mimeType_not_in: [String]
contentLength: Long
url: Url
version: VersionInput
md5: String
md5_in: [String]
md5_not_in: [String]
lifecycle: LifecycleInput
contentClassification: String
contentClassification_in: [String]
contentClassification_not_in: [String]
contentClassification_not: String
lastModifiedBy: String
lastModifiedBy_in: [String]
lastModifiedBy_not_in: [String]
lastModifiedBy_not: String
lastModifiedDate: Instant
lastModifiedDate_lt: Instant
lastModifiedDate_gt: Instant
createdBy: String
createdBy_in: [String]
createdBy_not_in: [String]
createdBy_not: String
createdDate: Instant
createdDate_lt: Instant
createdDate_gt: Instant
}FieldsFilter
The FieldsFilter allows you to filter on user-set values for the following available Fields. This filter allows for custom filtering based on postfixes on Fields. Refer to the postfix definitions to view what each postfix represents.
input FieldsFilter {
displayName: String
displayName_in: [String]
displayName_not_in: [String]
displayName_not: String
displayName_contains: String
filename: String
filename_in: [String]
filename_not_in: [String]
filename_not: String
filename_contains: String
contentOwner: String
contentOwner_in: [String]
contentOwner_not_in: [String]
contentOwner_not: String
kind: String
kind_in: [String]
kind_not_in: [String]
kind_not: String
segment: String
segment_in: [String]
segment_not_in: [String]
segment_not: String
expirationDate: Instant
expirationDate_lt: Instant
expirationDate_gt: Instant
}AuditFilter
The AuditFilter allows you to filter audits when querying the AuditCollection. The AuditFilter can filter on series, userId, and version.
input AuditFilter {
series: String
userId: String
version: VersionInput
}Filter Examples
Single Document
document(where: DocumentFilter!):DocumentTo retrieve a single document you can use a DocumentFilter to specify the id, documentId, currentVersion, or version of the Document.
{
document(
where: {
documentId: "SIM-65627"
id: "61f44f9e5f9e97410390b05f"
version: { major: 1, minor: 0 }
currentVersion: true
}
) {
sys {
id
documentId
version {
major
minor
}
md5
currentVersion
contentClassification
lastModifiedDate
createdBy
createdDate
}
fields {
displayName
filename
kind
segment {
id
display
}
expirationDate
}
}
}Collection of Documents
documentCollection(skip: Int = 0, limit: Int = 1000, where: DocumentCollectionFilter, sortBy: SortBy): DocumentCollection!To retrieve a collection of Documents requiring more complex queries, the DocumentCollectionFilter may be used to combine filters from Sys and Fields. Also, the DocumentCollectionFilter provides the option of specifying AND & OR operators for further flexibility.
In the following example, the Document query criteria are the following:
-
The display name contains “pdf”, and the kind field is equal to “simple-document”
-
OR the displayName contains “test”.
query {
documentCollection(
limit: 100
where: {
fieldsFilter: { displayName_contains: "pdf", kind: "simple-document" }
OR: [{ fieldsFilter: { displayName_contains: "test" } }]
}
) {
skip
limit
total
nodes {
sys {
documentId
createdDate
}
fields {
segment {
id
display
}
displayName
kind
}
}
}
}Sorting
Sorting is done through the use of the SortBy type and the AuditSortBy type. Both types allow you to select a sortableField to sort on, and an orderDirection of ASC (ascending) or DESC (descending). The sort types can be passed into a DocumentCollection or AuditCollection query.
Documents may be sorted by their createdDate, lastModifiedDate, or expirationDate.
Audits may be sorted by their timestamp.
input SortBy {
sortableField: SortableField!
orderDirection: OrderDirection!
}
enum SortableField {
# The date the document was created
CREATED
# The date the document was modified
MODIFIED
# The date the document will expire
EXPIRATION
}
input AuditSortBy {
sortableField: SortableAuditField!
orderDirection: OrderDirection!
}
enum SortableAuditField {
# The timestamp of the audit
TIMESTAMP
}
enum OrderDirection {
# Ascending
ASC
# Descending
DESC
}Default Sorting
If a SortBy variable is not specified when querying for Documents, the results will be sorted by lastModifiedDate descending.
If an AuditSortBy variable is not provided when querying for Audits, the results will be sorted by timestamp descending.
Sorting Example
In the following example, a SortBy type is passed in as a variable to the query. The SortBy type specifies that the DocumentCollection should be sorted on the CREATED field, and that the direction should be ASC.
query($where: DocumentCollectionFilter, $sortBy: SortBy) {
documentCollection(limit: 100, where: $where, sortBy: $sortBy) {
skip
total
limit
nodes {
sys {
documentId
lifecycle{
stateDisplay
state
date
}
}
fields {
displayName
}
}
}
}Variables
{
"where": {
"fieldsFilter": {
"kind": "sample-document"
}
},
"sortBy": {
"sortableField": "CREATED",
"orderDirection": "ASC"
}
}Paging
Paging is done through the combined use of the skip and limit arguments when querying for multiple Documents. The response from a DocumentCollection will always include the amount skipped, the limit of the query, and the total amount of Documents returned. If a SortBy type is not included in a query, default sorting will be applied.
Paging Example
documentCollection(skip: 50,limit: 50, where: $where, sortBy: $sortBy)Response
{
"data": {
"documentCollection": {
"limit": 50,
"skip": 50,
"total": 50,
"nodes": [
{
"sys": {
"version": {
"major": 1,
"minor": 0
},
"md5": "adc6a9f59c7e18283b2c8f276758927a",
"currentVersion": true,
"lastModifiedBy": "5ea0664fb3d34500016235db",
"createdBy": "5ea0664fb3d34500016235db"
}
},
. . .
]
}
}
}Retrieving Binary Content for Download
The Sys type contains a url field that can be called when querying for a single Document or multiple Documents. When a url is requested, the API will return a unique signed URL for each Document in the response. This URL can then be used to download the binary contents of the document.
Access Controls
- URLs have a lifetime of 15 minutes. When a URL expires, the content will no longer be accessible at that path, and a new URL must be retrieved from the API.
- URLs are only available for documents with binary content that are designated as approved for use in Vodori.
- URLs are not subject to API rate limits.
query($where: DocumentFilter!) {
document(where: $where) {
sys {
url
}
fields {
displayName
}
}
}Errors
If a query results in an error, an errors array is returned in the response, along with any data from the query. In the example below, a null value has been returned for a non-null field. The errors array has a message property describing the error and a path that leads from the root to the field that had the error.
{
"errors": [
{
"message": "The field at path '/document/sys/lifecycle' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'Lifecycle' within parent type 'Sys'",
"path": [
"document",
"sys",
"lifecycle"
]
}
],
"data": {
"document": {
"fields": {
"displayName": "Document1",
"filename": "Test"
},
"sys": null
}
}
}Write Result Codes
Write result codes appear in data.<operation>.code. Read the code together with message, nextAction, and errors[].
| Code | Meaning | Recommended action |
|---|---|---|
| SUCCESS | The requested business action completed synchronously | No retry |
| ACCEPTED | The action succeeded but upload or asynchronous work remains | Follow nextAction and operation status |
| VALIDATION_ERROR | Input or content contract is invalid | Correct the indicated field |
| AUTHORIZATION_ERROR | The machine client or represented user is not permitted | Correct provisioning or user context |
| NOT_FOUND | The referenced tenant-scoped resource does not exist | Verify identifiers and tenant |
| ELIGIBILITY_ERROR | The current workflow or document state does not permit the action | Refresh state and choose an eligible action |
| CONFLICT | Request identity, state, or upload completion conflicts with accepted data | Read current state; retry only when error.retryable is true |
| DOWNSTREAM_ERROR | A dependent Vodori service could not complete the request | Retry only when error.retryable is true |
Operation Error Codes
Public operation error codes appear in data.<operation>.errors[].code. Each error can also include message, field, retryable, and category.
| Error code or family | Meaning | Recommended action |
|---|---|---|
| WORKFLOW_WRITE_NOT_AUTHORIZED | The token lacks workflow write capability | Ask Vodori to enable write access for the M2M client. |
| INITIATOR_EMAIL_REQUIRED | A business mutation omitted user attribution | Supply an active tenant user email. |
| REQUEST_ID_REQUIRED | An idempotent mutation omitted requestId | Supply a stable unique command identifier. |
| DOCUMENT_ID_REQUIRED / WORKFLOW_ID_REQUIRED / DOCUMENT_VERSION_REQUIRED / WORKFLOW_TYPE_REQUIRED | Required resource identity or version is blank | Supply the value from current Vodori readback. |
| REASON_REQUIRED / EDIT_REASON_REQUIRED | A required business reason is blank | Supply a meaningful customer-visible reason. |
| DOCUMENT_TYPE_NOT_SUPPORTED / WORKFLOW_TYPE_NOT_SUPPORTED | The option is unavailable for this tenant or document type | Refresh workflowOptions and use a returned option. |
| SOURCE_BINARY_REQUIRED / RENDITION_REQUIRED | Configured content is required | Supply a valid binary descriptor and complete its upload. |
| SOURCE_BINARY_UNSUPPORTED / RENDITION_UNSUPPORTED | Content was supplied where the workflow does not accept it | Remove that descriptor. |
| RENDITION_REQUIRES_SOURCE_BINARY | A rendition cannot be provided without source content | Add sourceBinary or omit rendition. |
| PREPARATION_UPDATE_CHANGES_REQUIRED / REVIEW_UPDATE_CHANGES_REQUIRED | An update contained no effective metadata or content change | Provide at least one intended change. |
| REVIEW_SOURCE_HANDLING_REQUIRED / REVIEW_UPLOAD_REQUIRED / VODORI_MANAGED_UPLOAD_FORBIDDEN | Review source ownership and descriptors disagree | Align sourceHandling with API_UPLOAD or VODORI_MANAGED rules. |
| METADATA_SHAPE_INVALID / METADATA_FIELD_NAME_INVALID | Metadata is not a JSON object with string field names | Correct the metadata object. |
| FILENAME_REQUIRED / FILENAME_INVALID | Filename is blank, contains a path separator or nonprintable characters, or has no file name | Send a printable base filename only. |
| CONTENT_TYPE_REQUIRED / CONTENT_LENGTH_REQUIRED / CONTENT_LENGTH_INVALID / CONTENT_LENGTH_TOO_LARGE | The binary descriptor is missing or outside supported limits | Correct MIME type or byte count; maximum is 5 GiB. |
| MD5_HASH_REQUIRED / MD5_HASH_INVALID | MD5 is missing or not 32 hexadecimal characters | Calculate and send the full file MD5 hexadecimal digest. |
| UPLOAD_NOT_FOUND / UPLOAD_OPERATION_NOT_FOUND | Upload or operation identity is unknown in this tenant | Verify the identifier from the original response. |
| UPLOAD_ALREADY_COMPLETED | A completed contract was sent to refreshUpload | Use operation readback instead. |
| UPLOAD_EXPIRED | The contract expired before completion | Call refreshUpload and retry the unfinished upload. |
| UPLOAD_COMPLETION_TOKEN_INVALID | completionToken does not match the upload contract | Use the token from the current contract. |
| UPLOAD_PARTS_INCOMPLETE / UPLOAD_PARTS_INVALID / UPLOAD_PART_NUMBERS_INVALID / UPLOAD_PART_ETAG_INVALID | The part list or ETags do not match the contract | Upload every part and send exact part numbers and ETags. |
| UPLOAD_COMPLETION_MISMATCH | A repeated completeUpload request differs from the accepted completion | Replay the identical accepted completion or investigate state. |
| UPLOAD_TASK_FAILED / UPLOAD_DISPATCH_FAILED | Asynchronous content processing failed | Inspect failure.retryable and retry only as directed. |
| DOWNSTREAM_VALIDATION_FAILED / DOWNSTREAM_AUTHORIZATION_FAILED / DOWNSTREAM_RESOURCE_NOT_FOUND / DOWNSTREAM_CONFLICT / WORKFLOW_NOT_ELIGIBLE | A downstream workflow service rejected the request with a normalized public category | Correct input, authorization, identifiers, or current state. |
| DOWNSTREAM_REQUEST_FAILED | A dependent service failed without a more specific public code | Retry with backoff when retryable and retain correlationId. |
| TENANT_NOT_ELIGIBLE / TENANT_RESOLUTION_UNAVAILABLE | Tenant routing failed before GraphQL execution | Correct provisioning or retry the transient dependency failure. |
HTTP Status Codes
| Code | Message | Description |
|---|---|---|
| 400 | Bad Request | Indicates malformed JSON, an invalid GraphQL transport request, or another request that cannot be parsed. |
| 200 | The request was successful | |
| 200 | Validation Error | Indicates that the query was written incorrectly. Possible causes include, but are not limited to: incorrect spelling, missing required fields, incorrect syntax, query complexity exceeded. |
| 401 | Unauthorized | Indicates that the authorization token is missing, invalid, or expired |
| 403 | User is not authorized to access this resource | Indicates that the caller does not have access to the requested path, or that an unauthorized request method was used |
| 404 | Not Found | Indicates that there are no resources at the requested path |
| 405 | Method Not Allowed | Indicates that the request method used is not supported for the requested path. |
| 429 | Too Many Requests | Indicates that the number of requests per second have exceeded the API rate limit |
| 429 | Limit Exceeded | Indicates that the API quota limit has been reached. Please contact Vodori if you reach your quota limit. |
| 500 | Internal Server Error | Indicates that an error occurred on the server. |
| 503 | Service Temporarily Unavailable | Indicates that the API is currently unavailable. |
Comments
0 comments
Article is closed for comments.