1. Messages
Sudonum API
Sudonum
  • Sudonum
  • v2
    • Number
      • :number
        • Single Number
        • Replace Number
        • Release Number
        • Update Number
      • Search
        • Search Numbers to Buy
      • Bulk
        • Replace Numbers in Bulk
        • Buy Numbers in Bulk
        • Update Numbers in Bulk
      • List of Numbers
      • Buy Number
    • Whatsapp
      • Flows
        • :uuid
          • Single Flow
          • Update Flow
          • Preview Flow
          • Not supported.
        • List of Flows
        • Not supported.
      • Accounts
        • :uuid
          • Single WhatsApp Account
          • Partial update a WhatsApp Account
        • List of WhatsApp Accounts
      • ChatIntroLogs
        • :chat_intro_log_uuid
          • Status Logs for a Chat Intro Log
          • Single Status Log for a Chat Intro Log
        • :uuid
          • Single Chat Intro Log
        • List of Chat Intro Logs
      • ChatIntros
        • :uuid
          • Single Chat Intro
          • Replace Chat Intro
          • Delete Chat Intro
          • Update Chat Intro
        • :chat_intro_uuid
          • Chat Intro Logs for a Chat Intro
        • List of Chat Intros
        • Create Chat Intro
        • Submit a batch of chat-intro creates, updates or deletes
        • Per-row results for one bulk job, paginated.
        • List bulk jobs, or read one with its progress
      • MessageTemplates
        • :uuid
          • Single Message Template
        • List of Message Templates
      • Messages
        • :uuid
          • Single WhatsApp Message
        • Send Message
          POST
        • All Messages
          GET
      • Webhooks
        • :uuid
          • Single WhatsApp Webhook
          • Replace WhatsApp Webhook
          • Update WhatsApp Webhook
          • Delete WhatsApp Webhook
        • List of WhatsApp Webhooks
        • Create WhatsApp Webhook
      • TemplateMedia
        • List of WhatsApp Media
        • Upload WhatsApp Media
      • Lead
        • :number
          • Submit a lead
          • List the leads submitted against a WhatsApp number.
    • RoutingConfigs
      • :uuid
        • Single Routing Config
        • Replace Routing Config
        • Update Routing Config
        • Delete Routing Config
      • List of Routing Configs
      • Create Routing Config
    • Audiofiles
      • :name
        • Delete Audio File
      • List of Audio Files
      • Upload Audio File
    • Logs
      • Billable
        • List of Billable Number Logs
      • Raw
        • List of Raw Number Logs
      • VoiceCall
        • List of Voice Call Logs
    • SendSms
      • Bulk
        • Send multiple SMSes
      • Send an SMS
    • Status
      • Sms
        • Status of the SMS Network
      • Voice
        • Status of the Voice Network
    • Webhooks
      • :name
        • Single Webhook
        • Replace Webhook
        • Delete Webhook
        • Update Webhook
      • List of Webhooks
      • Create Webhook
    • Campaign
      • Campaigns
        • :uuid
          • Single Campaign
          • Replace Campaign
          • Update Campaign
          • Delete Campaign
          • Sample CSV for Campaign
          • Upload Contacts to Campaign
        • List of Campaigns
        • Create Campaign
      • Logs
        • :uuid
          • Single Campaign Log
          • Replace Campaign Log
          • Update Campaign Log
          • Delete Campaign Log
          • Opted-out Contacts
        • List of Campaign Logs
        • Create Campaign Log
        • Export Campaign Logs
      • Contacts
        • :uuid
          • Single Contact
          • Replace Contact
          • Update Contact
          • Delete Contact
        • List of Contacts
        • Create Contact
        • Download Contact CSV Sample File
        • Upload Contact CSV
      • CampaignLists
        • :uuid
          • Single Campaign List
          • Replace Campaign List
          • Update Campaign List
          • Delete Campaign List
          • List Contacts under Campaign List
          • Export Contacts under Campaign List
        • List of Campaign Lists
        • Create Campaign List
      • OptOuts
        • :uuid
          • Single Opt-out
          • Replace Opt-out
          • Update Opt-out
          • Single Opt-out/Opt-in Event
        • List of Opt-outs
        • Create Opt-out
        • List of Opt-out/Opt-in Events
    • Sumi
      • Config
        • :uuid
          • Update SUMI Config
          • Single SUMI Config
        • List of SUMI Configs
        • Create SUMI Config
      • Agent
        • :uuid
          • Single SUMI Agent Config
        • List of SUMI Agent Configs
    • AvailableNumbers
      • List of Available Number Prefixes
    • CallDetailRecords
      • List of Call Detail Records
    • Insights
      • Number
        • Number Insights
    • SmsRecords
      • List of SMS Records
    • VoiceCall
      • Start a call
    • Blacklist
      • Number
        • :uuid
          • Single Blacklisted Number
          • Replace Blacklisted Number
          • Update Blacklisted Number
          • Delete Blacklisted Number
        • List of Blacklisted Numbers
        • Create Blacklisted Number
  • v3
    • Sumi
      • Jobs
        • :uuid
          • Retrieve a job
        • Submit a job
        • List Jobs
  • Schemas
    • ErrorDetailResponse
    • WhatsAppAccount
    • BulkChatIntrosPerformActionEnum
    • CreateCampaignRequest
    • JobSubmit
    • PatchedUpdateContactRequest
    • UpdateContactRequest
    • ValidationError
    • CreateContactRequest
    • SumiInsights
    • PatchedUpdateCampaignRequest
    • LeadNumberNotFoundResponse
    • AvailableNumber
    • UpdateCampaignRequest
    • PatchedWhatsAppAccount
    • CreateSMSBulkRequest
    • CreateWebHookRequest
    • ListCampaign
    • DataSource
    • RoutingConfig
    • ActionEnum
    • PaginatedRoutingConfigList
    • ChatIntroLogStatusEnum
    • ListCampaignLog
    • BlankEnum
    • FlowStatus
    • BuyNumberRequest
    • PatchedRoutingConfigRequest
    • CreateAudioFile
    • NetworkStatus
    • CreateMessageRequest
    • CreateSMSRequest
    • MessagePage
    • ListDIDProviderFilter
    • DataSourceTypeEnum
    • OptOutStaffOnlyResponse
    • BillableNumbersLogTable
    • RoutingConfigInUseResponse
    • PaginatedListSudoWorkFlowDataList
    • CreateMediaRequest
    • ListMessage
    • ErrorDetail
    • RoutingConfigRequest
    • SudoWorkFlowData
    • BulkCreateChatIntrosPerformActionEnum
    • FlowCategory
    • BulkCreateChatIntrosRequest
    • ValidationErrorResponse
    • WorkFlowRequest
    • JobCreated
    • MediaMessageUploadRequest
    • CreateOptOutContactLogRequest
    • ListOptOutList
    • ChatIntroBulkLogDetail
    • ListOptOutListRequest
    • ChatIntroBulkAccepted
    • OptOutEvent
    • ChatIntroBulkLogs
    • PatchedListOptOutListRequest
    • BulkDeleteChatIntrosRequest
    • CampaignErrorResponse
    • ListWebHook
    • Flow
    • PaginatedListMessageList
    • BulkUpdateChatIntrosRequest
    • JobList
    • ListBlacklistedNumbers
    • LeadSubmit
    • MessageType
    • FlowList
    • ValidationErrorBody
    • CreateNumberRequest
    • MessageDirection
    • PaginatedListWebHookList
    • FlowUpdate
    • JobDetail
    • LeadPage
    • SUMIAgentConfig
    • ListBlacklistedNumbersRequest
    • MessageStatus
    • ListChatIntroLog
    • FlowPreview
    • PaginatedAudioFileList
    • Detail
    • PatchedUpdateWebHookRequest
    • CampaignUploadResponse
    • PreviewError
    • ErrorsBody
    • PaginatedListDIDProviderFilterList
    • UpdateWebHookRequest
    • PaginatedListBlacklistedNumbersList
    • Error
    • ContactUploadResponse
    • JobCallback
    • DetailBody
    • SMSBulkFailedResponse
    • CreateCampaignListRequest
    • Moments
    • ListNumber
    • PatchedListBlacklistedNumbersRequest
    • NumberLog
    • ExportJobResponse
    • CreateWebhookRequest
    • ListCampaignList
    • ListCampaignLogRequest
    • NumberInUseResponse
    • ListContacts
    • PaginatedListCampaignList
    • PaginatedListCampaignListList
    • SMSBulkSentResponse
    • PaginatedListCampaignLogList
    • MomentsRequest
    • PaginatedListContactsList
    • PaginatedBillableNumbersLogTableList
    • PaginatedListOptOutListList
    • DetailFlow
    • PaginatedListContactListList
    • ChatIntroCreate
    • PaginatedListNumberList
    • PaginatedOptOutEventList
    • ChatwootInbox
    • PatchedListCampaignLogRequest
    • SMSQueuedResponse
    • PatchedUpdateCampaignListRequest
    • PaginatedPipelineContextList
    • PatchedUpdateNumberRequest
    • UpdateCampaignListRequest
    • PaginatedNumberLogList
    • ChannelTypeEnum
    • Destination
    • CampaignStatusEnum
    • CampaignLog
    • Route
    • SearchNumberRequest
    • RoutingDestination
    • PaginatedSUMIAgentConfigList
    • UpdateNumberRequest
    • RoutingDestinationTypeEnum
    • PaginatedVoiceCallLogList
    • RoutingConditions
    • FlowPreviewErrorResponse
    • RoutingTimeOfDay
    • RoutingWeekdayEnum
    • RoutingFallbackTriggerEnum
    • ChatIntroBulkInFlightResponse
    • RouteRequest
    • PatchedPipelineContextRequest
    • RoutingDestinationRequest
    • FlowPreviewResponse
    • RoutingConditionsRequest
    • RoutingTimeOfDayRequest
    • TextMessageRequest
    • TextMessageTypeEnum
    • PipelineContext
    • TemplateMessageRequest
    • VoiceCallLog
    • TemplateMessageTypeEnum
    • ListAccount
    • InteractiveMessageRequest
    • InteractiveMessageTypeEnum
    • MediaMessageRequest
    • CreateMediaTypeEnum
    • ChatIntroBulkItemResult
    • ContactsMessageRequest
    • PipelineContextRequest
    • ContactsMessageTypeEnum
    • LocationMessageRequest
    • MessageLocationRequest
    • LocationMessageTypeEnum
    • ReactionMessageRequest
    • ListSudoWorkFlowData
    • ProviderEnum
    • MessageReactionRequest
    • ListChatIntroLogStatusLog
    • ReactionMessageTypeEnum
    • Message
    • Type72aEnum
    • DirectionEnum
    • ListFlow
    • CampaignCategoryEnum
    • OriginEnum
    • OptOutCategoryEnum
    • JobStatus
    • ListMedia
    • Enquirer
    • ReplyAlt
    • Listing
    • TranscriptSegment
    • ListMediaTypeEnum
    • ReportCard
    • TimeOfDay
    • MomentMatches
    • LeadRecord
    • ListContactList
    • ListMessageTemplate
    • CreateChatIntroRequest
    • ListMessageTemplateTypeEnum
    • ListWebhook
    • BulkChatIntrosRequest
    • CreateSpecificNumberRequest
    • ListChatIntro
    • PaginatedListAccountList
    • PaginatedListChatIntroLogStatusLogList
    • PaginatedListFlowList
    • PaginatedListChatIntroList
    • PaginatedListMediaList
    • PaginatedListChatIntroLogList
    • PaginatedListMessageTemplateList
    • CreateCampaign
    • PatchedUpdateChatIntroRequest
    • PaginatedListWebhookList
    • ReplyType72aEnum
    • PatchedUpdateFlowRequest
    • ReplyTypeBa7Enum
    • ChannelsEnum
    • PatchedUpdateWebhookRequest
    • UpdateCampaign
    • UpdateChatIntroRequest
    • UpdateWebhookRequest
    • WebhookTypeEnum
    • ChatIntro
    • RouteConditions
    • BulkDeleteChatIntrosPerformActionEnum
    • AudioFile
    • CampaignListContactUploadRequest
    • NumberSIPAgentStatusEnum
    • RouteFallback
    • CountryCodeIsoEnum
    • PrefixTypeEnum
    • BulkUpdateChatIntrosPerformActionEnum
    • RoutingConfigWrite
    • RoutingConfigPatch
    • ChatIntroBulkItem
    • ContactUploadRequest
    • ChatIntroBulkItemStatusEnum
    • RoutingConfigValidationErrorBody
    • ResourcesExistBody
    • ChatIntroBulkLogResult
    • CreateCampaignList
    • ChatIntroBulkRequest
    • PaginatedChatIntroBulkItemList
    • CreateContact
    • PaginatedChatIntroBulkLogs
    • CreateOptOutContactLog
    • ListContactsRequest
    • NullEnum
    • PatchedListContactsRequest
    • UpdateCampaignList
    • MessageTemplate
    • MessageContent
    • MessageContacts
    • MessageText
    • MessageLocation
    • MessageReaction
  1. Messages

