Guides
Getting started

Authentication

Every call carries the sandbox access token in the Authorization header; there is no token flow.

Okto issues each operator a fixed access token. In Mimicr, each sandbox has its own (okto_sbx_…), created on activation. It doesn't expire and there is no endpoint to exchange it for another token.

Where to find the token

  • In the console: Okto, operator tab.
  • In the control API: GET https://api.mimicr.dev/v1/okto, field access_token.
  • In Okto's own API: Get operator returns accessToken.

How to send it

bash
curl --url https://okto.mimicr.dev/operator/v2/balance \
  --header 'Authorization: Bearer <token>'
json
{
  "gamingOperatorId": "e34af936-3be8-476d-9753-4529520f2f48",
  "lastUpdated": "2026-10-21T19:09:06.127Z",
  "totalBalance": 204000,
  "pendingBalance": 2500,
  "availableBalance": 201500
}

The Bearer prefix is optional: Mimicr also accepts the bare token in the header.

Authentication errors

SituationHTTPBody
No Authorization header403{"errors":[{"code":2000,"message":"The credentials are invalid.","detailedMessage":"Full authentication is required to access this resource"}]}
Unknown token401{"errors":[{"code":2000,"message":"The credentials are invalid.","detailedMessage":"Invalid access token"}]}

Authentication is checked before the path: even a path that doesn't exist answers 403 or 401 without a valid token.

Notification token

The notifications Mimicr sends to your application carry the Gaming-Operator-Token header. Its value is the notificationToken you saved in Update notification URLs or, if none was saved, the access token itself. Check that header and also the RSA signature: see Verify the signature.

The access token gives full access to the sandbox. Keep it secret and never ship it to a front end.