Skip to main content
Version: 3.x

Security Hash

The security hash verifies authenticity for /players/impanel.

How to Generate

  1. Concatenate user_identifier and Unix timestamp with a colon. Example: 123e4567-e89b-12d3-a456-426614174000:1713456789
  2. Compute the SHA-256 HMAC using your API secret.
  3. Send the following as request params (not headers):
    • sech: the hex-encoded HMAC digest
    • ts: the same Unix timestamp used in the payload
  4. Hashes expire after 5 minutes**.

Ruby Example

payload = "#{user_identifier}:#{timestamp}"
digest = OpenSSL::HMAC.hexdigest('SHA256', api_secret, payload)