(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

Create Account Session API

createAccountSession

Synopsis

This API function creates a session for an account so that widgets can be launched and linked to it such as the SWF MMS Composer Object or the MMS Preview SWF Objects. Note that an account session can only be used for web-viewable resources for particular accounts with this API enabled.

Request: XML

<REQUEST>
    <ACTION>createAccountSession</ACTION>
    <API_KEY>apiKey</API_KEY>
</REQUEST>

Request Parameters

TermMandatory/OptionalDescription
ACTIONMandatoryThis is the name of the function you want to execute with the API.
API_KEYMandatoryRandom 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”.
SESSIONIDSuccess response only Unique ID of a session for the account so that widgets can be launched and linked to it.
ERRORCODEError response onlyError code associated with the error.
ERRORINFOError response onlyError message explaining the error code.
N/A

Request Example: XML

<REQUEST>
    <ACTION>createAccountSession</ACTION>
    <API_KEY>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</API_KEY>
</REQUEST>

Response Example: Success

<RESPONSE>
    <STATUS>Success</STATUS>
    <SESSIONID>5147ca89c151574ce85225f59a115ec459b3c68a</SESSIONID>
</RESPONSE>

Response Example: Failure

<RESPONSE>
    <STATUS>Failure</STATUS>
    <ERRORCODE>E107</ERRORCODE>
    <ERRORINFO>This account has no rights to use this action.</ERRORINFO>
</RESPONSE>

General Error Codes

CodeDescription
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.
Go to Top