ToolJet can establish connections with any available REST API endpoint, allowing you to create queries and interact with external data sources seamlessly.
## Setting up a REST API Data Source
<div>
To establish a connection with the REST API data source, you can either click on the **+ Add new Data source** button located on the query panel or navigate to the **[Data Sources](/docs/data-sources/overview)** page through the ToolJet dashboard.
ToolJet requires the following to connect to a REST API data source:
- **Base URL**: The base URL specifies the network address of the API service.
- **Headers**: Key-value pairs to include as headers with REST API requests.
- **URL Parameters**: Key-value pairs to include as URL parameters with REST API requests.
- **Body**: Key-value pairs to include as the body of the request.
- **Cookies**: Key-value pairs to include as cookies with REST API requests. These cookies will be sent with every query created using this data source instance.
For a detailed explanation of the authentication types supported by REST API data sources, refer to the **[Authentication](/docs/data-sources/restapi/authentication)** section.
:::
ToolJet supports the following authentication types for REST API data sources:
- **None**: No authentication required.
- **Basic**: Requires Username and Password.
- **Bearer**: Requires a token, typically a JSON Web Token (JWT), to grant access.
- **OAuth 2.0**: Supports both Authorization Code and Client Credentials grant types. Required parameters vary based on the selected grant type and service provider.