Skip to main content
POST
/
gaming
/
claim
Claim spin result
curl --request POST \
  --url https://api.sprucecollective.co.uk/gaming/claim \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "data_processing_consent": true,
  "email": "<string>",
  "marketing_consent": true,
  "name": "<string>",
  "password": "<string>",
  "site_id": "<string>"
}
'
{
  "credits_won": 123,
  "message": "<string>",
  "segment_id": 123,
  "success": true,
  "token": "<string>",
  "user_id": "<string>"
}

Body

application/json

Claim request

token
string
required
email
string

Registration data (if user doesn't exist)

name
string
password
string
site_id
string

Response

OK

credits_won
integer

0, 1, or 3 credits

message
string
segment_id
integer

0-7 matching frontend SEGMENTS array

success
boolean
token
string

JWT token if user was created/logged in

user_id
string