ToolJet allows you to make HTTP requests inside **Run JavaScript (Run JS)** queries using **Axios**, a promise-based HTTP client. Axios enables you to interact with internal or external APIs, perform authenticated requests, fetch dynamic data, and handle complex request logic using methods such as `GET`, `POST`, `PUT/PATCH`, and `DELETE`—all within a single Run JS query.
## Importing Axios
Axios is available by default inside Run JavaScript environments:
<imgstyle={{marginBottom:'15px'}}className="screenshot-full img-full"src="/img/datasource-reference/custom-javascript/axios-get.png"alt="Use Axios in RunJS"/>
This POST request sends user details to the server. The server's response, as shown below, includes **Status: 201** indicating successful resource creation.
<imgstyle={{marginBottom:'15px'}}className="screenshot-full img-full"src="/img/datasource-reference/custom-javascript/axios-post.png"alt="Use Axios in RunJS"/>
<imgstyle={{marginBottom:'15px'}}className="screenshot-full img-l"src="/img/datasource-reference/custom-javascript/example1.png"alt="axios fetching api example"/>
### Authenticated API Request (Token-Based)
Use a Bearer token stored in ToolJet variables for authenticated requests.
<imgstyle={{marginBottom:'15px'}}className="screenshot-full img-l"src="/img/datasource-reference/custom-javascript/example2.png"alt="axios auth api example"/>