API reference
Data import: Cost sources
Use a Data import key to declare non-LLM cost sources from CLI/import jobs.
This is the current Data import API surface. It lets a trusted CLI or backend import job declare cost sources that Pylva should track and price. It is not a general historical customer or event upload endpoint.
For the full coverage workflow, see Cost Source Discovery.
For tiered pricing, send
Authentication
Use a Data import key as a bearer token.Request
pricing_tiers instead of price_per_unit:
Response
Notes
- Re-running the same
slugis idempotent and returns the existing cost source. - Use this endpoint from server-side import jobs only.
- Use an Agent SDK key to send telemetry events.
- Use an Admin API key to mutate custom pricing and other elevated project settings.