API Response Codes

API response codes for Messaging, Profile and Events API

Messaging API

The API will respond with a return code to report the status of the request.

1001

MessageDescription
QueuedReturned when the request is accepted by IMIconnect.

7000

MessageDescription
Invalid JSONReturned when an invalid JSON request is sent.

7001

MessageDescription
Authentication failedReturned when an invalid service key or profile key is provided in the request.

7002

MessageDescription
Service Key MissingReturned when the parameter key is missing in the message request.

7003

MessageAPIDescription
any one of [customerid,msisdn,email, userid,pushid,fbid, twitterid, wechatid] is mandatoryMessagingReturned when a mandatory parameter is missing for destination.
param 'text' is missing for androidMessagingReturned when parameter text or its value is missing for Android in apnp object.
param 'text' is missing for iosMessagingReturned when the parameter text or its value is missing for iOS in apnp object.
param 'apnp' missing for push channelMessagingReturned when the parameter apnp is missing.
either android or ios information is mandatory for push channelMessagingReturned when the push channel is missing in apnp object.
param 'text' missing for channel fbMessagingReturned when the parameter text or its value is missing for Facebook channel.
param 'OTT-Messaging' missing for channel fbMessagingReturned when the OTT-Messaging object is missing when deliverychannel is Facebook.
param 'fb' missing for channel fbMessagingReturned when the fb object is missing in OTT-Messaging object.
param 'text' missing for channel wechatMessagingReturned when the parameter text or its value is missing for WeChat channel.
param 'wechat' missing for channel wechatMessagingReturned when the wechat object is missing in OTT-Messaging object.
param 'OTT-Messaging' missing for channel wechatMessagingReturned when the OTT-Messaging object is missing when deliverychannel is WeChat.
param 'text' missing for channel whatsappMessagingReturned when the parameter text or its value is missing for WhatsApp channel.
param 'whatsapp' missing for channel whatsappMessagingReturned when the wa object is missing in OTT-Messaging object.
param 'OTT-Messaging' missing for channel whatsappMessagingReturned when the OTT-Messaging object is missing when deliverychannel is WhatsApp.
param 'text' missing for channel twitterMessagingReturned when the parameter text or its value is missing for Twitter channel.
param 'twitter' missing for channel twitterMessagingReturned when the twitter object is missing in OTT-Messaging object.
param 'OTT-Messaging' missing for channel twitterMessagingReturned when the OTT-Messaging object is missing when deliverychannel is Twitter.
param 'text' missing for channel rtMessagingReturned when the parameter text or its value is missing for rt channel.
param 'rt' missing for channel rtMessagingReturned when the rt object is missing when deliverychannel is rt.
param 'body' missing for channel smsMessagingReturned when the parameter body or its value is missing for sms channel and the parameter type is not selected as text (1).
param 'text' missing for channel smsMessagingReturned when the parameter text or its value is missing for sms channel.
param 'sms' missing for channel smsMessagingReturned when the sms object is missing when deliverychannel is sms.
either param 'callflowid' or param 'media' is requiredMessagingReturned when the parameters callflowid or media or their values are missing for voice channel.
param 'voice' missing for channel voiceMessagingReturned when the voice object is missing when deliverychannel is voice.
No destination channel information found in requestMessagingReturned when the value is missing for deliverychannel.
param 'deliverychannel' missingMessagingReturned when the deliverychannel is missing.
mandatory param device_types missingMessagingReturned when device_types object is missing in interactive object.
mandatory param value missing for action xxxMessagingReturned when the parameter value is missing in actions array.
mandatory param pos missingMessagingReturned when the parameter pos is missing in actions array.
mandatory param category missingMessagingReturned when the parameter category is missing in interactive object.
mandatory param actions missingMessagingReturned when the parameter actions is missing in interactive object.

7004

MessageDescription
invalid value for param 'priority', it should be one of [1,2,3,4,5]Returned when the parameter priority value is other than 1 to 5 for rt channel.
invalid value of param 'type' , only [1,2,3,4] are allowedReturned when the parameter type value is other than 1 to 4 for sms channel.
invalid delivery channelReturned when the parameter deliverychannel value is other than sms, voice, apnp, rt, fb, twitter, wa, wechat, or ir.
invalid device type xxx, only ios or android is allowedReturned when the parameter device_types value is other than ios or android.
duplicate device type xxxReturned when duplicate position value is provided in device_types array in interactive object.
invalid value of param pos, duplicate values for pos are not allowedReturned when duplicate position value is provided in actions array in interactive object.
invalid value of param action or action is invalid for this channelReturned when an invalid action is provided in actions array in interactive object.
invalid value of param value, specified value is invalid for action xxxReturned when an invalid value is provided in value parameter in interactive actions object.
invalid action for identifier xxxReturned when an invalid action is provided for corresponding category.
invalid identifier or no actions mapped for this identifierReturned when the corresponding identifiers for category are not mapped to the identifiers that are there for actions.
no identifier found for this category and at this positionReturned when identifiers are not found for a category.
invalid value of param pos, only positions [xx,xx] are allowed for this categoryReturned when an invalid position value is provided that is not there for corresponding category.
invalid number of actions, expected actions size xx, but found xxReturned when an unexpected number of actions found in interactive object.
invalid value of param category or no identifiers mapped to this categoryReturned when an invalid category is provided in request.

