Skip to main content

Retrieve documents

Retrieve a paginated list of documents from an Ahoy Data Intelligence project.

API documentation: https://www.ahoyams.com/marketplace/cbe0812f-2def-46ec-a73c-788f97ff2c2a#description/introduction

Application

  • Ahoy Data Intelligence

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Project nameName of the Ahoy Data Intelligence project whose documents should be listedText (Short)YesWrk Product Knowledge
Page1-based page number. Defaults to 1NumberNo1
Page sizeDocuments per page. Defaults to 20. Maximum: 100NumberNo20

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data Library section. These variables in the Data Library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
DocumentsStringified JSON array of document objects. Each item can contain id, filename, content_type, description, file_size, uploaded_at, processed, processing_status, and batch_idText (Long)Yes[{"id":"doc_456","filename":"SOP.pdf"}]
TotalTotal documents across all pagesNumberYes245
PageCurrent pageNumberYes1
Page sizeCurrent page sizeNumberYes100
Total pagesTotal page countNumberYes3
Provider messageProvider response message when returnedText (Long)No

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Requirements

  • N/A