---
updatedAt: 2026-09-10T14:06:59.000Z
agentTools:
  projectIndex: https://partner-docs.gupshup.io/llms.txt
---

# Request Contact Info

Use this API to send messages using the Request Contact Info template.

# Note:

Templates that carry a REQUEST\_CONTACT\_INFO button can only be of the marketing or utility category.

<br />

# Sample Request:

```curl
curl --location 'https://partner.gupshup.io/partner
/app/{appId}/template/msg' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'source={source}' \
--data-urlencode 'sandbox=false' \
--data-urlencode 'template={"id": "79f682a1-3367-4f1e-9e79-c972b60ca339","params": ["A-10293"]}' \
--data-urlencode 'src.name=safari' \
--data-urlencode 'userId={userId}'
```

<br />

# Sample Response:

```curl
{
    "status": "submitted",
    "messageId": "8893bef1-9abf-4539-89d6-6293fe4c7785"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Partner Portal — Send Template Message (REQUEST_CONTACT_INFO)",
    "description": "Sends an approved WhatsApp template that carries a `REQUEST_CONTACT_INFO` button. Scoped to\nthe two categories that accept the button: `MARKETING` and `UTILITY`.\n\n`POST https://partner.gupshup.io/partner/app/{appId}/template/msg`\n\nThe request body is `application/x-www-form-urlencoded`. Partner Portal binds the body as a\n`MultiValueMap` and forwards every field to WASS (`wa/api/v1/template/msg`), so fields not\nlisted here — `userId` among them — are passed through rather than rejected.\n\n**`template` field.** A JSON object serialized into a single form field: the approved\ntemplate's `id` plus a `params` array holding the body-variable values in positional order.\nSend it with `--data-urlencode`.\n\n**`params` and the button.** `REQUEST_CONTACT_INFO` is not parameterized, so it never\ncontributes an entry to `params`. A template with no body variables takes `\"params\": []`; a\ntemplate with `{{1}}` takes one value. Supplying a param for a template that declares no\nvariables is rejected as a mismatch.\n\n**Addressing.** Supply either `destination` (MSISDN, E.164 without `+`) or `userId` (BSUID,\ne.g. `IN.3724117084395812`). The two curls this spec is built from address by `userId` alone.\nPlacing an MSISDN in a BSUID field leaves the message with no addressee — it is accepted, then\nfails asynchronously with `status: failed`, `code: 100` and an empty `recipient_id`.\n\n**Async outcome.** A `200` means WASS accepted the message, not that it was delivered.\nDelivery is reported later on the status webhook, keyed by `messageId`.\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io/partner",
      "description": "Production"
    }
  ],
  "security": [
    {
      "appApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Messaging",
      "description": "Outbound messaging for a partner app"
    }
  ],
  "paths": {
    "/app/{appId}/template/msg": {
      "post": {
        "tags": [
          "Messaging"
        ],
        "summary": "Request Contact Info",
        "description": "Use this API to send messages using the Request Contact Info template.",
        "operationId": "sendRequestContactInfoTemplateMessage",
        "parameters": [
          {
            "name": "appId",
            "in": "path",
            "required": true,
            "description": "Partner app id (UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "03815d0b-4cce-456b-9150-f3a6936f30ec"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SendTemplateMessageForm"
              },
              "examples": {
                "marketing": {
                  "summary": "MARKETING template, no body variables — empty params",
                  "value": {
                    "source": "919355094343",
                    "sandbox": "false",
                    "template": "{\"id\": \"076b83fe-4e60-4243-b909-c1c5d3e94675\",\"params\": []}",
                    "src.name": "safari",
                    "userId": "IN.3724117084395812"
                  }
                },
                "utility": {
                  "summary": "UTILITY template with one body variable — one param",
                  "value": {
                    "source": "919355094343",
                    "sandbox": "false",
                    "template": "{\"id\": \"79f682a1-3367-4f1e-9e79-c972b60ca339\",\"params\": [\"A-10293\"]}",
                    "src.name": "safari",
                    "userId": "IN.3724117084395812"
                  }
                },
                "destinationAddressing": {
                  "summary": "Addressing by MSISDN instead of BSUID",
                  "value": {
                    "source": "919355094343",
                    "sandbox": "false",
                    "destination": "917506080480",
                    "template": "{\"id\": \"076b83fe-4e60-4243-b909-c1c5d3e94675\",\"params\": []}",
                    "src.name": "safari"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted by WASS for delivery. `status` is `submitted`; delivery is confirmed later on\nthe status webhook, keyed by `messageId`.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendMessageResponse"
                },
                "examples": {
                  "submitted": {
                    "summary": "Message accepted",
                    "value": {
                      "status": "submitted",
                      "messageId": "858ac0c1-0c15-4ba5-8de9-a3bdf121b58e"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Rejected by Partner Portal or by WASS — unknown or unapproved template id, a\n`params` count that does not match the template's variables, a missing addressee, or a\nmalformed `template` JSON.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "paramMismatch": {
                    "summary": "Param supplied for a template that declares no variables",
                    "value": {
                      "status": "error",
                      "message": "Template param count does not match the template definition"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — missing or invalid app API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — the key has no permission on this app.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "App or template not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-internal": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "appApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "App-scoped API key, sent raw (no `Bearer` prefix). Example: `sk_e07dd7c06a7d42bcb743e1bb9bb656fc`"
      }
    },
    "schemas": {
      "SendTemplateMessageForm": {
        "type": "object",
        "description": "Form-encoded template-send body. Mirrors `WhatsappSendTemplateMessageFormSchema`, plus the\n`userId` field the route forwards but does not declare. Unlisted fields are passed through\nto WASS as-is.\n",
        "required": [
          "source",
          "template"
        ],
        "properties": {
          "source": {
            "type": "string",
            "description": "Sender phone in E.164 without `+`. Must be a number registered on the app.",
            "example": "919355094343"
          },
          "template": {
            "type": "string",
            "description": "Template payload as a JSON string — see `TemplatePayload`. Carries the approved\ntemplate `id` and the positional `params` for its body variables.\n",
            "example": "{\"id\": \"076b83fe-4e60-4243-b909-c1c5d3e94675\",\"params\": []}"
          },
          "destination": {
            "type": "string",
            "description": "Recipient phone in E.164 without `+`. Required unless the recipient is addressed by\n`userId`. Do not put an MSISDN in `userId` — the send is accepted, then fails with\n`code: 100` and an empty `recipient_id`.\n",
            "example": "917506080480"
          },
          "userId": {
            "type": "string",
            "description": "Recipient BSUID, an alternative to `destination` on WABAs enabled for BSUID\naddressing. Not declared on `WhatsappSendTemplateMessageFormSchema`, but the route\nbinds a `MultiValueMap` and forwards it upstream.\n",
            "example": "IN.3724117084395812"
          },
          "src.name": {
            "type": "string",
            "description": "Sender display name (app name) shown on the message.",
            "example": "safari"
          },
          "sandbox": {
            "type": "string",
            "description": "Whether to use the sandbox route.",
            "enum": [
              "true",
              "false"
            ],
            "default": "false",
            "example": "false"
          }
        }
      },
      "SendMessageResponse": {
        "type": "object",
        "description": "Acceptance receipt. Delivery is reported later on the status webhook.",
        "properties": {
          "status": {
            "type": "string",
            "description": "`submitted` means WASS accepted the message for delivery, not that it was delivered.\n",
            "example": "submitted"
          },
          "messageId": {
            "type": "string",
            "format": "uuid",
            "description": "Correlates this send with the status and inbound webhooks.",
            "example": "858ac0c1-0c15-4ba5-8de9-a3bdf121b58e"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string",
            "example": "Invalid request"
          }
        }
      }
    }
  }
}
```