7005

MessageDescription
Request expiredReturned when the request is expired.

7006

MessageDescription
Internal error occurredReturned when an internal error occurs.

7007

MessageDescription
Service InactiveReturned when a service is in inactive state.

7009

MessageDescription
Maximum number of destination addressReturned when an API request exceeds the limit (1000) to send messages using messaging API.

7101

MessageDescription
Invalid Sender IDReturned when the Sender ID is invalid.

7102

MessageDescription
Invalid addressReturned when the address is invalid

7104

MessageDescription
Invalid app idReturned when the app id is invalid.

7105

MessageDescription
Customer profile not foundReturned when the customer profile not fount.

7106

MessageDescription
Channel not configuredReturned when the channel is not configured.

7107

MessageDescription
Message length exceededReturned when the message exceeds.

7108

MessageDescription
Invalid templateReturned when the template is invalid

7109

MessageDescription
User in DnDReturned when the user is registered on Do Not Disturb list.

7110

MessageDescription
User is not activeReturned when the user is inactive.

7111

MessageDescription
Spam content detectedReturned when the spam content is detected

7112

MessageDescription
Invalid message typeReturned when the message type is invalid

7113

MessageDescription
Social hoursReturned when the message is sent during non-social hours.

7208

MessageDescription
Source IP is not whitelistedReturned when a request is sent from an IP that is not whitelisted in IMIconnect.

Profile API

1000

MessageDescription
SuccessReturned when the request is completed successfully.

7003

MessageAPIDescription
customerId is missingProfileReturned when the parameter customerId or its value is missing.
mandatory param access_token missingProfileReturned when the parameter access_token or its value is missing while creating an app profile.
mandatory param access_token_expiry missingProfileReturned when the parameter access_token_expiry is missing while creating an app profile.
mandatory param fb_user_id missingProfileReturned when the parameter fb_user_id is missing while creating or updating an app profile.
mandatory param access_token_secret missingProfileReturned when the parameter access_token_secret is missing while creating an app profile.
mandatory param screenName missingProfileReturned when the parameter screenName is missing while creating an app profile.
mandatory param twitter_user_id missingProfileReturned when the parameter twitter_user_id is missing while creating or updating an app profile.
mandatory param connectStatus missingProfileReturned when the parameter connectStatus is missing while creating rtm profile.
mandatory param deviceId missingProfileReturned when the parameter deviceId is missing while creating rtm profile.
mandatory param rtmId missingProfileReturned when the parameter rtmId is missing while creating or updating rtm profile.
mandatory param wechat_user_id missingProfileReturned when the parameter wechat_user_id is missing while creating or updating an app profile.
mandatory param msisdn missingProfileReturned when the parameter msisdn or its value is missing while creating a profile.
mandatory param status missing or it is emptyProfileReturned when the parameter status or its value is missing while creating or updating a profile.
invalid value for param status, only values [0,1] are allowedProfileReturned when the parameter status value is other than 0 or 1.

7201

MessageDescription
Invalid profileReturned when profile id is invalid during get, update or delete profile

7202

MessageDescription
Invalid attributeReturned when an invalid attribute is passed in the body of add or update profile

7203

MessageDescription
Customer/App not foundReturned when a customer or application does not exists to update or delete the profile.
app profile not foundReturned when a customers app profile does not exists to update or delete the app profile.

7205

MessageDescription
Invalid attribute valueReturned when an invalid value is provided for the customer or app profile Attributes object.
invalid value for param status, only values [0,1] are allowedReturned when an invalid value is provided for customer or app profile Records array.

7206

MessageDescription
Master profile store not foundReturned when a master profile store does not exists.

7207

MessageDescription
Batch size limit (100) exceededReturned when an API request exceeds the limit to create or update or delete using profile API.

7208

MessageDescription
Source IP is not whitelistedReturned when a request is sent from an IP that is not whitelisted in IMIconnect.

7209

MessageDescription
Customer/App profile already existsReturned when a customer or application profile is being created for which the profile already exists.
app profile already existsReturned when a customers application profile is being created for which the profile already exists.

7210

MessageDescription
Unknown errorReturned when an unknown error occurs.

7211

MessageDescription
Profile attribute does not existReturned when an attribute is sent for which the attribute is not defined in client master profile.

7212

MessageDescription
Invalid app profile or app profile
not linked to this client.
Returned when an application master profile does not exists.

Event API

1002

MessageDescription
QueuedReturned when the request is accepted by IMIconnect.

7000

MessageDescription
Invalid JSONReturned when an invalid JSON request is sent.

7001

MessageDescription
Authentication failedReturned when an invalid service key or profile key is provided in the request.

7002

MessageDescription
Service Key MissingReturned when the parameter key is missing in the message request.

7003

MessageDescription
Mandatory parameters missing.Returned when the mandatory parameters configured in custom event are missing.

7005

MessageDescription
Internal error occurred.Returned when there is an issue with IMIconnect.