Skip to content

Op Credit Callback

POST
/callbacks/ops/{op_run_id}/credits/{action}
curl --request POST \
--url https://example.com/callbacks/ops/example/credits/validate

Forward credit ops to platform-api /internal/credits/{action}.

The callback token authenticates the op container; platform-api receives only the HMAC-signed mesh call and decides whether the credit op is permitted (account ownership, balance, etc.).

op_run_id
required
string
action
required
string
Allowed values: validate reserve finalize

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}