cURL
curl --request POST \ --url https://api.fire.rest/v1/auth/login \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "username": "<string>", "password": "<string>" } '
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 3600 }
Exchange your credentials for an access token. Use the returned token as a Bearer token in all subsequent API requests.
Authorization: Bearer <token>