Gupshup WhatsApp API Virtual Sandbox
Send and manage messages through Gupshup APIs.
Gupshup WhatsApp Business API for sending WhatsApp session messages, template messages, raw/template-based messages, managing business profile details, and retrieving app templates.
Use this hosted sandbox to simulate Gupshup WhatsApp API APIs without authentication, API keys, or extra dependencies. Point your code or SDK to the Beeceptor base URL, preferably through an environment variable or feature flag, and switch back to the production API when ready.
This keeps your integration code consistent across local development, QA, demos, and production.
Use cases:
Use this service to integrate WhatsApp messaging into an application: send text, media, location, list, CTA, quick reply, catalog, and template messages; manage WhatsApp business profile metadata; block users; and fetch approved message templates.
General(19 operations)
POST
| Header Name | Example |
|---|---|
apikey* | "xvnwxxggh9vxxxxymu5vxx5iepxqx2zt" |
{
"block_users": [
{
"user": "919876543210"
},
{
"user": "919876543214"
},
{
"user": "919876543213"
},
{
"user": "919876543210"
}
],
"messaging_product": "whatsapp"
}{
"block_users": {
"added_users": [
{
"input": "919263805873",
"wa_id": "919163400873"
},
{
"input": "919263805873",
"wa_id": "919263400873"
},
{
"input": "919263805873",
"wa_id": "919263400873"
},
{
"input": "919263805873",
"wa_id": "919263400873"
},
{
"input": "919163805873",
"wa_id": "919163400873"
}
]
},
"messaging_product": "whatsapp",
"status": "success"
}{
"block_users": {
"added_users": [
{
"input": "919163805873",
"wa_id": "919163400873"
},
{
"input": "919163805873",
"wa_id": "919163400873"
},
{
"input": "919163805873",
"wa_id": "919163400873"
},
{
"input": "919163805873",
"wa_id": "919163400873"
}
],
"failed_users": [
{
"errors": [
{
"code": "139100",
"error_data": {
"details": "User blocked"
},
"message": "Failed to block"
}
],
"input": "919163805873",
"wa_id": "919163400873"
},
{
"errors": [
{
"code": "139100",
"error_data": {
"details": "User blocked"
},
"message": "Failed to block"
},
{
"code": "139100",
"error_data": {
"details": "User blocked"
},
"message": "Failed to block"
}
],
"input": "919163805873",
"wa_id": "919163400873"
},
{
"errors": [
{
"code": "139100",
"error_data": {
"details": "User blocked"
},
"message": "Failed to block"
},
{
"code": "139100",
"error_data": {
"details": "User blocked"
},
"message": "Failed to block"
},
{
"code": "139100",
"error_data": {
"details": "User blocked"
},
"message": "Failed to block"
}
],
"input": "919163805873",
"wa_id": "919163400873"
}
]
},
"error": {
"code": 139100,
"error_data": {
"details": "User blocked"
},
"fbtrace_id": "a89bf6e1-1273-4d66-8eda-c06968074190",
"message": "Failed to block",
"type": "OAuthException"
},
"messaging_product": "whatsapp"
}GET
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"business": {
"about": "Accusator agnosco convoco desino reprehenderit pauci fuga suppellex.",
"addressLine1": "6856 Rashad Valley",
"addressLine2": "Apt. 235",
"altWebsite": "https://variable-dream.org/",
"city": "Fort Tre",
"contactName": "Melissa Crooks DDS",
"contactNumber": "+19349397925",
"country": "Venezuela",
"createdOn": 1774376653,
"description": "Nisi cultellus speciosus infit maxime delego earum. Vir deputo conspergo creator utpote. Corpus eius velit stips pauci crebro virga.",
"displayAddress": "27388 Mose Park",
"email": "Kendra_Medhurst65@gmail.com",
"emailVerified": false,
"hqRegion": "Arizona",
"id": "58defc17-4927-4b4f-902c-3f8d71db98b1",
"modifiedOn": 1722923540,
"name": "Pfeffer - Romaguera",
"pinCode": "37433-2428",
"preferredCountry": "Argentina",
"profileEmail": "Tyrell43@gmail.com",
"state": "Pennsylvania",
"tncAccepted": true,
"vertical": "Tools",
"website": "https://passionate-validity.biz/"
},
"status": "success"
}GET
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"about": {
"message": "Auctus utor acies curo laborum."
},
"status": "success"
}PUT
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"about": "Anser titulus pauci arca celo atque debeo vix pauci."
}{
"about": {
"message": "Spiculum creo sed carcer tutamen valeo adeo."
},
"status": "success"
}GET
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"profile": {
"addressLine1": "9973 The Willows",
"addressLine2": "Apt. 589",
"city": "Serenaberg",
"country": "Canada",
"desc": "Apparatus denuncio trucido testimonium. Caecus maxime via excepturi suasoria tam. Vorago cernuus coepi amicitia.",
"pinCode": "20555",
"profileEmail": "Eliza77@gmail.com",
"state": "New York",
"vertical": "Tools",
"website1": "https://medium-formula.com/",
"website2": "https://any-chow.net"
},
"status": "success"
}PUT
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"addLine1": "349 Nya Street",
"addLine2": "Suite 889",
"city": "Wilhelmineton",
"country": "Wallis and Futuna",
"desc": "Surculus asporto ventus celebrer animi cura abundans animadverto. Aranea tempus abscido acerbitas aranea curiositas amita. Sollicito verbera theatrum.",
"pinCode": "05607",
"profileEmail": "Meggie.Cummings52@gmail.com",
"state": "New Mexico",
"vertical": "Shoes",
"website1": "https://hasty-ghost.biz",
"website2": "https://finished-sarong.name"
}{
"profile": {
"addressLine1": "50409 Welch Junction",
"addressLine2": "Suite 405",
"city": "Lebsackburgh",
"country": "Aland Islands",
"desc": "Suscipio ascit totidem at vomica vito denego temperantia spiculum. Saepe turpis cado voveo supra acervus. Trucido qui valde uterque stips vel quaerat voluptates.",
"pinCode": "16430",
"profileEmail": "Roman_Harber@hotmail.com",
"state": "West Virginia",
"vertical": "Home",
"website1": "https://impure-supplier.net",
"website2": "https://gloomy-dream.org/"
},
"status": "success"
}GET
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"message": "https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait/male/512/0.jpg",
"status": "success"
}PUT
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"image": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIzODQ5IiBoZWlnaHQ9IjMyNDUiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiNmZDE1NGMiLz48dGV4dCB4PSIxOTI0LjUiIHk9IjE2MjIuNSIgZm9udC1zaXplPSIyMCIgYWxpZ25tZW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIj4zODQ5eDMyNDU8L3RleHQ+PC9zdmc+"
}{
"message": "profile picture updated successfully",
"status": "success"
}GET
| Header Name | Example |
|---|---|
x-api-key | "{{x-api-key}}" |
GET
| Header Name | Example |
|---|---|
x-api-key | "{{x-api-key}}" |
POST
| Header Name | Example |
|---|---|
x-api-key | "{{x-api-key}}" |
{
"agent_number": "+919039692669",
"caller_id": "",
"customer_number": "+919999098057",
"k_number": "+918929761721"
}GET
| Header Name | Example |
|---|---|
x-api-key | "{{x-api-key}}" |
POST
| Header Name | Example |
|---|---|
x-api-key | "{{x-api-key}}" |
{
"country_code": "+91",
"email": "1agent2@gmail.com",
"first_name": "sakshi",
"last_name": "gupta",
"phone": "8982638105"
}POST
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"channel": "email",
"destination": "7359736360",
"message": {
"cardHeaderType": "IMAGE",
"cards": [
{
"id": "stipes-censura-utilis",
"link": "http://link1.com",
"postbackTexts": [
{
"index": 0,
"text": "hi"
}
]
},
{
"id": "cribro-audio-somnus",
"link": "http://link2.com",
"postbackTexts": [
{
"index": 0,
"text": "hello"
},
{
"index": 1,
"text": "hello"
}
]
},
{
"id": "aestivus-vero-ascisco",
"link": "http://link2.com",
"postbackTexts": [
{
"index": 0,
"text": "hi"
},
{
"index": 1,
"text": "hi"
},
{
"index": 1,
"text": "hi"
}
]
}
],
"type": "carousel"
},
"source": "3798426637",
"src.name": "Gibson, Hirthe and Stamm",
"template": {
"id": "campana-tibi-autus",
"params": {
"0": "param1",
"1": "param2"
}
}
}{
"messageId": "6b2c12d0-76d2-4819-8e45-9fb921d70878",
"status": "submitted"
}{
"message": "Invalid Destination",
"status": "error"
}{
"message": "Authentication Failed",
"status": "error"
}POST
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"channel": "sms",
"destination": "8806836056",
"source": "2009190006",
"src.name": "Willms, Gibson and Bartoletti",
"template": {
"id": "cubicularis-qui-adulatio",
"params": {
"0": "hi",
"1": "di3i7rs6js"
}
}
}{
"messageId": "38e1020d-994c-4130-bd54-270671ab6874",
"status": "success"
}{
"message": "Invalid Destination",
"status": "error"
}{
"message": "Authentication Failed",
"status": "error"
}GET
| Query Parameter Name | Example |
|---|---|
pageNo | 0 |
pageSize | 100 |
templateStatus | APPROVED |
templateCategory | MARKETING |
templateType | TEXT |
quality | GREEN |
languageCode | en |
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"status": "success",
"templates": [
{
"appId": "cebxx8x1-xxf6-406c-901x-3f78xxxx5ea",
"buttonSupported": "URL",
"category": "MARKETING",
"containerMeta": "{\"data\":\"Hi\"}",
"createdOn": 1781754475,
"data": "Hi",
"elementName": "event_test",
"externalId": "123",
"id": "312371e9-2771-463b-8cfd-cd8994b810ccf",
"internalCategory": 1,
"internalType": 1,
"languageCode": "en",
"languagePolicy": "deterministic",
"meta": "{\"example\":\"Hi\"}",
"modifiedOn": 1781754475,
"namespace": "6a54628a_7f29_45a7_80b1_46549f39062d",
"priority": 1,
"quality": "UNKNOWN",
"retry": 0,
"stage": "NONE",
"status": "APPROVED",
"templateType": "TEXT",
"vertical": "otp",
"wabaId": 12345
},
{
"appId": "cebxx8x1-xxf6-406c-901x-3f78xxxx5ea",
"buttonSupported": "URL",
"category": "MARKETING",
"containerMeta": "{\"data\":\"Hi\"}",
"createdOn": 1781754475,
"data": "Hi",
"elementName": "event_test",
"externalId": "123",
"id": "312371e9-2771-463b-8cfd-cd8994b810ccf",
"internalCategory": 1,
"internalType": 1,
"languageCode": "en",
"languagePolicy": "deterministic",
"meta": "{\"example\":\"Hi\"}",
"modifiedOn": 1781754475,
"namespace": "6a54628a_7f29_45a7_80b1_46549f39062d",
"priority": 1,
"quality": "UNKNOWN",
"retry": 0,
"stage": "NONE",
"status": "APPROVED",
"templateType": "TEXT",
"vertical": "otp",
"wabaId": 12345
},
{
"appId": "cebxx8x1-xxf6-406c-901x-3f78xxxx5ea",
"buttonSupported": "URL",
"category": "MARKETING",
"containerMeta": "{\"data\":\"Hi\"}",
"createdOn": 1781754475,
"data": "Hi",
"elementName": "event_test",
"externalId": "123",
"id": "312371e9-2771-463b-8cfd-cd8994b810ccf",
"internalCategory": 1,
"internalType": 1,
"languageCode": "en",
"languagePolicy": "deterministic",
"meta": "{\"example\":\"Hi\"}",
"modifiedOn": 1781754475,
"namespace": "6a54628a_7f29_45a7_80b1_46549f39062d",
"priority": 1,
"quality": "UNKNOWN",
"retry": 0,
"stage": "NONE",
"status": "APPROVED",
"templateType": "TEXT",
"vertical": "otp",
"wabaId": 12345
},
{
"appId": "cebxx8x1-xxf6-406c-901x-3f78xxxx5ea",
"buttonSupported": "URL",
"category": "MARKETING",
"containerMeta": "{\"data\":\"Hi\"}",
"createdOn": 1781754475,
"data": "Hi",
"elementName": "event_test",
"externalId": "123",
"id": "312371e9-2771-463b-8cfd-cd8994b810ccf",
"internalCategory": 1,
"internalType": 1,
"languageCode": "en",
"languagePolicy": "deterministic",
"meta": "{\"example\":\"Hi\"}",
"modifiedOn": 1781754475,
"namespace": "6a54628a_7f29_45a7_80b1_46549f39062d",
"priority": 1,
"quality": "UNKNOWN",
"retry": 0,
"stage": "NONE",
"status": "APPROVED",
"templateType": "TEXT",
"vertical": "otp",
"wabaId": 12345
}
]
}{
"message": "Invalid template category: xyz",
"status": "error"
}{
"message": "Authentication Failed",
"status": "error"
}GET
| Header Name | Example |
|---|---|
apikey* | "2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a" |
{
"status": "success",
"template": {
"appId": "7a274a58-9a0d-44da-9815-fa55bde44b7b",
"buttonSupported": "URL",
"category": "MARKETING",
"containerMeta": "sol",
"createdOn": 1743521089,
"data": "Cupio umquam aegre nisi commemoro.",
"elementName": "otp_verification",
"externalId": "3",
"id": "0615dcbe-84c3-4b53-a5c6-3084b1ddfc87",
"internalCategory": 1,
"internalType": 4,
"languageCode": "de",
"languagePolicy": "fallback",
"meta": "{\"footer\":\"Reply STOP to unsubscribe\"}",
"modifiedOn": 1778603646,
"namespace": "OT5ydTG06azvUYHhDnqS",
"oldCategory": "NONE",
"priority": 10,
"quality": "GREEN",
"retry": 28042027,
"stage": "REVIEWED",
"status": "APPROVED",
"templateType": "MEDIA",
"vertical": "promotional",
"wabaId": 99137118297922
}
}{
"message": "Bad request parameters.",
"status": "error"
}{
"message": "Authentication Failed",
"status": "error"
}PUT
| Header Name | Example |
|---|---|
Authorization* | "y3qfwlcqhsnujsak4pm0yd3zbu" |
GET
| Header Name | Example |
|---|---|
Authorization* | "y3qfwlcqhsnujsak4pm0yd3zbu" |
Send Message API(2 operations)
GET
| Query Parameter Name | Example |
|---|---|
?userid* | 20000XXXXX |
password* | XXXXXX |
send_to* | 919XXXXXXXXX |
msg* | Dear Abc, This is testing |
method* | SendMessage |
msg_type* | text |
format* | text |
auth_scheme* | plain |
v* | 1.1 |
POST
{
"auth_scheme": "plain",
"format": "json",
"method": "sendMessage",
"msg": "Arguo certus benigne coerceo subvenio abduco placeat unde.",
"msg_type": "text",
"password": "v1t5Wce8a_sQ",
"send_to": "+12369728858",
"userid": "Winnifred.Satterfield70",
"v": 1.1
}Proxy Channel(5 operations)
GET
| Header Name | Example |
|---|---|
apikey | "<gupshup apikey>" |
{
"id": 1,
"proxyId": "#proxyconvomateapp",
"proxyLabel": "Channel Proxy",
"callbackUrl": "https://proxy.channel.io/callback"
}PUT
| Header Name | Example |
|---|---|
apikey | "<gupshup_apikey>" |
{
"callbackUrl": "https://miserable-omelet.info",
"id": "denuncio-toties-vulticulus",
"name": "Shields, Rippin and Williamson"
}{
"id": 1,
"proxyId": "#proxyconvomateapp",
"proxyLabel": "Channel Proxy",
"callbackUrl": "https://proxy.channel.io/callback"
}POST
| Header Name | Example |
|---|---|
apikey | "<gupshup_apikey>" |
{
"callbackUrl": "https://tidy-assist.biz",
"id": "cura-toties-caelestis",
"name": "Graham, Lubowitz and Boyer"
}{
"id": 1,
"proxyId": "#proxyconvomateapp",
"proxyLabel": "Channel Proxy",
"callbackUrl": "https://proxy.channel.io/callback"
}{
"status": "error",
"invalidConstraintInformation": [
{
"errorMessage": "{Value cannot be null or empty.}",
"fieldName": "proxyId",
"invalidValue": "null"
}
]
}DELETE
| Header Name | Example |
|---|---|
apikey* | "<gupshup apikey>" |
{
"id": 1,
"proxyId": "#proxyconvomateapp",
"proxyLabel": "Channel Proxy",
"callbackUrl": "https://proxy.channel.io/callback"
}{
"status": "error",
"message": "No proxy found for the given proxyId"
}POST
{
"type": "text",
"text": "<message to forward>",
"contextobj": {
"botname": "<demo bot id>",
"channeltype": "<channel>",
"contextid": "<user id on the channel>"
}
}Instagram Send Message API
POST
| Header Name | Example |
|---|---|
apikey | "{{API_KEY}}" |
Content-Type | "application/x-www-form-urlencoded" |
{
"context": "Hkkd1DIUFFM6Kgo331Uo",
"message": "Dolorum velit socius administratio."
}Send message API
POST
| Header Name | Example |
|---|---|
Content-Type* | "application/x-www-form-urlencoded" |
apikey* | "cupidatat" |
content-type* | "sit deserunt ea id nisi" |
{}{
"messageId": "dc061295-6732-490a-a2c7-f8598c00f197",
"status": "submitted"
}CTA URL message
POST
| Header Name | Example |
|---|---|
apikey* | "61b3021c97214370b341f8baaae0xxxx" |
content-type* | "application/x-www-form-urlencoded" |
{
"destination": 9207473475,
"message": {
"context": {
"msgId": "94213967-0d5a-4dcc-9156-adb380a43238"
},
"id": "2cd622f9-238a-486f-804f-2f1eaf5fce2b",
"type": "sticker",
"url": "https://prudent-eyeliner.info/"
},
"source": 7671549981,
"src.name": "Cole - Kerluke"
}{
"message": "Adicio demitto curriculum pecco.",
"status": "submitted"
}{
"message": "Invalid App Details",
"status": "error"
}{
"message": "Authentication Failed",
"status": "error"
}{
"message": "Too Many Requests",
"status": "error"
}(5 operations)
POST
| Header Name | Example |
|---|---|
apikey* | "api_key" |
Content-Type* | "application/x-www-form-urlencoded" |
{
"doCheck": "true",
"modes": "SENT",
"tag": "vir",
"url": "https://any-window.info/",
"version": 8
}DELETE
| Header Name | Example |
|---|---|
apikey* | "api_key" |
GET
| Header Name | Example |
|---|---|
apikey* | "api_key" |
DELETE
| Header Name | Example |
|---|---|
apikey* | "api_key" |
PUT
| Header Name | Example |
|---|---|
apikey* | "{{apikey}}" |
Content-Type* | "application/x-www-form-urlencoded" |
{
"active": false,
"modes": "DELIVERED",
"tag": "chirographum",
"url": "https://doting-ice-cream.biz/",
"version": 9
}whatsappmessaginggupshupbusiness messagingtemplatessession messagesmedia messagesprofile managementchat api