(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.data-privacy-src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TT9ZP96');

Knowledge Base

Get Messaging Campaigns API



This API function returns a list of MMS Campaigns for that account. Returned data consists of the campaign ID from our system, campaign name, and campaign reference ID.

Request: XML


Request Parameters

ACTIONMandatoryThis is the name of the function you want to execute with the API.
API_KEY Mandatory Random key that is assigned to an account that can be used for authorization instead of USER/PASS. You can find and regenerate this key on the ‘API Settings’ page.

Response Parameters

Param NamePresenceDescription
STATUSAlways“Success” or “Failure”.
MESSAGINGCAMPAIGNS Success response onlyThe list of messaging campaigns for the account.
MESSAGINGCAMPAIGNS:CAMPAIGNSuccess response only The messaging campaign details including campaign ID, campaign name, and campaign reference.
MESSAGINGCAMPAIGNS:CAMPAIGN:NAMESuccess response only The name of the campaign.
MESSAGINGCAMPAIGNS:CAMPAIGN:REFERENCESuccess response onlyThe campaign reference.
ERRORCODEError response onlyError code associated with the error.
ERRORINFOError response onlyError message explaining the error code.

Request Example: XML


Response Example: Success

            <NAME>Winter Sale</NAME>
            <NAME>Summer Sale</NAME>
            <NAME>Store opening</NAME>

Response Example: Failure

    <ERRORINFO>No Messaging Campaigns were created in this account</ERRORINFO>

General Error Codes

E100Invalid request. Make a valid request via GET/POST/XML with all the required variables.
E104User Authentication Failed.
E105This account has no API rights.
E106You can call API every X seconds.
E107This account has no rights to use this action.
E108XML Parse error: $error.
E109API not activated.
E112IP was not whitelisted. API call rejected.
E113Set throughput exceeded for this API action. API call rejected.
E114Phone number is blacklisted. API call rejected.
E120Account has reached the API request limit.
E503Internal error.
E405No Messaging Campaigns were created in this account
Go to Top