# Sign in event

# POST /:partnerId/event/signin

# When

Send this event when a player signs in to their account successfully.

# Parameters

Parameter Type Description Example
ludio_id Body Ludio id of the player triggering the event b42a9f...6e7d45
timestamp Body UNIX Timestamp on the occurence of the event 1681201484
device Body The device used when the event occured. Devices available: desktop, mobile mobile
balance Body The player balance a the time of login 50
currency Body The currency of the player wallet SEK

# Schema

{
  "ludio_id": "string",
  "timestamp": 0,
  "payload": {
    "device": "string",
    "currency": "string",
    "balance": 0,
  }
}

# Examples

fetch(`${process.env.LUDIO_EVENT_API_HOST}/event/signin`, {
  method: "POST",
  body: {
    "ludio_id": "b42a9f91d6f79dc885c4b93ac86e7d45",
    "timestamp": 1681201484,
    "payload": {
      "device": "mobile",
    }
  }
})
curl -d '{"ludio_id": "b42a9f91d6f79dc885c4b93ac86e7d45","timestamp": 1681201484,"payload": {"device": "mobile"}}' $LUDIO_EVENT_API_HOST/event/signin