Get Agent Sample Record
Pull the latest record from the topic that matches topicPattern.
Useful as a concrete sample record for POST /agents/test-run.
Returns 200 in every “no record” case (regex matches no topic, every
matched topic is empty, deserialization fails), with the reason in the
response body rather than an HTTP error.
Requires read:agents.
Per-tenant rate limit: 30 req/min -> 429 with Retry-After.
POST
/agents/sample-recordAuthorization
AuthorizationBearer token · headerrequiredRequest body
requiredapplication/jsontopicPatternstringrequiredRegex pattern for input topics, e.g. '^(orders)$'
min length 1 · max length 1024
inputSerializationSampleRecordSerializationEnumrequiredFormat used to deserialize the latest record
Allowed:
AvroConfluentJsonConfluentProtobufStringResponses
200
Successful Response
recordobject | nullThe latest deserialized record, or null if none was found
Show propertiesHide properties
Any of:
object
objectnull
nullsourceTopicstring | nullConcrete topic name the record came from after regex resolution
Show propertiesHide properties
Any of:
string
stringnull
nullerrorMessagestring | nullSet when a topic was found but its latest record could not be read or deserialized
Show propertiesHide properties
Any of:
string
stringnull
null422
Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject