List operations with credit costs
GET
/v1/operations
const url = 'https://example.com/v1/operations';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/operations \ --header 'Authorization: Bearer <token>'Return the gateway-local op config — name, op_class, credit cost, and administrative enabled flag.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
OperationsResponse
GET /v1/operations response.
object
operations
required
Operations
Array<object>
OperationOne CTM operation as priced + gated by this gateway.
object
name
required
Name
Kebab-case workflow name — the {name} of POST /v1/{name}.
string
op_class
required
Op Class
Pricing class: generator (catalog assets) | compose (product-to-model) | edit (swaps).
string
credits_cost
required
Credits Cost
Flat per-dispatch credit cost for this operation.
integer
enabled
required
Enabled
False when the operation is administratively disabled on this gateway.
boolean
Example
{ "operations": [ { "op_class": "generator" } ]}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}