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

# Request Contact Info

Creates the template on the given app and submits it to Meta for approval

# Rate limit:

10 requests per 60 seconds.

# Note:

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

# Button constraints

<br />

1. Only one button is allowed — it cannot be combined with URL, QUICK\_REPLY, or any other button type.
2. Button text is fixed per language and cannot be customised; Meta enforces a localised string per language code.
3. Do not include parameter values when sending the template — the button text is not a variable.

<br />

# Localised button text by language

<br />The button text is auto-localised by Meta based on the template language code. The en string differs from en\_GB (lowercase), so always send the value Meta expects for the chosen locale.

| Language code | Required button text                | Status |
| ------------- | ----------------------------------- | ------ |
| `en`          | Share Contact Info                  | Works  |
| `en_US`       | Share Contact Info                  | Works  |
| `en_GB`       | Share contact info (lowercase c, i) | Works  |
| `hi`          | कॉन्टैक्ट जानकारी शेयर करें         | Works  |
| `es`          | Compartir información de contacto   | Works  |

<br />

# Sample Request (Marketing):

```curl
curl --location 'https://partner.gupshup.io/partner
/app/{appId}/templates' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'elementName=safari_req_contact_info_mm' \
--data-urlencode 'languageCode=en' \
--data-urlencode 'content=Hello! We have an update regarding your transaction. Could you please share your contact details?' \
--data-urlencode 'category=MARKETING' \
--data-urlencode 'vertical=AAA' \
--data-urlencode 'templateType=TEXT' \
--data-urlencode 'example=Hello! We have an update regarding your transaction. Could you please share your contact details?' \
--data-urlencode 'allowTemplateCategoryChange=false' \
--data-urlencode 'checkerApprovalRequired=false' \
--data-urlencode 'enableSample=false' \
--data-urlencode 'buttons=[{"type":"REQUEST_CONTACT_INFO","text":"Share Contact Info"}]'
```

<br />

# Sample Request (Utility):

