Retrieve Secret Code

In case players cannot use the QR Code (broken phone camera, unauthorised camera...), then they can enter a 6 digit secret code.

API Request

PATCH/profiles/{custom_id}/secret

Retrieve a new Secret Code for the given Custom ID (profile). This invalidates the old connections (only one phone authorised for each profile, a profile can't be used on multiple devices).

The code is available for 5 minutes.

JSON Parameters

Nothing

Response example

{
  "success": true,
  "message": null,
  "code": 200,
  "data": {
    "custom_id": "5",
    "code": "742689",
    "expires_at": "2023-01-01T15:34:55+01:00"
  }
}

What's next?

Powered by Doctave