Skip to content

Get logs for specific message in user domain

GET
/api/domains/{domain}/log/{message_guid}
curl --request GET \
--url https://smtp-app.kirim.email/api/domains/example.com/log/550e8400-e29b-41d4-a716-446655440000 \
--header 'Authorization: Basic <credentials>'

Retrieve all logs for a specific message in a domain owned by the authenticated user

domain
required
string
Example
example.com

Domain name that must be owned by the authenticated user. The domain must be verified and properly configured for email sending.

message_guid
required
string
Example
550e8400-e29b-41d4-a716-446655440000

Message GUID

Success

Media typeapplication/json
object
data

Array of log entries for the specific message in the user’s domain

Array<object>

Email log entry

object
id

Unique identifier for the log entry

string
user_guid

GUID of the user who sent the email

string
user_domain_guid

GUID of the domain used to send the email

string
event_type

Type of email event (sent, delivered, bounced, opened, clicked, etc.)

string
message_guid

Unique identifier for the email message

string
timestamp

Unix timestamp when the event occurred

integer
Example
{
"data": [
{
"id": "log-id-123",
"user_guid": "user-guid-123",
"user_domain_guid": "domain-guid-456",
"event_type": "delivered",
"message_guid": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": 1640995200
}
]
}
X-RateLimit-Limit
integer

Maximum requests per minute

X-RateLimit-Remaining
integer

Remaining requests in current window

Bad Request - User authentication missing

Media typeapplication/json
object
error
string
Example
{
"error": "User authentication missing"
}

Unauthorized - Invalid or missing authentication

Media typeapplication/json
object
error
string
Example
{
"error": "Unauthorized"
}

Not Found - Domain or log not found

Media typeapplication/json
object
error
string
Example
{
"error": "Domain not found or you do not own this domain"
}

Too Many Requests - Rate limit exceeded. Retry after the specified time.

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "Too many attempts. Please try again later."
}
Retry-After
integer

Seconds until rate limit resets

X-RateLimit-Limit
integer

Maximum requests per minute

X-RateLimit-Remaining
integer

Remaining requests in current window

Server Error - Unexpected error occurred

Media typeapplication/json
object
error
string
Example
{
"error": "Unknown error"
}