LOGIN
This API is used to authenticate the middleware layer and generate a admin_token required for accessing protected APIs.
| Header | Type | Description | Example |
|---|
| Content-Type | string | Specifies request payload format | application/json |
| x-api-key | string | API key for request authorization | {{x-api-key}} |
📑 Request Body Parameters
| Field | Type | Required | Description | Example / Enum |
|---|
| api_key | string | Yes | API key provided by SynapseWave | "xyz-api-key" |
| source | string | Yes | Source application | "WEBAPI", "MOBILEAPI" |
| version | string | No | Application version | "1.0.0" |
🟢 Success Response - 200 OK
Content-Type: application/json
| Field | Type | Description | Example |
|---|
| status | string | Status of API call | "success" |
| code | string | Response code | "s-101" |
| message | string | Success message | "Login session created successfully" |
| data | object | Login response payload | Refer Data Object Fields |
📦 Data Object Fields
| Field | Type | Description | Example |
|---|
| admin_token | string | Authentication token for subsequent APIs | "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." |
📝 Notes
admin_token must be included in the Authorization header for all subsequent API calls: