Skip to main content
Participant
October 26, 2021
Question

Adobe extract post request.

  • October 26, 2021
  • 0 replies
  • 250 views

What is the format for sending the adobe extract post? I've gone through the documentation for the extract API(https://documentcloud.adobe.com/document-services/index.html#post-extractPDF) and tried to implement the request in Postman, but everytime I'm getting a HTTP 500 error. Can anyone help me figure out what is wrong with my API call. Thanks.

This is the cURL command I'm using. 

curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create' \
--header 'Accept: application/json, text/plain, /' \
--header 'Authorization: Bearer {token}' \
--header 'x-api-key: {api-key}' \
--header 'Prefer: respond-async,wait=0' \
--form 'contentAnalyzerRequests="{
    \"cpf:engine\": {
        \"repo:assetId\": \"urn:aaid:cpf:58af6e2c-1f0c-400d-9188-078000185695\"
    },
    \"cpf:inputs\": {
        \"documentIn\": {
            \"cpf:location\": \"fileInput1\",
            \"dc:format\": \"application/pdf\"
        },
        \"params\": {
            \"cpf:inline\": {
                \"elementsToExtract\": [
                    \"text\",
                ],
            }
        }
    },
    \"cpf:outputs\": {
        \"elementsInfo\": {
            \"cpf:location\": \"jsonoutput\",
            \"dc:format\": \"application/json\"
        },
        }
}"' \
--form 'fileInput1={path to file}'

 

This topic has been closed for replies.