Authentication Method
How to authenticate requests that needs authentication
Authentication Documentation
Introduction
This document provides guidelines for authenticating requests to the PAAL AI API. Authentication is required for creating, modifying, and deleting project data, but it is not required for retrieving project data.
Authentication Header
To authenticate requests, include an HTTP header with the following structure:
Header Name:
Bearer
Header Value: Your authentication token
Example Header
Example Usage
Including Authentication Header in Requests
When making requests to the API endpoints that require authentication, ensure you include the Bearer
token in the headers.
Using cURL
Using JavaScript (Fetch API)
Using Postman
Open Postman and create a new request.
Select the request method (e.g., POST).
Enter the request URL (e.g.,
https://api.example.com
/project/new
).Go to the Headers tab.
Add another header:
Key:
Bearer
Value:
your-authentication-token
Go to the Body tab, select raw and set the type to JSON.
Enter the request payload in JSON format.
Send the request.
Using Axios (JavaScript)
Summary
By including the Bearer
token in the request headers, you can authenticate your requests to the PAAL AI API. Ensure your token is valid and correctly included in the headers to access the protected endpoints for creating, modifying, and deleting data.
Last updated