Your app's data · Read with a key
Snowflake (request log query)
Request-level AI usage rows with customer ids from your own Snowflake tables, read by a SQL query you write and mapped to model, tokens, customer, feature and cost.
- How data moves
- AI Spendbook reads it on a schedule with a key, token or read-only role you give it.
- Credential
- API key or token
- What it covers
- request telemetry
- Money
- An estimate priced by AI Spendbook, never a bill
- Runs
- each scheduler run (daily on the hosted deployment)
- Freshness
- As fresh as your table at the time of the sync.
- History on first sync
- Up to 365 days
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- Create a service user and a role with USAGE on a warehouse and SELECT on the request log table.
- Create a programmatic access token for the user.
- Write one SELECT that returns one row per AI request with two ? placeholders for the sync window: WHERE created_at >= TO_TIMESTAMP_TZ(?) AND created_at < TO_TIMESTAMP_TZ(?).
- Map the result columns (upper case unless quoted) to the request fields, validate, then sync.
What it needs
A service user with a programmatic access token and a role limited to USAGE on the warehouse and SELECT on the tables the query reads.