Account

Read this account's daily token rating

Changed on

How much of its daily token rating this account has left: asking and sorting both draw on it, counted in tokens. Reading it spends nothing. An account credential (Bearer ow_a_, a signed-in session, or a phone's X-Session-Token).

get/api/v2/account/allowance

Request

  • Base URL
    https://www.onlyworlds.com
  • Auth
    • HTTP bearer
    • or API key in header X-Session-Token

Response

The account's token rating today: token_rating (tokens a day), tokens_used_today, tokens_remaining, resets_at (ISO 8601, UTC: the next midnight) and own_key ({provider} when the account saved its own AI key, which asking and sorting use once the rating is spent; else null).

object required
token_rating, integer required

The account's daily token rating.

tokens_used_today, integer required

Tokens spent today (UTC); may pass the rating by the size of the last call.

tokens_remaining, integer required

Tokens left today, never below 0.

resets_at, string date-time required

When the token rating resets: the next midnight UTC.

own_key, object nullable required

The account's own AI key, saved on the account page, or null: when today's rating is spent, asking and sorting run on it (billed by its provider). Only the provider is shown.

Changes

    • info

      added the optional property error/limit to the response with the status

    • info

      added the optional property error/limit to the response with the status

    • info

      added the optional property error/limit to the response with the status