ElevenLabs account info: the user record and the subscription with its character quota.
Functions
get-subscription
fn (): Map
fn (opts: Map): Map
GET /v1/user/subscription: tier, status, and quota
(character_count, character_limit, next_character_count_reset_unix,
voice slots).
Example
plan ::elevenlabs::user/get-subscription()
remaining sub(plan.character_limit, plan.character_count)
Context Vars:
elevenlabs.api.key
get-user
fn (): Map
fn (opts: Map): Map
GET /v1/user: the account (user_id, first_name, subscription,
...). The cheapest key smoke test.
Example
me ::elevenlabs::user/get-user()
me.user_id
// Check another tenant's key, from context
::elevenlabs::user/get-user({api-key: ::hot::ctx/get("tenant.elevenlabs.key")})
Context Vars:
elevenlabs.api.key