put
https://partner.gupshup.io/partner/app//optin
Use this API to set Optin for the app user.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Parameters
| Parameters | Value | Description |
|---|---|---|
| Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
| APP ID | {{APP_ID}} | Unique Identifier for Gupshup App |
| phone | 91xxxxxxxxxx | Phone number of user to get status for. |
Sample Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/optin' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'phone={{PHONE_NUMBER}}'Sample Response
Status code will be - 202 (Accepted)
Response will be empty as it is async process