POST
/
extract
/
{source_id}
Synchronous extraction for a file end to end
curl --request POST \
  --url https://api.cloudsquid.io/api/extract/{source_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "document": {
    "mimetype": "application/pdf",
    "filename": "<string>",
    "file_type": "uri",
    "zero_retention_mode": true,
    "file": "<string>"
  },
  "pipeline": "cloudsquid-flash"
}'
{
  "result": {}
}

Authorizations

X-API-Key
string
header
required

Path Parameters

source_id
string<uuid>
required

the ID of the extraction source

Body

application/json

Response

200
application/json

Successfully extracted file

The response is of type object.