How to reference PATH of the uploaded file in the Pickaxe action code

Hello,

I have a PIckaxe action used to acces an API for Document text extractor.

The code for API acces is like this:

import json

import requests

VA_API_KEY = “YOUR_VA_API_KEY” # Replace with your API key

headers = {“Authorization”: f"Basic {VA_API_KEY}"}

url = “https://api.va.landing.ai/v1/tools/agentic-document-analysis

base_pdf_path = “your_pdf_path” # Replace with the path to the file

pdf_name = “filename.pdf” # Replace the file

pdf_path = f"{base_pdf_path}/{pdf_name}"

I cant acces the PATH of the uploaded pdf file in Pickaxe chat.

Is there any way to reference by code, the PATH of UPLOADED FILE ?

The uploaded file is .pdf file.

@doreloprisan documents can be referenced with the variable

PICKAXE_END_USER_RAW_DOC_URLS