How to send the CRQID via Email


To send the CRQID( Customer parameter) in the email, you just need to pass the additional parameter of “CRQID” in the API




curl --location 'https://control.msg91.com/api/v5/email/send' \

--header 'accept: application/json' \

--header 'authkey: YOUR_MSG91_AUTH_KEY' \

--header 'content-type: application/JSON' \

--data-raw '{

"recipients": [

{

"to": [

{

"name": "Recipient1 name",

"email": "Recipient1 email",

"CRQID": "your-crqid"

}

],

"variables": {

"name": "Name 1"

}

},

{

"variables": {

"name": "Name 2"

}

}

],

"from": {

"name": "Joe",

"email": "sender@email.address"

},

"domain": "The domain which you have registered with us. We sign DKIM with this domain.",

"reply_to": [

{

"email": "reply1@email.com"

},

{

"email": "reply2@email.com"

}

],

"attachments": [

{

"filePath": "Public path for file.",

"fileName": "File Name"

},

{

"file": "File in Data URI format data: content/type;base64,<data>.",

"fileName": "File Name"

}

],

"template_id": "YOUR_UNIQUE_TEMPLATE_NAME"

}'


Note: The CRQID parameter is case-sensitive.