Signature/fillable form from your website

1. Get the API KEY

Get the API KEY from “API Settings” tab in PDFfiller API-Payment page.

2. Upload a document from URL

curl -X "POST" "https://api.pdffiller.com/v2/templates" \
     -H "Authorization: Bearer API_KEY_FROM_STEP1" \
     -H "Content-Type: application/json" \
     -d "{\"file\":\"https://some.url/somefile.pdf\"}"

Save ID from the JSON response for further steps

3. Create a fillable_form entity based on the document uploaded in Step 2

curl -X "POST" "https://api.pdffiller.com/v2/fillable_forms" \
     -H "Authorization: Bearer API_KEY_FROM_STEP1" \
     -H "Content-Type: application/json" \
     -d "{\"document_id\":\"DOCUMENT_ID_FROM_STEP2\",\"access\":\"full\",\"status\":\"public\"}"

Save fillable_form_id and url element values from the JSON response. url is a publicly accessible fillable document which you can share with others. When a document is filled out or signed by somebody, you are going to receive email notifications. fillable_form_id is ID of a LinkToFill created by the fillable form. You can also register callbacks (See Callbacks Documentation) to receive automatic REST HTTP callbacks for a document signature or filling events.

4. List all completed PDF forms for a specific document

curl -X "GET" "https://api.pdffiller.com/v2/fillable_forms/FILLABLE_FORM_ID_FROM_STEP3/filled_forms" \
     -H "Authorization: Bearer API_KEY_FROM_STEP1" \
     -H "Content-Type: application/json"

Save id of the filled form item from the response

{
    "items": [
        {
            "id": 56900
            ...
            }
    ]
}

5. Download a filled PDF form

curl -X "GET" "https://api.pdffiller.com/v2/fillable_forms/FILLABLE_FORM_ID_FROM_STEP3/filled_forms/FILLED_FORM_ID_FROM_STEP4/download" \
     -H "Authorization: Bearer API_KEY_FROM_STEP1"

Note, you can also attach a callback to a specific document to receive a REST call notification to a custom URL when form filling is complete.

File content will be sent back in the response body