All Messages

GET
https://api.sudonum.com/v2/whatsapp/messages/
Returns one page of the WhatsApp messages of your organisation, newest first. The list holds no REACTION messages.
Pages. The response has no count. Follow next until it is null, and use each next link as it is. The offset, (page - 1) * page_size, cannot be more than 2,000,000. A deeper page answers 404, and next stops before it.
Date window. Without from_date and to_date, the list holds the last 60 days. Give one date, and the other is 60 days away from it. The two dates can be at most 60 days apart. To read deeper than the offset limit, use a smaller window.
Messages of a campaign. Give campaign_log_uuid to list the messages of one campaign run. A campaign holds this value in campaign_log.uuid.

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.sudonum.com/v2/whatsapp/messages/?campaign_log_uuid=&context_data=&direction=&from_date=&from_whatsapp_number=&page=&page_size=&status=&to_date=&to_whatsapp_number=&type=' \
--header 'Authorization: <api-key>'

Responses

🟢200OK
application/json
OK
Bodyapplication/json

Examples
{
    "next": "https://api.sudonum.com/v2/whatsapp/messages/?page=2&page_size=2",
    "previous": null,
    "results": [
        {
            "uuid": "6f5e33df-e179-4108-9fc9-533af53caea5",
            "type": "TEXT",
            "status": "DELIVERED",
            "status_description": "",
            "whatsapp_number": "27104773424",
            "direction": "INBOUND",
            "from_whatsapp_number": "27833052562",
            "from_bsuid": null,
            "to_whatsapp_number": "27104773424",
            "to_bsuid": null,
            "message_data": {
                "text": "Hello, World!"
            },
            "meta_data": {},
            "context_data": {},
            "campaign_log_uuid": null,
            "is_coexistence": false,
            "is_history": false,
            "created": "2026-08-28T08:25:47.559162Z",
            "modified": "2026-08-28T08:25:47.559267Z"
        },
        {
            "uuid": "f7bd1b18-4541-4782-a4a0-8fc4f19796c6",
            "type": "IMAGE",
            "status": "READ",
            "status_description": "read",
            "whatsapp_number": "27104773424",
            "direction": "INBOUND",
            "from_whatsapp_number": "27833052562",
            "from_bsuid": null,
            "to_whatsapp_number": "27104773424",
            "to_bsuid": null,
            "message_data": {
                "url": "https://api.sudonum.com/v2/whatsapp/media/8c1f0e14-2a77-4d3e-9f1b-6a2c5d0e7b43/",
                "caption": "a caption",
                "mime_type": "image/jpeg"
            },
            "meta_data": {},
            "context_data": {},
            "campaign_log_uuid": null,
            "is_coexistence": false,
            "is_history": false,
            "created": "2026-08-28T08:25:47.557894Z",
            "modified": "2026-08-28T08:25:47.557943Z"
        }
    ]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠429Too Many Requests
Modified at 2026-10-22 07:56:10
Previous
Send Message
Next
Single WhatsApp Webhook
Built with