Optin App User

Use this API to set Optin for the app user

Parameters

ParametersValueDescription
Authorization{{PARTNER_APP_TOKEN}}Access Token for the application
APP ID{{APP_ID}}Unique Identifier for Gupshup App
phone91xxxxxxxxxxPhone 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
Language
Click Try It! to start a request and see the response here!