API Authentication
API Authentication
Authentication Guide
To access all Mottasl API endpoints, you must provide an API Key in the Authorization
header. The API Key is a lifetime key that can be generated directly from the Mottasl platform. Follow the steps below to generate your API Key.
Steps to Generate an API Key
Log in to the Mottasl Platform
Visit Mottasl and log in with your credentials.Navigate to the API Settings
After logging in:- Go to the Settings section.
- Select Webhooks & APIs or directly visit this link:
Webhooks & APIs Settings.
Create an API Key
- In the API section, click on the
Create API
button. - Follow the instructions to generate your lifetime API Key.
- In the API section, click on the
Save Your API Key
- Click on the generate key to copy.
Note: You can Generate multiple API_key
with diffrent scopes Read only
OR Read and write
Using the API Key in Requests
Include your API Key in the Authorization
header for all API requests. Example:
Authorization: Bearer YOUR_API_KEY
Example Request with cURL
curl -X GET https://api.mottasl.ai/endpoint \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Notes
- Confidentiality: Treat your API Key like a password. Do not share it publicly or expose it in client-side code.
- Permissions: API Keys are tied to your account and inherit your permissions on the platform.
- Revocation: If needed, you can revoke and regenerate an API Key from the Webhooks & APIs section.
For further assistance, contact our support team through the Mottasl platform.
Last modified: a month ago