get
https://partner.gupshup.io/partner/app//flows//assets
Use this API to get JSON asset.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Request Parameters
| Key | Description | Value | Data type | Required/Optional | Constraints |
|---|---|---|---|---|---|
| Authorization | Access Token for the application | {{PARTNER_APP_TOKEN}} | String | Required | Should be a valid Partner App Access Token |
| appId | App ID to fetch the access token | {{APP_ID}} | String | Required | The ID should be a valid app ID of Gupshup. |
| flowId | Flow Id | {{FLOW_ID}} | String | Required | Flow Id generated by Meta |
Sample Request
curl --location --request GET 'https://partner.gupshup.io/partner/app/{{APP_ID}}/flows/{{FLOW_ID}}/assets' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/json'Sample Response
[
{
"asset_type": "FLOW_JSON",
"download_url": "https://mmg.whatsapp.net/m1/v/t24/An9xSDGdyGcW0nTRCOYpSKqDhpPeFj1_tKBxswuOYC6DzClzkb3K28561rl0WVKF-go0gzdaAz7H4GRaMaL6b0bLmWG2yH77Vsj40Zv2gjR0NuNMV0B60qqb3fnsT8aQRnM?ccb=10-5&oh=01_Q5AaIJC0sV_X8sXaonaGes0uh3_AVS5aAhgI4OTOYVER7v7H&oe=669CC7C9&_nc_sid=471a72",
"name": "flow.json"
}
]
Status Codes
| Status Code | Response | Comments |
|---|---|---|
| Success | ||
| 200 | [ { | download_url has link to current flow json |
| Error | ||
| 400 | { "status": "error", | For invalid flow ID |