Skip to navigation

Get Message Body

The rendered html and text of a message as it was sent. Bodies are kept for 30 days after send and then removed: after that the message itself still reads normally, but this endpoint answers 404 message.body_unavailable.

Authentication

AuthorizationBearer

A workspace key (rray_live_…, bound to one workspace) or the account’s platform key. Platform keys name the target workspace with RRay-Workspace-Id. See Credentials.

Path parameters

message_idstringRequired

Headers

RRay-Workspace-Idstring or nullOptional

The workspace to act on. Required with a platform key; rejected with a workspace key, which already carries its workspace — a matching value is rejected too, rather than silently ignored. An id that is not yours returns 404 workspace.not_found.

Response

Successful Response
idstring
Identifier of the message.
object"message_body"OptionalDefaults to message_body

Always message_body.

htmlstring or nullOptional

HTML body as sent; null if the message had none.

textstring or nullOptional

Plain-text body as sent; null if the message had none.

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error