```curl
curl --location 'https://qa-partner-api.smsgupshup.dev/partner/app/{{APP_ID}}/templates' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'elementName=safari_req_contact_info_ut' \
--data-urlencode 'languageCode=en' \
--data-urlencode 'content=Your order {{1}} is out for delivery. Please share your contact so the courier can reach you.' \
--data-urlencode 'category=UTILITY' \
--data-urlencode 'vertical=AAA' \
--data-urlencode 'templateType=TEXT' \
--data-urlencode 'example=Your order [A-10293] is out for delivery. Please share your contact so the courier can reach you.' \
--data-urlencode 'allowTemplateCategoryChange=false' \
--data-urlencode 'enableSample=true' \
--data-urlencode 'buttons=[{"type":"REQUEST_CONTACT_INFO","text":"Share Contact Info"}]'
```

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Partner Portal — Create Template with REQUEST_CONTACT_INFO",
    "description": "Creates a WhatsApp message template (HSM) carrying a `REQUEST_CONTACT_INFO` button on a\npartner app. Scoped to the two categories that accept the button: `MARKETING` and `UTILITY`.\n\n`POST https://partner.gupshup.io/partner/app/{appId}/templates`\n\nThe request body is `application/x-www-form-urlencoded`. Partner Portal binds the body as a\n`MultiValueMap` and forwards every field upstream (`PartnerAppRoutes.createNewTemplate`), so\nfields not listed here are passed through rather than rejected.\n\n**Buttons.** `buttons` is a single form field carrying a JSON array, opaque to Partner Portal\nand validated by Meta. Always send it with `--data-urlencode`; a plain `-d` leaves `&`, `+`\nand `=` unescaped and the array arrives truncated.\n\n**`REQUEST_CONTACT_INFO` constraints** (all enforced by Meta, not by Partner Portal):\n\n- The caption is fixed per locale and cannot be customized — `en` → `Share Contact Info`,\n  `en_GB` → `Share contact info`, `hi` → `कॉन्टैक्ट जानकारी शेयर करें`. Any other string is\n  rejected with Meta subcode `2388153`.\n- It must be the only button in the array; it cannot be combined with `URL`, `QUICK_REPLY`,\n  `PHONE_NUMBER` or `COPY_CODE`, and cannot appear twice.\n- It is not accepted on `AUTHENTICATION` templates.\n- The caption is not persisted — the stored `containerMeta` keeps `type` alone, since Meta\n  supplies the localized caption at render time.\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io/partner",
      "description": "Production"
    }
  ],
  "security": [
    {
      "appApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Templates",
      "description": "WhatsApp template management for a partner app"
    }
  ],
  "paths": {
    "/app/{appId}/templates": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Request Contact Info",
        "description": "Creates the template on the given app and submits it to Meta for approval",
        "operationId": "createRequestContactInfoTemplate",
        "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/TemplateCreateForm"
              },
              "examples": {
                "marketing": {
                  "summary": "MARKETING template, no variables",
                  "value": {
                    "elementName": "safari_req_contact_info_mm",
                    "languageCode": "en",
                    "content": "Hello! We have an update regarding your transaction. Could you please share your contact details?",
                    "category": "MARKETING",
                    "vertical": "AAA",
                    "templateType": "TEXT",
                    "example": "Hello! We have an update regarding your transaction. Could you please share your contact details?",
                    "allowTemplateCategoryChange": "false",
                    "checkerApprovalRequired": "false",
                    "enableSample": "false",
                    "buttons": "[{\"type\":\"REQUEST_CONTACT_INFO\",\"text\":\"Share Contact Info\"}]"
                  }
                },
                "utility": {
                  "summary": "UTILITY template with a body variable",
                  "value": {
                    "elementName": "safari_req_contact_info_ut",
                    "languageCode": "en",
                    "content": "Your order {{1}} is out for delivery. Please share your contact so the courier can reach you.",
                    "category": "UTILITY",
                    "vertical": "AAA",
                    "templateType": "TEXT",
                    "example": "Your order [A-10293] is out for delivery. Please share your contact so the courier can reach you.",
                    "allowTemplateCategoryChange": "false",
                    "enableSample": "true",
                    "buttons": "[{\"type\":\"REQUEST_CONTACT_INFO\",\"text\":\"Share Contact Info\"}]"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Template accepted. `status` is `success` and `template.status` is `PENDING` until Meta\napproves it. Save `template.id` for follow-up edit/delete calls.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerResponse"
                },
                "examples": {
                  "marketingCreated": {
                    "summary": "MARKETING template created, pending Meta approval",
                    "value": {
                      "status": "success",
                      "template": {
                        "appId": "03815d0b-4cce-456b-9150-f3a6936f30ec",
                        "buttonSupported": "RCI",
                        "category": "MARKETING",
                        "containerMeta": "{\"appId\":\"03815d0b-4cce-456b-9150-f3a6936f30ec\",\"data\":\"Hello! We have an update regarding your transaction. Could you please share your contact details?\",\"buttons\":[{\"type\":\"REQUEST_CONTACT_INFO\"}],\"sampleText\":\"Hello! We have an update regarding your transaction. Could you please share your contact details?\",\"enableSample\":true,\"editTemplate\":false,\"addSecurityRecommendation\":false,\"isCPR\":false,\"cpr\":false}",
                        "createdOn": 1788176743806,
                        "data": "Hello! We have an update regarding your transaction. Could you please share your contact details? | [null]",
                        "elementName": "safari_req_contact_info_mm",
                        "id": "076b83fe-4e60-4243-b909-c1c5d3e94675",
                        "languageCode": "en",
                        "languagePolicy": "deterministic",
                        "meta": "{\"example\":\"Hello! We have an update regarding your transaction. Could you please share your contact details?\"}",
                        "modifiedOn": 1788176743806,
                        "namespace": "7335da9b_cf2b_41e9_b006_049a59159dba",
                        "parameterFormat": "POSITIONAL",
                        "priority": 1,
                        "quality": "UNKNOWN",
                        "retry": 0,
                        "source": "gupshup",
                        "stage": "NONE",
                        "state": "ACTIVE",
                        "status": "PENDING",
                        "templateType": "TEXT",
                        "vertical": "AAA",
                        "wabaId": "954612427665223"
                      }
                    }
                  },
                  "utilityCreated": {
                    "summary": "UTILITY template created, variable preserved unrendered in data",
                    "value": {
                      "status": "success",
                      "template": {
                        "appId": "03815d0b-4cce-456b-9150-f3a6936f30ec",
                        "buttonSupported": "RCI",
                        "category": "UTILITY",
                        "containerMeta": "{\"appId\":\"03815d0b-4cce-456b-9150-f3a6936f30ec\",\"data\":\"Your order {{1}} is out for delivery. Please share your contact so the courier can reach you.\",\"buttons\":[{\"type\":\"REQUEST_CONTACT_INFO\"}],\"sampleText\":\"Your order [A-10293] is out for delivery. Please share your contact so the courier can reach you.\",\"enableSample\":true,\"editTemplate\":false,\"addSecurityRecommendation\":false,\"isCPR\":false,\"cpr\":false}",
                        "createdOn": 1788177098212,
                        "data": "Your order {{1}} is out for delivery. Please share your contact so the courier can reach you. | [null]",
                        "elementName": "safari_req_contact_info_ut",
                        "id": "79f682a1-3367-4f1e-9e79-c972b60ca339",
                        "languageCode": "en",
                        "languagePolicy": "deterministic",
                        "meta": "{\"example\":\"Your order [A-10293] is out for delivery. Please share your contact so the courier can reach you.\"}",
                        "modifiedOn": 1788177098212,
                        "namespace": "7335da9b_cf2b_41e9_b006_049a59159dba",
                        "parameterFormat": "POSITIONAL",
                        "priority": 2,
                        "quality": "UNKNOWN",
                        "retry": 0,
                        "source": "gupshup",
                        "stage": "NONE",
                        "state": "ACTIVE",
                        "status": "PENDING",
                        "templateType": "TEXT",
                        "vertical": "AAA",
                        "wabaId": "954612427665223"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Rejected by Partner Portal or surfaced from Meta. Meta rejections keep their original\n`error` envelope, including `error_user_msg` — Partner Portal does not swallow it.\n",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/MetaErrorResponse"
                    }
                  ]
                },
                "examples": {
                  "buttonTextModified": {
                    "summary": "Caption does not match the locale (subcode 2388153)",
                    "value": {
                      "error": {
                        "message": "Invalid parameter",
                        "type": "OAuthException",
                        "code": 100,
                        "error_subcode": 2388153,
                        "is_transient": false,
                        "error_user_title": "Button text modification not allowed",
                        "error_user_msg": "Text for button type \"REQUEST_CONTACT_INFO\" cannot be modified and must always be \"Share Contact Info\".",
                        "fbtrace_id": "AUQV0thr2ag2oATWnJ2ctCd"
                      }
                    }
                  },
                  "duplicateElementName": {
                    "summary": "Template name already exists on the app",
                    "value": {
                      "status": "error",
                      "message": "Template with this elementName already exists"
                    }
                  }
                }
              }
            }
          },
          "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 not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (10 requests per 60 seconds).",
            "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": {
      "TemplateCreateForm": {
        "type": "object",
        "description": "Form-encoded create-template body. Unlisted fields are forwarded upstream as-is.",
        "required": [
          "elementName",
          "languageCode",
          "content",
          "category",
          "buttons"
        ],
        "properties": {
          "elementName": {
            "type": "string",
            "description": "Unique template name on the app. Lowercase letters, digits and underscores.",
            "example": "safari_req_contact_info_mm"
          },
          "languageCode": {
            "type": "string",
            "description": "Meta language code. Case matters for regional variants (`en_GB`, not `en_gb`) and it\ndetermines the required `REQUEST_CONTACT_INFO` caption.\n",
            "example": "en"
          },
          "content": {
            "type": "string",
            "description": "Template body / HSM content. Variables use `{{1}}`, `{{2}}`, … .",
            "example": "Hello! We have an update regarding your transaction. Could you please share your contact details?"
          },
          "category": {
            "type": "string",
            "description": "Template category. `REQUEST_CONTACT_INFO` is accepted on `MARKETING` and `UTILITY`\nonly; `AUTHENTICATION` is rejected.\n",
            "enum": [
              "MARKETING",
              "UTILITY"
            ],
            "example": "MARKETING"
          },
          "vertical": {
            "type": "string",
            "description": "Internal label / use-case tag for the template.",
            "example": "AAA"
          },
          "templateType": {
            "type": "string",
            "description": "Media type of the template.",
            "enum": [
              "TEXT",
              "IMAGE",
              "VIDEO",
              "DOCUMENT"
            ],
            "example": "TEXT"
          },
          "example": {
            "type": "string",
            "description": "Sample rendering of `content` with variables filled in. Required by Meta when\n`content` has variables — `Your order {{1}} …` → `Your order [A-10293] …`.\n",
            "example": "Hello! We have an update regarding your transaction. Could you please share your contact details?"
          },
          "buttons": {
            "type": "string",
            "description": "JSON array carrying exactly one `REQUEST_CONTACT_INFO` object — see `TemplateButton`.\nSerialized into a single form field; send it with `--data-urlencode`.\n",
            "example": "[{\"type\":\"REQUEST_CONTACT_INFO\",\"text\":\"Share Contact Info\"}]"
          },
          "header": {
            "type": "string",
            "description": "Header text, when the template has one."
          },
          "exampleHeader": {
            "type": "string",
            "description": "Sample header used for approval, when `header` has variables."
          },
          "footer": {
            "type": "string",
            "description": "Footer text."
          },
          "allowTemplateCategoryChange": {
            "type": "string",
            "description": "Allow Meta to reassign the category during approval.",
            "enum": [
              "true",
              "false"
            ],
            "default": "false",
            "example": "false"
          },
          "checkerApprovalRequired": {
            "type": "string",
            "description": "Route the template through the maker–checker flow before submission.",
            "enum": [
              "true",
              "false"
            ],
            "default": "false",
            "example": "false"
          },
          "enableSample": {
            "type": "string",
            "description": "Send the `example` value to Meta as the template sample. Note that the stored\n`containerMeta.enableSample` comes back `true` whenever `example` was supplied, even\nwhen the request sent `false`.\n",
            "enum": [
              "true",
              "false"
            ],
            "default": "false",
            "example": "false"
          }
        }
      },
      "Template": {
        "type": "object",
        "description": "Created template, as returned by the upstream HSM service and passed through unchanged.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Template id. Use it for the edit and delete routes.",
            "example": "076b83fe-4e60-4243-b909-c1c5d3e94675"
          },
          "appId": {
            "type": "string",
            "format": "uuid",
            "description": "App the template belongs to — echoes the `appId` path parameter.",
            "example": "03815d0b-4cce-456b-9150-f3a6936f30ec"
          },
          "elementName": {
            "type": "string",
            "example": "safari_req_contact_info_mm"
          },
          "languageCode": {
            "type": "string",
            "example": "en"
          },
          "languagePolicy": {
            "type": "string",
            "example": "deterministic"
          },
          "category": {
            "type": "string",
            "description": "Final category. May differ from the requested one when\n`allowTemplateCategoryChange=true` and Meta reassigns it.\n",
            "enum": [
              "MARKETING",
              "UTILITY"
            ],
            "example": "MARKETING"
          },
          "templateType": {
            "type": "string",
            "example": "TEXT"
          },
          "vertical": {
            "type": "string",
            "example": "AAA"
          },
          "status": {
            "type": "string",
            "description": "Approval state. A fresh create returns `PENDING`.",
            "enum": [
              "PENDING",
              "APPROVED",
              "REJECTED",
              "PAUSED",
              "DISABLED",
              "FAILED"
            ],
            "example": "PENDING"
          },
          "state": {
            "type": "string",
            "description": "Lifecycle state of the template record.",
            "example": "ACTIVE"
          },
          "stage": {
            "type": "string",
            "description": "Maker–checker stage. `NONE` when `checkerApprovalRequired=false`.",
            "example": "NONE"
          },
          "quality": {
            "type": "string",
            "description": "Meta quality rating. `UNKNOWN` until the template has traffic.",
            "enum": [
              "UNKNOWN",
              "GREEN",
              "YELLOW",
              "RED"
            ],
            "example": "UNKNOWN"
          },
          "buttonSupported": {
            "type": "string",
            "description": "Short code for the button family on the template — `RCI` for `REQUEST_CONTACT_INFO`.",
            "example": "RCI"
          },
          "data": {
            "type": "string",
            "description": "Body followed by ` | ` and the button captions. `[null]` appears where the button\ncarries no stored caption, as with `REQUEST_CONTACT_INFO`. Variables stay unrendered.\n",
            "example": "Hello! We have an update regarding your transaction. Could you please share your contact details? | [null]"
          },
          "containerMeta": {
            "type": "string",
            "description": "JSON **string** holding the full template definition — see `ContainerMeta`. The button\nentry keeps only `type`; the caption is not stored, because Meta supplies it per locale.\n",
            "example": "{\"appId\":\"03815d0b-4cce-456b-9150-f3a6936f30ec\",\"data\":\"Hello! …\",\"buttons\":[{\"type\":\"REQUEST_CONTACT_INFO\"}],\"sampleText\":\"Hello! …\",\"enableSample\":true,\"editTemplate\":false,\"addSecurityRecommendation\":false,\"isCPR\":false,\"cpr\":false}"
          },
          "meta": {
            "type": "string",
            "description": "JSON string carrying the `example` submitted with the create request.",
            "example": "{\"example\":\"Hello! We have an update regarding your transaction. Could you please share your contact details?\"}"
          },
          "namespace": {
            "type": "string",
            "description": "WABA message-template namespace (underscore-separated UUID).",
            "example": "7335da9b_cf2b_41e9_b006_049a59159dba"
          },
          "wabaId": {
            "type": "string",
            "description": "WhatsApp Business Account id.",
            "example": "954612427665223"
          },
          "parameterFormat": {
            "type": "string",
            "description": "How body variables are addressed.",
            "enum": [
              "POSITIONAL",
              "NAMED"
            ],
            "example": "POSITIONAL"
          },
          "priority": {
            "type": "integer",
            "description": "Send priority assigned by the platform. Observed as `1` for the `MARKETING` template\nand `2` for the `UTILITY` one.\n",
            "example": 1
          },
          "retry": {
            "type": "integer",
            "description": "Number of resubmissions to Meta so far.",
            "example": 0
          },
          "source": {
            "type": "string",
            "description": "Origin system of the template.",
            "example": "gupshup"
          },
          "createdOn": {
            "type": "integer",
            "format": "int64",
            "description": "Creation timestamp, epoch milliseconds.",
            "example": 1788176743806
          },
          "modifiedOn": {
            "type": "integer",
            "format": "int64",
            "description": "Last-modified timestamp, epoch milliseconds.",
            "example": 1788176743806
          }
        }
      },
      "PartnerResponse": {
        "type": "object",
        "description": "Template mutation response (create/edit/sync) with v1 parity fields.",
        "properties": {
          "status": {
            "type": "string",
            "description": "Lowercase `success` on the create route.",
            "example": "success"
          },
          "message": {
            "type": "string"
          },
          "template": {
            "$ref": "#/components/schemas/Template"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string",
            "example": "Invalid request"
          }
        }
      },
      "MetaErrorResponse": {
        "type": "object",
        "description": "Meta Graph API error surfaced through Partner Portal unchanged.",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "example": "Invalid parameter"
              },
              "type": {
                "type": "string",
                "example": "OAuthException"
              },
              "code": {
                "type": "integer",
                "example": 100
              },
              "error_subcode": {
                "type": "integer",
                "example": 2388153
              },
              "is_transient": {
                "type": "boolean",
                "example": false
              },
              "error_user_title": {
                "type": "string",
                "example": "Button text modification not allowed"
              },
              "error_user_msg": {
                "type": "string",
                "example": "Text for button type \"REQUEST_CONTACT_INFO\" cannot be modified and must always be \"Share Contact Info\"."
              },
              "fbtrace_id": {
                "type": "string",
                "example": "AUQV0thr2ag2oATWnJ2ctCd"
              }
            }
          }
        }
      }
    }
  }
}
```