Skip to content

GET /helo

Authenticate with your API Token to obtain a session token (xa-token) for use with all other endpoints.

Why 'helo'?

This is an intentional geeky reference to the HELO command in the SMTP mail server protocol — not a typo.


Request

GET /api/{account}/v4.0.1/helo/
Authorization: Bearer <your-api-token>

Security

This endpoint uses API Token authentication (apiTokenAuth). Pass your long-lived API Token (generated in Admin > Webshop API) as a Bearer token.

From v4.0.1 (Gestix 7.2.08), only the key currently stored for the user in Admin > Webshop API is accepted: after Regenerate, the previous key is refused, and a user whose key was removed has no access. With v4.0.0 and older, any key generated for the user works until the user's password or code changes. See API versions and the API key.

Parameters

Name In Type Required Description
nonce query integer (int64) No Client-generated unique sequential number. Example: 123456789

Responses

200 — Session token returned

{
  "xa-token": "aaMDAwMDAwMDAwMDAxMzY4ODY5OTA4ICAgRlIwMDA3MTQwNjIxXX"
}
Field Type Description
xa-token string Short-lived session token. Pass this as a Bearer token on all subsequent requests.

400 — Missing or invalid apiToken

Returned when no Authorization header is provided or the token is malformed.

403 — Access denied / invalid token

Returned when the API Token is invalid: for example, with v4.0.1, a key replaced by Regenerate or removed; with any version, a key generated before the user's password or code changed.


Example

curl -X GET \
  "https://gestix.pt:443/api/03101176/v4.0.0/helo/" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
import requests

response = requests.get(
    "https://gestix.pt:443/api/03101176/v4.0.0/helo/",
    headers={"Authorization": "Bearer YOUR_API_TOKEN"}
)
token = response.json()["xa-token"]
const response = await fetch(
  "https://gestix.pt:443/api/03101176/v4.0.0/helo/",
  { headers: { "Authorization": "Bearer YOUR_API_TOKEN" } }
);
const { "xa-token": token } = await response.json();

Next Steps

Use the returned xa-token in the Authorization: Bearer header for all subsequent API calls. If you need to verify your session is still active, call GET /status.