# List Sent Messages Retrieves a list of all sent messages. Endpoint: GET /v2/sent_messages Version: 1.0.0 Security: apiKeyAuth, practiceGroupId ## Query parameters: - `page_index` (string) - `page_size` (string) - `order_by` (string) Enum: "patient_first_name", "patient_last_name", "patient_full_name", "created_at", "sent_at" - `order_descending` (boolean) - `patient_first_name` (string) - `patient_last_name` (string) - `patient_full_name` (string) - `patient_id` (string) - `recipient_contact_detail` (string) - `write_to_record_status` (string) Enum: "success", "failed", "not_written" - `message_type` (any) - `short_link_id` (string) - `short_link_type` (string) - `campaign_id` (string) - `status` (any) - `scheduled` (boolean) - `sent_by` (string) - `sent_at[]` (array) - `scheduled_at[]` (array) ## Response 200 fields (application/json): - `data` (array, required) - `data.id` (string, required) - `data.patient` (object, required) - `data.patient.title` (string,null, required) Enum: "Baron", "Baroness", "Brigadier", "Count", "Colonel", "Countess", "Captain", "Dame", "The Dowager Viscountess", "Dr", "Duchess", "Duke", "Earl", "His Excellency", "Father", "H.E. Ambassador Mr", "H.E. Mr", "H.E. Mrs", "Her Grace", "His Grace", "The Hon", "The Hon Mr", "The Hon Mrs", "HRH", "HRH Prince", "HRH Princess", "Insurance", "HM King", "Lady", "Lord", "Major", "Master", "Miss", "Mr", "Mrs", "Ms", "Mss", "Mx", "Pr", "Professor", "HM Queen", "Rabbi", "Reverend", "Sheikh", "Sheikha", "Sir", "The", "", "Viscount", "Viscountess" - `data.patient.first_name` (string, required) - `data.patient.last_name` (string, required) - `data.write_to_record` (object, required) - `data.write_to_record.write_to_record_at` (string,null, required) - `data.write_to_record.status` (string,null, required) - `data.write_to_record.failure_reason` (string,null, required) - `data.write_to_record.snomed_code` (string,null, required) - `data.short_link` (object,null, required) - `data.short_link.type` (string,null) - `data.short_link.name` (string,null) - `data.campaign` (object,null, required) - `data.created_at` (string,null, required) - `data.sent_at` (string,null, required) - `data.scheduled_at` (string,null, required) - `data.sent_by` (string, required) - `data.recipient_contact_detail` (string, required) - `data.message_type` (string, required) - `data.message` (string,null, required) - `count` (number, required) ## Response 400 fields (application/json): - `error` (boolean, required) - `statusCode` (number, required) - `message` (array, required) - `message.code` (string, required) - `message.expected` (string, required) - `message.path` (array, required) ## Response 401 fields ## Response 404 fields ## Response 500 fields