SerenAI

Pay Per Call Agentic Commerce

EstimateRequestBody

Query estimate request body

Properties

PropertyTypeRequiredDescription
asset_id string,null No Optional asset id to estimate pricing for (defaults to publisher primary asset)
publisher_id string Yes Publisher UUID
query string Yes Query payload to estimate. - SQL publishers (serendb/neon/supabase): SQL string - MongoDB publishers: JSON string matching `MongoDbQuery`
View JSON Schema
{
  "type": "object",
  "description": "Query estimate request body",
  "required": [
    "publisher_id",
    "query"
  ],
  "properties": {
    "asset_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Optional asset id to estimate pricing for (defaults to publisher primary asset)"
    },
    "publisher_id": {
      "type": "string",
      "format": "uuid",
      "description": "Publisher UUID"
    },
    "query": {
      "type": "string",
      "description": "Query payload to estimate.\n\n- SQL publishers (serendb/neon/supabase): SQL string\n- MongoDB publishers: JSON string matching `MongoDbQuery`"
    }
  }
}