POST http://lottoassist.com/register
Content-Type: application/json
{
"email": "your_email@example.com",
"password": "your_password",
"device_id": "unique_device_identifier",
"state_abbr": "SC"
}
curl -X POST 'http://lottoassist.com/register' \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "secure_password",
"device_id": "12345-abcde-67890-fghij",
"state_abbr": "SC"
}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user_id": "7343d289-33d7-11ef-9123-f24f7ec218ff"
}
POST http://lottoassist.com/auth
Content-Type: application/json
{
"username": "your_email@example.com",
"password": "your_password",
"device_id": "unique_device_identifier",
"state_abbr": "SC"
}
curl -X POST 'http://lottoassist.com/auth' \
-H "Content-Type: application/json" \
-d '{
"username": "user@example.com",
"password": "secure_password",
"device_id": "12345-abcde-67890-fghij",
"state_abbr": "SC"
}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user_id": "7343d289-33d7-11ef-9123-f24f7ec218ff"
}
After obtaining the token, you can make requests to protected endpoints. You must include the token in the X-AUTH
header of each request.
GET http://lottoassist.com/best-odds/<user_id>
X-AUTH: <your_token>
Content-Type: application/json
curl -X GET 'http://lottoassist.com/best-odds/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/jackpots-trending-up/<user_id>
curl -X GET 'http://lottoassist.com/jackpots-trending-up/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/most-jackpots-remaining/<user_id>
curl -X GET 'http://lottoassist.com/most-jackpots-remaining/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/big-wins-best-odds/<user_id>
curl -X GET 'http://lottoassist.com/big-wins-best-odds/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/big-wins-trending-up/<user_id>
curl -X GET 'http://lottoassist.com/big-wins-trending-up/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/best-big-win-tickets/<user_id>
curl -X GET 'http://lottoassist.com/best-big-win-tickets/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/any-win-best-odds-prize/<user_id>
curl -X GET 'http://lottoassist.com/any-win-best-odds-prize/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/any-win-trending-up/<user_id>
curl -X GET 'http://lottoassist.com/any-win-trending-up/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/any-win-best-odds-ticket/<user_id>
curl -X GET 'http://lottoassist.com/any-win-best-odds-ticket/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
GET http://lottoassist.com/cards-highest-value-vs-cost/<user_id>
curl -X GET 'http://lottoassist.com/cards-highest-value-vs-cost/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
If the token is missing, expired, or invalid, you'll receive a 403 Forbidden response:
{
"message": "Token is missing!"
}
or
{
"message": "Token is invalid or expired!"
}
Use the /register endpoint to create a new user account. You'll receive a token and user_id upon successful registration.
If you're an existing user or need to refresh your token, use the /auth endpoint to obtain a new token.
Use the token received from registration or authentication in the X-AUTH header for all subsequent requests to protected endpoints.
curl -X POST 'http://lottoassist.com/register' \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "secure_password",
"device_id": "12345-abcde-67890-fghij",
"state_abbr": "SC"
}'
curl -X GET 'http://lottoassist.com/best-odds/7343d289-33d7-11ef-9123-f24f7ec218ff' \
-H "X-AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
Remember to replace the example user_id and token with your actual values in all requests.