AuthLogin

Login

Validate a signalId/signalToken pair and return a JWT that can be used to authorize other requests. The login token expires according to the returned ttl, expiresAt, and expiresIn fields; call this endpoint again when the token expires.

curl -X POST "https://api.nexus.usehardal.com/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
  "signalId": "example_string",
  "signalToken": "example_string"
}'
{
  "token": "eyJhbGc",
  "signalId": "demo",
  "ttl": 3600,
  "issuedAt": 1782821338,
  "expiresAt": 1782824938,
  "expiresIn": 3600
}
POST
/auth/login
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json, multipart/form-data, text/plain
signalIdstring
Required

Signal identifier that will own the session

Min length: 1
signalTokenstring
Required

API token issued for the signal

Min length: 1
Request Preview
Response

Response will appear here after sending the request

Body

signalIdstring
Required

Signal identifier that will own the session

signalTokenstring
Required

API token issued for the signal

Responses

tokenstring
Required

Signed JWT token

signalIdstring
Required

Signal identifier embedded in the token

ttlnumber
Required

Token time-to-live in seconds. The token expires after this duration.

issuedAtnumber
Required

Issued-at timestamp (seconds since Unix epoch)

expiresAtnumber
Required

Expiration timestamp (seconds since Unix epoch). Requests must use a fresh token after this time.

expiresInnumber
Required

Remaining seconds until expiration at the time of the response.