Authorization: Bearer <key> on every request.
Change the key at runtime
Validate the key
ReyGridAuthError.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Authenticate the ReyGrid Python SDK with an API key.
Authorization: Bearer <key> on every request.
import os
from reygrid import ReyGrid
client = ReyGrid(api_key=os.environ["REYGRID_API_KEY"])
client.set_api_key("new-key") # replace
client.set_api_key(None) # clear
validation = client.validate()
print(validation.valid, validation.usage.total, validation.usage.quotaLimit)
usage = client.get_usage() # shortcut for validate().usage
ReyGridAuthError.