Expand description
Authentication types for the ObjectiveAI API.
This module provides types for API key management and authentication, including creating, listing, and disabling API keys, as well as managing credits and OpenRouter BYOK (Bring Your Own Key) integration.
§API Keys
API keys are prefixed UUIDs with the format apk<uuid> (e.g., apk1234abcd...).
They are used to authenticate requests to the ObjectiveAI API.
§Credits
Credits are the billing unit for ObjectiveAI. Users can check their current balance, total purchased, and total used credits.
Modules§
- request
- Request types for authentication API endpoints.
- response
- Response types for authentication API endpoints.
Structs§
- ApiKey
With Metadata - An ObjectiveAI API Key with associated metadata.
Functions§
- create_
api_ key - Creates a new API key.
- create_
openrouter_ byok_ api_ key - Creates or updates the OpenRouter BYOK API key.
- delete_
openrouter_ byok_ api_ key - Deletes the OpenRouter BYOK API key.
- disable_
api_ key - Disables an existing API key.
- get_
credits - Retrieves the user’s credit balance.
- get_
openrouter_ byok_ api_ key - Retrieves the configured OpenRouter BYOK API key.
- list_
api_ keys - Lists all API keys for the authenticated user.
Type Aliases§
- ApiKey
- An ObjectiveAI API Key.