Skip to main content

objectiveai_sdk/auth/
mod.rs

1//! Authentication types for the ObjectiveAI API.
2//!
3//! This module provides types for API key management and authentication,
4//! including creating, listing, and disabling API keys, as well as
5//! managing credits and OpenRouter BYOK (Bring Your Own Key) integration.
6//!
7//! # API Keys
8//!
9//! API keys are prefixed UUIDs with the format `apk<uuid>` (e.g., `apk1234abcd...`).
10//! They are used to authenticate requests to the ObjectiveAI API.
11//!
12//! # Credits
13//!
14//! Credits are the billing unit for ObjectiveAI. Users can check their
15//! current balance, total purchased, and total used credits.
16
17mod api_key;
18pub mod request;
19pub mod response;
20
21pub use api_key::*;
22
23#[cfg(feature = "http")]
24mod http;
25
26#[cfg(feature = "http")]
27pub use http::*;