Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Get Document For A Document Id
This is to get a processed document for a document_id.
Required Scope
x-api-key
Responses
 api success icon
200
Down Arrow

{
   "message": "document fetched successfully",
   "data": {
       "documentType": "Invoice",
       "documentLabels": [
           {
               "key": "bank_account_number",
               "value": "bank_account_number",
               "group": "others",
               "groupVal": "others"      
     },
           {
               "key": "bank_name",
               "value": "bank_name",
               "group": "others",
               "groupVal": "others"      
     },
           {
               "key": "buyer_address",
               "value": "buyer_address",
               "group": "buyer",
               "groupVal": "Buyer"      
     },
           {
               "key": "buyer_name",
               "value": "buyer_name",
               "group": "buyer",
               "groupVal": "Buyer"      
     },
           {
               "key": "buyer_vat_number",
               "value": "buyer_vat_number",
               "group": "buyer",
               "groupVal": "Buyer"      
     },
           {
               "key": "client_id",
               "value": "client_id",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "currency",
               "value": "currency",
               "group": "others",
               "groupVal": "others"      
     },
           {
               "key": "invoice_amount",
               "value": "invoice_amount",
               "group": "others",
               "groupVal": "others"      
     },
           {
               "key": "invoice_date",
               "value": "invoice_date",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "invoice_number",
               "value": "invoice_number",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "net_d",
               "value": "net_d",
               "group": "transaction",
               "groupVal": "transaction details"      
     },
           {
               "key": "payment_due_date",
               "value": "payment_due_date",
               "group": "others",
               "groupVal": "others"      
     },
           {
               "key": "payto_name",
               "value": "payto_name",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "po_number",
               "value": "po_number",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "seller_address",
               "value": "seller_address",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "seller_email",
               "value": "seller_email",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "seller_fax_number",
               "value": "seller_fax_number",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "seller_name",
               "value": "seller_name",
               "group": "seller",
               "groupVal": "Seller details"      
     },
           {
               "key": "seller_phone",
               "value": "seller_phone",
               "group": "seller",
               "groupVal": "Seller details"      
     }
   ]              
 }            
}          
]        
}      
],
      "original_file_name": "type31_invoice.png",
      "fileUrl": "https://uploaded-documents-v2.s3.ap-south-1.amazonaws.com/documents/Invoice-type31_invoice-2024-07-22_09:39:17.249067.png",
      "Edited": false,
      "Extracted": true,
      "workflowId": "66793f4ea45c0347a572d0b1"    
}  
}
}

 api error icon
401

{

    "detail": "Could not validate credentials"

}

 api error icon
403
Down Arrow
 api error icon
404

{

    "message": "document not found!"

}

 api error icon
500

{

    "detail": "error fetching document"

}

Language
Authorization
x-api-key
Introduction questionmark image
Bearer open lock iconBearer lock icon
token is required
documentId is required
workflowId is required
file upload
Upload File
document is required
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Library
Curl Request
Down Arrow
  • curl --request GET \
  • --url https://api.webflow.com/v2/token autho
  • --header 'accept: application/json'
Response
 api success icon api error icon
200
 api success icon
200
Example
Down Arrow
  • {
  • "id": "545bbecb7bdd6769632504a7",
  • "email": "some@email.com",
  • "firstName": "Some",
  • "lastName": "One",
  • }