Skip to main content

Generate Token

POST 

/Login/Customer/Api/Verify

Authenticates an API customer with email and password and returns a bearer access token that must be sent on every subsequent request.

How it works

  1. Call this endpoint once with your API customer credentials.
  2. Persist the returned token securely on your side.
  3. Send the token in the Authorization header of every other request: Authorization: Bearer {token}.
  4. When the token expires, call this endpoint again to obtain a new one.

The optional callbackData field is echoed back unchanged in the response and is useful for correlating the login attempt with a record on your side.

Sample request

POST /Login/Customer/Api/Verify HTTP/1.1
Host: api.hyperteknoloji.com
h-region-code: TR
Content-Type: application/json
{
"Email": "[email protected]",
"Password": "your-password",
"callbackData": "optional-correlation-id"
}

Sample response

{
"data": {
"Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"Expiration": "2026-05-14T10:30:00Z",
"callbackData": "optional-correlation-id"
},
"success": true,
"message": "OK"
}

Notes

  • This endpoint is anonymous; do not send an existing Authorization header.
  • The credentials must belong to a customer flagged as an API customer (IsAPI = 1).
  • The h-region-code header defaults to TR when omitted.

Request

Responses

Token generated successfully.