json.extract! message, :id, :token, :scope, :rcpt_to, :mail_from, :subject, :message_id, :timestamp, :route_id, :domain_id, :credential_id, :status, :held, :size, :last_delivery_attempt, :raw_table, :raw_body_id, :raw_headers_id, :inspected, :spam, :spam_score, :threat, :threat_details, :bounce, :bounce_for_id, :tag, :loaded, :clicked, :received_with_ssl, :hold_expiry, :tracked_links, :tracked_images, :parsed, :endpoint_id, :endpoint_type, :created_at, :updated_at json.url message_url(message, format: :json)