get https://partner.gupshup.io/partner/app//flows//assets
Use this API to get JSON asset.
Request Parameters
Key | Description | Values | Data Types | 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 of the app | {{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/An_qz12NPUQ-ISjP2K6iOVfYS6WJSWt3V5Sl4xCABRdvu96zd39uiNC9ibgAqbdnUHjtNwzAqn5JXvRkCdQjts4MoxIsBvUL6pda8SWTUqIH1WxyV97gc4_cW8cueswitJU?ccb=10-5&oh=01_Q5AaIDtmmPzk8N5TfZnE87ifk6bbp1zsbx4EeA0eoUMMKJIL&oe=66F3C91A&_nc_sid=471a72",
"name": "flow.json"
}
]
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
200 | [ { "asset_type": "FLOW_JSON", "download_url": "https://mmg.whatsapp.net/m1/v/t24/An_qz12NPUQ-ISjP2K6iOVfYS6WJSWt3V5Sl4xCABRdvu96zd39uiNC9ibgAqbdnUHjtNwzAqn5JXvRkCdQjts4MoxIsBvUL6pda8SWTUqIH1WxyV97gc4_cW8cueswitJU?ccb=10-5&oh=01_Q5AaIDtmmPzk8N5TfZnE87ifk6bbp1zsbx4EeA0eoUMMKJIL&oe=66F3C91A&_nc_sid=471a72", "name": "flow.json" } ] | id refers to the flow-id generated by Meta |
Error | ||
400 | { "status":"error", "message":"Blocked by Integrity" } |