List Workflow Statuses

Lists workflows invoked and their statuses

Endpoint URLSDK Method
https://api.inkit.com/v1/invoke (GET)N/A

Request properties

PropertyTypeRequiredDescription
pageIntegerNoThe page of the list you want to pull. The default is 1.
page_sizeIntegerNoThe number of records to pull per page. The default is 25.
sortStringNoThe sort key. If the key is preceded with a -, the request will sort the records in descending order. Otherwise it will sort in ascending order.
searchStringNoThe search key. The request will only return records with this key.
data_idStringNoA comma-delimited list of Render IDs to return.
destination_nameStringNoThe request will only return records with this destination name.
destination_statusStringNoThe request will only return records with this destination status.

Response properties

PropertyTypeDescription
itemsObject[]An array of documents and folders generated.
metadataObjectMetadata relating to the list.

items

PropertyTypeDescription
created_atStringThe date and time the workflow was invoked.
descriptionStringThe description of the workflow.
destination_statusStringThe destination status of the workflow.
destinationsObjectFlow destination data.
flow_idStringThe ID of the workflow.
flow_nameStringThe name of the workflow.
flows_batch_idStringThe batch ID associated with the workflow.
idStringThe invocation ID of the workflow.
merge_parametersObjectThe key-value pairs you used when invoking your workflow.
nameStringThe execution name of the workflow.
statusStringThe status of the workflow.

destinations

PropertyTypeDescription
amazon_s3ObjectAmazon S3 destination data if the workflow contains an Amazon S3 destination.
boxObjectBox destination data if the workflow contains a Box destination.
docusignObjectDocuSign destination data if the workflow contains a DocuSign destination.
dropboxObjectDropbox destination data if the workflow contains a Dropbox destination.
google_driveObjectGoogle Drive destination data if the workflow contains a Google Drive.
inkit_storageObjectInkit Storage destination data.
magic_linkObjectMagic Link destination data if the workflow contains a Magic Link destination.
salesforceObjectSalesforce destination data if the workflow contains a Sepire destination.
sepireObjectSepire destination data if the workflow contains a Salesforce destination.
amazon_s3
PropertyTypeDescription
amazon_s3_piece_idStringThe Amazon S3 document ID.
statusStringThe status of the document generated.
box
PropertyTypeDescription
box_piece_idStringThe Box document ID.
statusStringThe status of the document generated.
docusign
PropertyTypeDescription
docusign_piece_idStringThe DocuSign document ID.
statusStringThe status of the document generated.
dropbox
PropertyTypeDescription
dropbox_piece_idStringThe Dropbox document ID.
statusStringThe status of the document generated.
google_drive
PropertyTypeDescription
google_drive_piece_idStringThe Google Drive document ID.
statusStringThe status of the document generated.
inkit_storage
PropertyTypeDescription
document_idStringThe Inkit Storage document ID.
nameStringThe Inkit Storage document name.
statusStringThe status of the document generated.
magic_link
PropertyTypeDescription
magic_link_piece_idStringThe Magic Link document ID.
statusStringThe status of the document generated.
salesforce
PropertyTypeDescription
salesforce_piece_idStringThe Salesforce document ID.
statusStringThe status of the document generated.
sepire
PropertyTypeDescription
mail_piece_idStringThe Sepire document ID.
statusStringThe status of the document generated.

Example request and response

curl --request GET \
     --url https://api.inkit.com/v1/invoke \
     --header 'X-Inkit-API-Token: ENTER YOUR API KEY' \
     --header 'accept: application/json'
{
   "items":[
      {
         "created_at":"2023-11-07T02:31:22.232287Z",
         "description":null,
         "destination_status":"Completed",
         "destinations":{
            "inkit_storage":{
               "document_id":"doc_NB1RnyuzZkN6HAJ4xVWOO",
               "name":"Hi.pdf",
               "status":"Completed"
            }
         },
         "flow_created_at":"2023-10-25T16:13:39.170009Z",
         "flow_id":"flow_1HsyLDikoFkeLg0ZkgIq57",
         "flow_name":"Hi",
         "flows_batch_id":null,
         "id":"rend_2DhtpDQ5ErIaNJQRtCpKfN",
         "merge_parameters":{
            "lname":"Mayer",
            "name":"Andrew"
         },
         "name":null,
         "status":"Completed",
         "template_id":null,
         "template_version":null
      },
      {
         "created_at":"2023-07-24T21:22:42.264095Z",
         "description":null,
         "destination_status":"Failed",
         "destinations":{
            "inkit_storage":{
               "document_id":"doc_2jFOVLmh0e5PYmDeENACgN",
               "name":"demo",
               "status":"Completed"
            },
            "sepire":{
               "mail_piece_id":"mp_3rD7NiYDewMnxp8YVstIh0",
               "status":"Failed"
            }
         },
         "flow_created_at":null,
         "flow_id":null,
         "flow_name":null,
         "flows_batch_id":null,
         "id":"rend_rHbYbzClfysX85KrJeKCB",
         "merge_parameters":{
            
         },
         "name":null,
         "status":"Completed",
         "template_id":"tmpl_1oR7iN7IBiEkOP39aHWfPm",
         "template_version":2
      }
   ],
   "metadata":{
      "pagination":{
         "current_page":1,
         "next_page":2,
         "page_count":108,
         "page_size":25,
         "prev_page":108,
         "total_count":2693
      },
      "sort":{
         "key":"updated_at",
         "order":1
      }
   }
}