{ "opencollection": "1.0.0", "info": { "name": "Snapchat Ads Ad Accounts Media API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://accounts.snapchat.com/accounts/oauth2/auth", "accessTokenUrl": "https://accounts.snapchat.com/login/oauth2/access_token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Media", "type": "folder" }, "items": [ { "info": { "name": "List All Media for an Ad Account", "type": "http" }, "http": { "method": "GET", "url": "https://adsapi.snapchat.com/v1/adaccounts/:ad_account_id/media", "params": [ { "name": "ad_account_id", "value": "", "type": "path", "description": "The unique identifier of the ad account" } ] }, "docs": "Retrieves all media objects associated with the specified ad account." }, { "info": { "name": "Create a Media Object", "type": "http" }, "http": { "method": "POST", "url": "https://adsapi.snapchat.com/v1/adaccounts/:ad_account_id/media", "params": [ { "name": "ad_account_id", "value": "", "type": "path", "description": "The unique identifier of the ad account" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new media object under the specified ad account. The media object must be created before uploading the actual media file." }, { "info": { "name": "Upload Media Content", "type": "http" }, "http": { "method": "POST", "url": "https://adsapi.snapchat.com/v1/media/:media_id/upload", "params": [ { "name": "media_id", "value": "", "type": "path", "description": "The unique identifier of the media object" } ], "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" } ] } }, "docs": "Uploads the actual media file content to an existing media object. Supports images, videos, and playable media. Maximum chunk size is 32MB per request." } ] } ], "bundled": true }