openapi: 3.1.0 info: title: Salesforce Experience Cloud Salesforce CMS Connect Actions Media Delivery API description: Manage content, channels, and media in Experience Cloud CMS. Supports creating, updating, and delivering managed content across channels for headless content delivery and site publishing. Part of the Salesforce Connect REST API. version: 59.0.0 contact: name: Salesforce Developer Support url: https://developer.salesforce.com/ license: name: Salesforce Master Subscription Agreement url: https://www.salesforce.com/company/legal/sfdc-website-terms-of-service/ servers: - url: https://{instance}.salesforce.com/services/data/v59.0/connect/cms description: Salesforce Instance variables: instance: default: yourInstance description: Your Salesforce instance name or custom domain security: - oauth2: [] - bearerAuth: [] tags: - name: Media Delivery description: Media content delivery operations paths: /channels/{channelId}/contents/{contentKeyOrId}/binary: get: operationId: getDeliveryContentBinary summary: Salesforce Experience Cloud Get Content Binary Stream description: Returns the binary stream of published managed content such as images, documents, or videos. Used for downloading or streaming media files associated with CMS content. tags: - Media Delivery parameters: - $ref: '#/components/parameters/ChannelId' - name: contentKeyOrId in: path required: true description: Content key or managed content record ID schema: type: string responses: '200': description: Binary stream of the content content: application/octet-stream: schema: type: string format: binary image/*: schema: type: string format: binary application/pdf: schema: type: string format: binary '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' components: parameters: ChannelId: name: channelId in: path required: true description: The ID of the CMS delivery channel schema: type: string responses: Unauthorized: description: Unauthorized - invalid or expired OAuth token content: application/json: schema: type: array items: $ref: '#/components/schemas/ErrorResponse' NotFound: description: Resource not found content: application/json: schema: type: array items: $ref: '#/components/schemas/ErrorResponse' schemas: ErrorResponse: type: object description: Standard Salesforce API error response properties: errorCode: type: string message: type: string securitySchemes: oauth2: type: oauth2 description: Salesforce OAuth 2.0 authentication flows: authorizationCode: authorizationUrl: https://login.salesforce.com/services/oauth2/authorize tokenUrl: https://login.salesforce.com/services/oauth2/token scopes: api: Access and manage your data content: Manage CMS content bearerAuth: type: http scheme: bearer bearerFormat: OAuth2 description: Bearer token obtained through OAuth 2.0 flow