Op Credit Callback
POST
/callbacks/ops/{op_run_id}/credits/{action}
const url = 'https://example.com/callbacks/ops/example/credits/validate';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/callbacks/ops/example/credits/validateForward 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.).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” op_run_id
required
string
action
required
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
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": {} } ]}