Skip to navigation

Retrieve a catalog model

One catalog model with the price version in force expanded as price: the rates, the source, and when the rates take effect. Needs config:read.

Authentication

AuthorizationBearer

A secret key (rl_sk_test_..., rl_sk_live_...) or a restricted key with limited scopes (rl_rk_test_..., rl_rk_live_...). A restricted key can carry agent: true and an expires_at, and is what a coding agent should hold. Keys end in a checksum so secret scanners can recognize them. People create, roll and revoke keys in the dashboard; GET /v1/api_keys lists them, masked.

Path parameters

catalog_modelstringRequired

The catalog model ID (catm_...).

Response

The catalog model.
idstring
object"catalog_model"
providerstring
The provider key.
modelstring

The model ID as the provider names it, as trace() sends it.

namestring
statusenum

active: priced and kept current. deprecated: the provider has retired or replaced it. Existing cost models keep working with the last price version, and no new price versions are published.

Allowed values:
unitslist of objects
dimensionslist of objects
last_verified_atdatetime
When Runledger last checked this model's prices against their source.
kindenumOptional

What the model produces. Open: new values may be added.

current_pricestringOptional

The price version in force now (catp_...). Left out until one is.

current_price_versionintegerOptional
priceobjectOptional
The price version in force, expanded. Only on retrieve.
updated_atdatetimeOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error