Authentication
To interact with the SplxAI Platform API, all users, including those on free accounts, can generate a Personal Access Token for authentication.
Generating Your Personal Access Token
To learn how to obtain your personal access token, refer to the Access Token Generation section in the documentation.
Using the Personal Access Token
Once you've obtained your personal access token, include it in the X-Api-Key header of your API requests.
Example Request:
Response to Unauthorized Access
If the Authorization header is not provided, or if an invalid token is used, the API will return a 401 Unauthorized error. This response indicates that authentication is required to access the requested resource.
Example Response:
Ensure your token is kept secure: Your personal access token provides access to your API resources. Do not share or expose your token publicly.
Token Expiry: Personal access tokens may have an expiration date based on the configuration set during their creation. Make sure to regenerate your token if needed.
Last updated