Skip to main content
Participating Frequently
September 9, 2024
Answered

Import and Export PDF Form Data give error 401

  • September 9, 2024
  • 2 replies
  • 1439 views

Hello

I successfully used the Adobe PDF services API to export DOCX from several PDF examples.

Now I am trying to use the service to export and import PDF FORM data but it keeps crashing because the "CREATE a PDF JOB" step returns a 401 error.  

 

I have tried:

1. three different PDF forms

2. created a custom, simple, 2 field PDF form

 

The Header is the same as the EXPORT PDF API but the body  is JSON as follows:

 

{"assetID": "%Asset%",
"jsonFormFieldsData": {
"DOB": "10/10/1989",
"Name": "Amir Ramin",},
"notifiers": [{
"type": "CALLBACK",
"data": {
"url": "https://dummy.callback.org/",
"headers": {
"x-api-key": "dummykey",
"access-token": "dummytoken"
}}}]
}

 

any help is appreciated

thanks

Ramin

    This topic has been closed for replies.
    Correct answer Raymond Camden

    so, I'm using the https://developer.adobe.com/document-services/docs/apis/#tag/Export-PDF-Form-Data/operation/pdfoperations.getformdata

    documentation to understand the requested header and payload.

    is there a different pattern I should be using?

    thanks

    Ramin


    So to be clear, the step that creates the job fails, right? The 'shape' of the data above does not seem to match the docs. for example, it looks like you are specifying a webhook, but you didn't have the "notifiers" key. 

     

    {
    "assetID": "urn:aaid:AS:UE1:23c30ee0-2c4d-46d6-87f2-087832fca718",
    "notifiers": [
    {
    "type": "CALLBACK",
    "data": {
    "url": "https://dummy.callback.org/",
    "headers": {
    "x-api-key": "dummykey",
    "access-token": "dummytoken"
    }
    }
    }
    ]
    }

    2 replies

    Raymond Camden
    Community Manager
    Community Manager
    September 9, 2024

    Get and Set Form info is still in beta and not available to everyone. You need to fill out the form here: Adobe Developers

    Participating Frequently
    September 9, 2024
    thanks so much. will do.

    --
    This message is privileged and confidential. Any review, retransmission,
    dissemination, or other use of this information by other than the intended
    recipient is prohibited.
    Participating Frequently
    September 17, 2024

    Hi

    I got beta access and I am now getting error 400.

     

    my header is:

    X-API-Key: %clientID%
    Authorization: Bearer %Token%

     

    my body is:

    {

    "assetID": "%Asset%",
    {

    "type": "CALLBACK",
    "data": {
    "url": "https://dummy.callback.org/",
    "headers": {
    "x-api-key": "dummykey",
    "access-token": "dummytoken"
    }}}]
    }

     

    any ideas?

    Participating Frequently
    September 9, 2024

    simplest form attached