Generate Authentication Token
Getting Started
Generate Authentication Token
1️⃣ Overview
Purpose:
Generates an authentication token for a user in the DataGOL Platform.
This endpoint validates the provided user credentials and returns a JWT token that can be used to authenticate subsequent API requests.
2️⃣ Endpoint
POST /idp/api/v1/user/token
Base URL:
https://be.datagol.ai
3️⃣ Request Headers
| Header | Required |
|---|---|
| Content-Type: application/json | ✅ Yes |
4️⃣ Request Body Schema
{
"email": "string",
"password": "string"
}
5️⃣ Field Descriptions
Token Generation Fields
| Field | Type | Description |
|---|---|---|
| string | The registered email address (e.g., sample_email@datagol.com). | |
| password | string | The user’s account password. |
6️⃣ Example Request
curl -X POST https://be.datagol.ai/idp/api/v1/user/token \
-H "Content-Type: application/json" \
-d '{
"email": "sample_email@datagol.com",
"password": "UserPassword123"
}'
7️⃣ Example Response
{
"token": "eyXXXXXX"
}
8️⃣ Behavior Summary
Validates the provided user credentials and generates a JWT authentication token.
The returned token should be used in subsequent API requests for authentication, typically passed in request headers.
POST
Generate Authentication Token