Skip to content

GetAccountParams

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  2869594045["v2_protocol.GetAccountParams"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 2869594045
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class GetAccountParams(CodexBaseModel):
    refresh_token: bool | None = None
    """
    When `true`, requests a proactive token refresh before returning.

    In managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.
    """

refresh_token class-attribute instance-attribute

refresh_token: bool | None = None

When true, requests a proactive token refresh before returning.

In managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call account/login/start with chatgptAuthTokens.

:fa-brands-github: Show source on GitHub