• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Adobe extract post request.

Community Beginner ,
Oct 26, 2021 Oct 26, 2021

Copy link to clipboard

Copied

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}'

 

TOPICS
How to , PDF Extract API , PDF Services API

Views

58

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources