Download OpenAPI specification:
| name | string Filters documents by name, excluding any prefix. |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
| docset.id | string Filters documents by docset. |
| status | string (document-status) Enum: "New" "Ingesting" "Ingested" "Processing" "Ready" "Error" "OverQuota" Example: status=Ready Filters documents by status. |
| prefix | string Filters documents by |
| minPages | integer <int32> >= 0 Filters documents by minimum number of pages in the document. |
| maxPages | integer <int32> >= 0 Filters documents by maximum number of pages in the document. |
| minSize | integer <int32> >= 0 Filters documents by minimum file size in bytes. |
| maxSize | integer <int32> >= 0 Filters documents by maximum file size in bytes. |
| samples | boolean Default: false Whether or not to return sample documents. |
| metadata.{key} | string^metadata\.\w{1,100}$ Filters documents by metadata value (e.g. |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/documents
{- "documents": [
- {
- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}
], - "errors": {
- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/documents/ID
{- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}The maximum request size is 300 MB. The allowed file extensions are: .pdf, .docx, .doc, .txt, .html, and .zip.
For zip archive uploads, only files with .pdf, .docx, .txt, .html, or .doc extensions within the archive will be processed.
file must be the final form part.
| docset.id | string |
object (document-metadata-request) | |
| file required | string <binary> |
curl --header "Authorization: Bearer <API-KEY>" \ --form docset.id=ID \ --form metadata='{"metadata": [{"key": "my key", "value": "my value"}]}' \ --form file=@document.pdf \ https://api.docugami.com/v1preview1/documents/content
{- "documents": [
- {
- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}
], - "errors": {
- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}
}curl --header "Authorization: Bearer <API-KEY>" \ --header "Accept: application/octet-stream" \ --remote-name \ --remote-header-name \ https://api.docugami.com/v1preview1/documents/ID/content
| id required | string |
| pageNumber required | integer |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/documents/ID/pages/PAGE-NUMBER
{- "number": 1,
- "width": 1200,
- "height": 2550,
- "document": {
- "id": "h6qpx6eofeez",
}
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/documents/ID/pages/PAGE-NUMBER
{- "pages": [
- {
- "number": 1,
- "width": 1200,
- "height": 2550,
- "document": {
- "id": "h6qpx6eofeez",
}
}
], - "document": {
- "id": "h6qpx6eofeez",
}
}| id required | string |
| pageNumber required | integer |
curl --header "Authorization: Bearer <API-KEY>" \ --head \ --request HEAD \ https://api.docugami.com/v1preview1/documents/ID/pages/PAGE-NUMBER/content
| id required | string |
| pageNumber required | integer |
curl --header "Authorization: Bearer <API-KEY>" \ --header "Accept: application/octet-stream" \ --remote-name \ --remote-header-name \ https://api.docugami.com/v1preview1/documents/ID/pages/PAGE-NUMBER/content
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/documents/ID/metadata
{- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
], - "document": {
- "id": "h6qpx6eofeez",
}
}| id required | string |
required | Array of objects (document-metadata-array) <= 10 properties A collection of key-value pairs associated with a document. |
{- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}{- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
], - "document": {
- "id": "h6qpx6eofeez",
}
}| id required | string |
required | Array of objects (document-metadata-array) <= 10 properties A collection of key-value pairs associated with a document. |
{- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}{- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
], - "document": {
- "id": "h6qpx6eofeez",
}
}Creates an upload session for a large file. The client will use the returned sessionId to upload chunks and finalize the upload.
| docset.id | string |
object (document-metadata-request) | |
| fileName required | string |
| fileSize required | integer <int64> |
curl --header "Authorization: Bearer <API-KEY>" \ --form docset.id=ID \ --form metadata='{"metadata": [{"key": "my key", "value": "my value"}]}' \ --form fileName=document.pdf \ --form fileSize=104857600 \ https://api.docugami.com/v1preview1/documents/uploads/session
{- "sessionId": "abc123",
- "fileName": "document.pdf",
- "chunkSize": 5242880,
- "expiration": "2025-11-14T10:22:43Z"
}Uploads a chunk of the file to the session. Chunks can be uploaded in any order, as long as the correct byteOffset is provided for each chunk.
Validation Rules:
byteOffset must align to the configured chunkSize (i.e., byteOffset % chunkSize == 0).byteOffset must be within the range 0 <= byteOffset < fileSize.chunkSize.fileSize - byteOffset.400 Bad Request with an appropriate error message.| sessionId required | string |
| byteOffset required | integer <int64> |
| file required | string <binary> |
curl --header "Authorization: Bearer <API-KEY>" \ --form byteOffset=0 \ --form file=@chunk1.bin \ https://api.docugami.com/v1preview1/documents/uploads/session/abc123/chunk
{- "sessionId": "abc123",
- "blockId": "MjVhMTQz",
- "status": "in-progress"
}Completes the upload process and assembles the chunks into the final document. Once finalized, the file is ingested by Docugami for processing and classification into the appropriate docset(s).
| sessionId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ -X POST \ https://api.docugami.com/v1preview1/documents/uploads/session/abc123/finalize
{- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}Creates a short-lived URL that can be used to upload a single document without authentication. The URL embeds the target docset, metadata, and filename so the upload endpoint requires no additional parameters.
fileName is required and must match exactly when uploading via the returned URL.docset.id accepts a single docset ID (direct assignment) or a |-delimited list of IDs (classification).timeToLive defaults to 600 seconds (10 minutes); valid range is 60–14400 seconds.Consumed state.| fileName required | string Name of the file that will be uploaded. Must match the filename sent during upload. |
| docset.id | string Optional. A single docset ID assigns the document to that docset directly.
A |
| metadata | string Optional JSON-serialized metadata object (same shape as |
| timeToLive | integer Seconds until the URL expires. Minimum 60, maximum 14400. Defaults to 600. |
{- "fileName": "contract.pdf",
- "docset.id": "abc123",
- "metadata": "{\"metadata\": [{\"key\": \"version\", \"value\": \"1.0\"}]}",
- "timeToLive": 600
}{- "expiresAt": "2025-11-14T10:22:43"
}Returns the current state of a temporary upload URL.
| temporaryUrlId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/documents/temporaryUrl/ID
{- "fileName": "contract.pdf",
- "expiresAt": "2025-11-14T10:22:43",
- "state": "Created"
}Revokes a temporary upload URL before it is used or expires.
| temporaryUrlId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --request DELETE \ https://api.docugami.com/v1preview1/documents/temporaryUrl/ID
Uploads a document using a temporary URL created by POST /documents/temporaryUrl. No authentication is required.
fileName in the multipart body must exactly match the filename set when the temporary URL was created.Consumed state.file must be the only and final form part — docset and metadata were captured when the URL was created.| temporaryUrlId required | string |
| file required | string <binary> Binary file. Must be a .pdf, .docx, .doc, .html, .txt, or .zip. Must be the only form part. |
curl --form file=@contract.pdf \ https://api.docugami.com/v1preview1/documents/temporaryUrl/ID/content
{- "documents": [
- {
- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}
], - "errors": {
- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}
}Creates a chunked upload session for a large file using a temporary URL. No authentication is required.
The file extension must be .pdf, .docx, or .doc; zip, text, and HTML files are not supported for chunked uploads.
Use the returned uploadUrl and finalizeUrl to upload chunks and complete the upload.
| temporaryUrlId required | string |
| fileSize required | integer <int64> Total size of the file in bytes. |
curl --form fileSize=104857600 \ https://api.docugami.com/v1preview1/documents/temporaryUrl/ID/uploads/session
{- "sessionId": "abc123",
- "fileName": "contract.pdf",
- "chunkSize": 5242880,
- "expiration": "2025-11-14T10:22:43Z"
}Uploads a chunk of the file to an existing session. No authentication is required.
Chunks can be uploaded in any order as long as the correct byteOffset is provided.
Validation Rules:
byteOffset must align to the configured chunkSize (i.e., byteOffset % chunkSize == 0).byteOffset must be within the range 0 <= byteOffset < fileSize.chunkSize.fileSize - byteOffset.| temporaryUrlId required | string |
| sessionId required | string |
| byteOffset required | integer <int64> Byte offset where this chunk starts. |
| file required | string <binary> Chunk of the file. |
curl --request PUT \ --form byteOffset=0 \ --form file=@chunk1.bin \ https://api.docugami.com/v1preview1/documents/temporaryUrl/ID/uploads/session/abc123/chunk
{- "sessionId": "abc123",
- "blockId": "MjVhMTQz",
- "status": "in-progress"
}Completes the upload and assembles the chunks into the final document. No authentication is required.
Once finalized, the file is ingested by Docugami for processing and classification into the appropriate docset(s).
The temporary URL transitions to Consumed state on success.
| temporaryUrlId required | string |
| sessionId required | string |
curl --request POST \ https://api.docugami.com/v1preview1/documents/temporaryUrl/ID/uploads/session/abc123/finalize
{- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}| name | string Filters docsets by name. |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
| minDocuments | integer <int32> Filters docsets by minimum number of documents in the set. |
| maxDocuments | integer <int32> Filters docsets by maximum number of documents in the set. |
| samples | boolean Default: false Whether or not to return sample docsets. |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets
{- "docsets": [
- {
- "id": "gmk07l49tk2c",
- "name": "Service Agreements",
- "updatedAt": "2023-03-06T17:41:50+00:00",
- "documentCount": 6,
- "createdAt": "2023-03-06T17:23:25.9993034+00:00",
- "isSample": false
}
],
}| name required | string The name of the docset. |
| documents | Array of strings Optional collection of document ids to include in the new docset. Documents will be moved if they already belong to a docset. |
{- "name": "Loss Runs",
- "documents": [
- "bn0px5iaym7z"
]
}{- "id": "gmk07l49tk2c",
- "name": "Service Agreements",
- "updatedAt": "2023-03-06T17:41:50+00:00",
- "documentCount": 6,
- "createdAt": "2023-03-06T17:23:25.9993034+00:00",
- "isSample": false
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/ID
{- "id": "gmk07l49tk2c",
- "name": "Service Agreements",
- "updatedAt": "2023-03-06T17:41:50+00:00",
- "documentCount": 6,
- "createdAt": "2023-03-06T17:23:25.9993034+00:00",
- "isSample": false
}| id required | string |
| prefix | string Filters documents by |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
| status | string (document-status) Enum: "New" "Ingesting" "Ingested" "Processing" "Ready" "Error" "OverQuota" Example: status=Ready Filters documents by status. |
| minPages | integer <int32> >= 0 Filters documents by minimum number of pages in the document. |
| maxPages | integer <int32> >= 0 Filters documents by maximum number of pages in the document. |
| minSize | integer <int32> >= 0 Filters documents by minimum file size in bytes. |
| maxSize | integer <int32> >= 0 Filters documents by maximum file size in bytes. |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/ID/documents
{- "documents": [
- {
- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}
], - "errors": {
- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}
}The document is moved if it is already part of a docset.
| docsetId required | string |
| documentId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --method PUT \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/documents/DOCUMENT-ID
{- "id": "gmk07l49tk2c",
- "name": "Service Agreements",
- "updatedAt": "2023-03-06T17:41:50+00:00",
- "documentCount": 6,
- "createdAt": "2023-03-06T17:23:25.9993034+00:00",
- "isSample": false
}| docsetId required | string |
| documentId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/documents/DOCUMENT-ID
{- "id": "bn0px5iaym7z",
- "name": "Master Services Agreement.pdf",
- "status": "Ready",
- "createdAt": "2023-03-06T17:23:26.8324745+00:00",
- "size": 119907,
- "processedAt": "2023-03-06T17:30:30.9086048+00:00",
- "pageCount": 9,
- "error": {
- "title": "Encrypted File",
- "detail": "string"
}, - "docset": {
- "id": "gmk07l49tk2c",
}, - "isSample": false,
- "metadata": [
- {
- "key": "my key",
- "value": "my value"
}
]
}Removing a document from a docset does not delete the document.
| docsetId required | string |
| documentId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --method DELETE \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/documents/DOCUMENT-ID
| docsetId required | string |
| documentId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --header "Accept: application/xml" \ --remote-name \ --remote-header-name \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/documents/DOCUMENT-ID/dgml
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/properties
{- "properties": [
- {
- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
}
]
}| docsetId required | string |
| label required | string Labels must conform to XML 1.0 rev 4 naming conventions. Exceptions include leading digits and spaces. |
{- "label": "my label"
}{- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
}| docsetId required | string |
| propertyId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/properties/ID
{- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
}| docsetId required | string |
| propertyId required | string |
| label required | string Labels must conform to XML 1.0 rev 4 naming conventions. Exceptions include leading digits and spaces. |
{- "label": "new label"
}{- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
}| docsetId required | string |
| documentId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/document-properties/DOCUMENT-ID
{- "properties": [
- {
- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
- "value": "3536 Cheyenne Crossroad, South Carolina, Chapin 92704",
}
]
}| docsetId required | string |
| documentId required | string |
| label required | string Labels must conform to XML 1.0 rev 4 naming conventions. Exceptions include leading digits and spaces. |
| value required | string The value of the property. |
{- "label": "my label",
- "value": "my value"
}{- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
- "value": "3536 Cheyenne Crossroad, South Carolina, Chapin 92704",
}| docsetId required | string |
| propertyId required | string |
| documentId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/docsets/DOCSET-ID/properties/PROPERTY-ID/documents/DOCUMENT-ID
{- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
- "value": "3536 Cheyenne Crossroad, South Carolina, Chapin 92704",
}| docsetId required | string |
| propertyId required | string |
| documentId required | string |
| value required | string The value of the property. |
{- "value": "new value"
}{- "id": "bdaf7992xcz2",
- "labelId": "bn0px5iaym7z",
- "label": "address",
- "value": "3536 Cheyenne Crossroad, South Carolina, Chapin 92704",
}| name | string Filters projects by name. |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
| docset.id | string Filters projects by docset. |
| type | string (project-type) Enum: "TabularReport" "Abstract" "ExcelExport" "AssistedAuthoring" "AutomationAnywhereDocumentAssembly" "AutomationAnywhereWorkFlow" "ZapierWorkFlow" "UiPathWorkFlow" "UiPathDocumentAssembly" "PowerAutomateWorkFlow" "DiligenceReport" Example: type=TabularReport Filters projects by type. |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/projects
{- "projects": [
- {
- "id": "0gjiwhvpeqcg",
- "name": "My Report",
- "type": "TabularReport",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "artifacts": {
- "version": "1",
}
}
],
}| name required | string The name of the project. |
| type required | any (project-type) Enum: "TabularReport" "Abstract" "ExcelExport" "AssistedAuthoring" "AutomationAnywhereDocumentAssembly" "AutomationAnywhereWorkFlow" "ZapierWorkFlow" "UiPathWorkFlow" "UiPathDocumentAssembly" "PowerAutomateWorkFlow" "DiligenceReport" |
| docset.id required | string The ID of the docset this project will be associated with. |
Array of objects (project-item) | |
| autoConfirmDocuments | boolean Whether or not incoming documents will be auto confirmed for a published project. |
{- "name": "Loss Runs",
- "type": "TabularReport",
- "docset.id": "string",
- "items": [
- {
- "label": "string"
}
], - "autoConfirmDocuments": true
}{- "id": "0gjiwhvpeqcg",
- "name": "My Report",
- "type": "TabularReport",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "artifacts": {
- "version": "1",
}
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/projects/ID
{- "id": "0gjiwhvpeqcg",
- "name": "My Report",
- "type": "TabularReport",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "artifacts": {
- "version": "1",
}
}| id required | string |
| autoConfirmDocuments | boolean Whether or not incoming documents will be auto confirmed for a published project. |
{- "autoConfirmDocuments": true
}{- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}| id required | string |
| autoConfirmDocuments required | boolean Whether or not incoming documents will be auto confirmed for a published project. |
{- "autoConfirmDocuments": true
}{- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}{- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}| projectId required | string |
| version | string Examples: 1 2 latest |
| name | string Filters artifacts by name. |
| document.id | string Filters artifacts by document id. |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
| minSize | integer <int32> Filters artifacts by minimum file size in bytes. |
| maxSize | integer <int32> Filters artifacts by maximum file size in bytes |
| isReadOnly | boolean Filters artifacts by read-only status. |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/projects/ID/artifacts
{- "artifacts": [
- {
- "id": "sydeqizookql",
- "name": "document.xml",
- "size": 263206,
- "version": "1",
- "createdAt": "2023-03-21T23:15:32+00:00",
- "updatedAt": "2023-03-21T23:15:32+00:00",
- "isReadOnly": true,
- "document": {
- "id": "h6qpx6eofeez",
},
}
],
}| projectId required | string |
| version required | string Examples: 1 2 latest |
| artifactId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/projects/PROJECT-ID/artifacts/latest/ARTIFACT-ID
{- "id": "sydeqizookql",
- "name": "document.xml",
- "size": 263206,
- "version": "1",
- "createdAt": "2023-03-21T23:15:32+00:00",
- "updatedAt": "2023-03-21T23:15:32+00:00",
- "isReadOnly": true,
- "document": {
- "id": "h6qpx6eofeez",
},
}Read-only artifacts cannot be deleted.
| projectId required | string |
| version required | string Examples: 1 2 latest |
| artifactId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --request DELETE \ https://api.docugami.com/v1preview1/projects/PROJECT-ID/artifacts/latest/ARTIFACT-ID
{- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}| projectId required | string |
| version required | string Examples: 1 2 latest |
| artifactId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --head \ --request HEAD \ https://api.docugami.com/v1preview1/projects/PROJECT-ID/artifacts/latest/ARTIFACT-ID/content
| projectId required | string |
| version required | string Examples: 1 2 latest |
| artifactId required | string |
curl --header "Authorization: Bearer <API-KEY>" \ --header "Accept: application/octet-stream" \ --remote-name \ --remote-header-name \ https://api.docugami.com/v1preview1/projects/PROJECT-ID/artifacts/latest/ARTIFACT-ID/content
The maximum request size is 300 MB. The allowed file extensions are: .xml, .json, .csv, .xlsx, .pdf, and .docx.
| projectId required | string |
| version required | string Examples: 1 2 latest |
| document.id | string |
| file required | string <binary> |
curl --header "Authorization: Bearer <API-KEY>" \ --form document.id=DOCUMENT-ID \ --form file=@artifact.xml \ https://api.docugami.com/v1preview1/projects/PROJECT-ID/artifacts/1/content
{- "id": "sydeqizookql",
- "name": "document.xml",
- "size": 263206,
- "version": "1",
- "createdAt": "2023-03-21T23:15:32+00:00",
- "updatedAt": "2023-03-21T23:15:32+00:00",
- "isReadOnly": true,
- "document": {
- "id": "h6qpx6eofeez",
},
}| name | string Filters sample catalog by name. |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/sample-catalog
{- "samples": [
- {
- "id": "xmtqwbg4g0i8",
- "name": "Service Agreements",
- "description": "Software Related Master Services Agreements that establish the legal and operational parameters for engaging in software-related services. These agreements encompass the delineation of project scope, service-level expectations, intellectual property ownership, confidentiality obligations, and the protocol for resolving disputes.",
- "version": "3",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00"
}
],
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/sample-catalog/ID
{- "id": "xmtqwbg4g0i8",
- "name": "Service Agreements",
- "description": "Software Related Master Services Agreements that establish the legal and operational parameters for engaging in software-related services. These agreements encompass the delineation of project scope, service-level expectations, intellectual property ownership, confidentiality obligations, and the protocol for resolving disputes.",
- "version": "3",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00"
}| name | string Filters samples by name. |
| status | string (sample-status) Enum: "Ready" "InProgress" "Error" Example: status=Ready Filters samples by status |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/samples
{- "samples": [
- {
- "id": "gmk07l49tk2c",
- "catalog": {
- "id": "xmtqwbg4g0i8",
}, - "name": "Service Agreements",
- "description": "Software Related Master Services Agreements that establish the legal and operational parameters for engaging in software-related services. These agreements encompass the delineation of project scope, service-level expectations, intellectual property ownership, confidentiality obligations, and the protocol for resolving disputes.",
- "version": "3",
- "status": "Ready",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00"
}
],
}| id required | string The id of the sample catalog item. |
{- "id": "xmtqwbg4g0i8"
}{- "samples": [
- {
- "id": "gmk07l49tk2c",
- "catalog": {
- "id": "xmtqwbg4g0i8",
}, - "name": "Service Agreements",
- "description": "Software Related Master Services Agreements that establish the legal and operational parameters for engaging in software-related services. These agreements encompass the delineation of project scope, service-level expectations, intellectual property ownership, confidentiality obligations, and the protocol for resolving disputes.",
- "version": "3",
- "status": "Ready",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00"
}
],
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/samples/ID
{- "id": "gmk07l49tk2c",
- "catalog": {
- "id": "xmtqwbg4g0i8",
}, - "name": "Service Agreements",
- "description": "Software Related Master Services Agreements that establish the legal and operational parameters for engaging in software-related services. These agreements encompass the delineation of project scope, service-level expectations, intellectual property ownership, confidentiality obligations, and the protocol for resolving disputes.",
- "version": "3",
- "status": "Ready",
- "createdAt": "2023-03-13T20:22:30.6981643+00:00",
- "updatedAt": "2023-03-13T20:22:31.0982176+00:00"
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/workspace
{- "id": "qgwjgy7tq0ui",
- "name": "Example Workspace",
- "createdAt": "2023-03-06T16:59:52.3057791+00:00",
- "type": "Trial",
- "expired": true,
- "expiresAt": "2023-03-21T16:59:51.3057791+00:00",
- "quota": {
- "page": {
- "max": 500,
- "used": 128,
- "maxPerDocument": 50
}, - "user": {
- "max": 1,
- "used": 1
}
}
}| target | any (Webhook target) Enum: "Documents" "Project" "Docset" Example: target=Project Filters webhooks by target type. 'read:documents' scope is required for document and docset targets and 'read:projects' for project targets. |
| targetId | string Example: targetId=0gjiwhvpeqcg Filters webhooks by target id. |
| limit | integer <int32> [ 1 .. 100 ] Default: 30 Maximum number of items to return. |
| cursor | string Opaque continuation token used to get additional items when a previous query returned more than |
curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/webhooks
{- "webhooks": [
- {
- "id": "lvf4dira8uie",
- "target": "Project",
- "targetId": "0gjiwhvpeqcg",
- "createdAt": "2023-04-19T19:45:26.3755885+00:00",
- "events": [
- "Project.Artifacts.Create"
]
}
],
}| target required | any (webhook-target) Enum: "Documents" "Project" "Docset" |
| url required | string <uri> |
| targetId | string |
| events | Array of any (Webhook events) Items Enum: "Documents.Create" "Documents.Delete" "Docset.Document.Add" "Docset.Document.Remove" "Docset.Document.Dgml" "Project.Artifacts.Create" "Project.Artifacts.Delete" "Project.Artifacts.Modify" "Project.Artifacts.Version" |
| secret | string |
{- "target": "Project",
- "targetId": "0gjiwhvpeqcg",
- "events": [
- "Project.Artifacts.Create"
], - "secret": "string"
}{- "id": "lvf4dira8uie",
- "target": "Project",
- "targetId": "0gjiwhvpeqcg",
- "createdAt": "2023-04-19T19:45:26.3755885+00:00",
- "events": [
- "Project.Artifacts.Create"
]
}curl --header "Authorization: Bearer <API-KEY>" \ https://api.docugami.com/v1preview1/webhooks/ID
{- "id": "lvf4dira8uie",
- "target": "Project",
- "targetId": "0gjiwhvpeqcg",
- "createdAt": "2023-04-19T19:45:26.3755885+00:00",
- "events": [
- "Project.Artifacts.Create"
]
}curl --header "Authorization: Bearer <API-KEY>" \ --request DELETE \ https://api.docugami.com/v1preview1/webhooks/ID
{- "title": "Unsupported Media Type",
- "status": 415,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}