Skip to content
Proud to collaborate with Microsoft for Startups

agents.price-config.upsert ​

Create or replace an organisation-specific model price override

Upsert an org-specific price override for a model.

Retires any existing active row for the same org+model before inserting the new one, preserving the full price history as an audit trail.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIPOST /api/agents/price-configsCreate or replace an org-specific model price override

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
model_namestringYes——
price_per_1m_prompt_usdfloatNo——
price_per_1m_completion_usdfloatNo——
price_per_1m_cache_read_usdfloatNo——
price_per_1m_cache_write_usdfloatNo——
price_per_1m_reasoning_usdfloatNo——
unitstringNo——
price_per_unit_usdfloatNo——
model_familystringNo——
effective_fromstringNo——
context_window_tokensintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
model_namejsonNo——
upsertedjsonNo——
organization_uuidjsonNo——
price_per_1m_prompt_usdjsonNo——
price_per_1m_completion_usdjsonNo——
price_per_1m_cache_read_usdjsonNo——
price_per_1m_cache_write_usdjsonNo——
price_per_1m_reasoning_usdjsonNo——
unitjsonNo——
price_per_unit_usdjsonNo——
model_familyjsonNo——
effective_fromjsonNo——
context_window_tokensjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.price-config.upsert",
  "initial_data": {
    "organization_uuid": "value",
    "model_name": "value"
  }
}