get https://api.gupshup.io/wa/app//business/profile/photo
Request Parameters
Key | Description | Constraints |
---|---|---|
Headers | ||
apikey | Apikey of the account where the app is to be created | Should be a valid gupshup.io apikey |
Path Params | ||
appId | Valid app id |
Response Parameters
Key | Description |
---|---|
message | Contains the link to the profile photo |
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
200 | { "message": "", "status": "success" } | |
Error | ||
400 | { "status": "error", "message": "Invalid app id provided" } | When invalid/empty appId is provided |
400 | { "status": "error", "error": { "message": " } } | When Facebook returns an error while setting business profile photo |
400 | { "status": "error", "error": { "message": "couldn't fetch profile picture" } } | When an error occurs while fetching photo |
401 | { "status": "error", "message": "Authentication Failed" } | When API key is unauthorized |
429 | { "status": "error", "message": "Too Many Requests" } | When the rate limit is exceeded |