POST /auth¶
Authenticate a Gestix ERP user by username and password. Returns a session token (xa-token) that can be used for subsequent API calls.
This endpoint is intended for web applications and user-facing portals where the end user provides their Gestix credentials directly.
Alternative authentication
For server-to-server integrations, use GET /helo with an API Token instead.
Request¶
Parameters¶
| Name | In | Type | Required | Description |
|---|---|---|---|---|
username |
query | string | Yes | Gestix ERP username |
password |
query | string | Yes | Gestix ERP password |
Credentials in query string
The username and password are passed as query parameters. Always use HTTPS to ensure they are encrypted in transit. Avoid logging full request URLs.
Responses¶
200 — Authentication successful¶
| Field | Type | Description |
|---|---|---|
xa-token |
string | Session token. Use as Authorization: Bearer <xa-token> on subsequent requests. |
400 — Invalid input¶
Returned when required parameters are missing.