Export
A quick guide on Alphamoon API export endpoints
Export collection
To export collection via API, get the collection_id of the processed file from:
Upload a file endpoint (Base64 or Binary)
Get collections endpoint
URL e.g. https://workspace.alphamoon.ai/supervision/223742cc9bca43fd81b2d41b0018e4c7
To export the collection, use the following endpoint:
Export Collection
GET
/api/v0.3/collections/{collection_id}/export
Path Parameters
collection-id*
String
The id of the collection for which you want to extract the results.
Query Parameters
Scope
String
Choose between: extraction, ocr_words, ocr_tables
Format
String
Choose between: json, csv, xlsx, pdf, txt
See the example:
Export multiple collections
To export collections via API, get the collection_ids as well as process_id from one of the following sources:
Get processes endpoint
Create process endpoint
URL e.g. https://workspace.alphamoon.ai/queue/2080d36bf94c4147b2e543104342fc2f
To export multiple collections, use the following endpoint:
Export Collections
POST
/api/v0.3/collections/export
Request Body
collectionIds*
String
The ids of the collections
processId*
String
The process id
scope
String
Extraction / ocr_words/ ocr_tables
format
String
json, csv, xlsx, pdf, or txt
This endpoint creates an export process with the returned export_id. You can refer to its results using the further described endpoint - Get export by id.
See the example:
Get export by Id
To export collections via API, get the export_id from the following source:
Next up, use the following endpoint:
Get Export By Id
GET
/api/v0.3/collections/exports/{export_id]
Path Parameters
export_id*
String
See the example:
See next:
Last updated