Overview
GET
/messaging/log/{id}messagingGet a single message-log entry by id (admin)
Fetch a record from log by id.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Responses
200
Message-log entry
- idstring
- customerIdstring
Target user (recipient) id
- deletedAtoptionalstring?
- ecosystemIdstring
Ecosystem (tenant) id
- channel"email" | "sms"
- recipientstring
Resolved destination (email address or phone)
- subjectoptionalstring?
- bodystring
- templateIdoptionalstring?
- status"sent" | "failed"
Send outcome
- providerIdoptionalstring?
Provider message id (when sent)
- errorMessageoptionalstring?
- sentByoptionalstring?
Admin user id who issued the send
- createdAtstring
Example
{
"id": "string",
"customerId": "string",
"deletedAt": "string",
"ecosystemId": "string",
"channel": "email",
"recipient": "string",
"subject": "string",
"body": "string",
"templateId": "string",
"status": "sent",
"providerId": "string",
"errorMessage": "string",
"sentBy": "string",
"createdAt": "string"
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}403
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/messaging/log/{id}" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/messaging/log/{id}", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();