openapi: 3.0.1 info: title: Symphony Agent Add Attachment API description: 'This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to some subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://rest-api.symphony.com/docs/messagemlv2 - **Real Time Events**: The following events are returned when reading from a real time messages and events stream ("datafeed"). These events will be returned for datafeeds created with the v5 endpoints. To know more about the endpoints, refer to Create Messages/Events Stream and Read Messages/Events Stream. Unless otherwise specified, all events were added in 1.46. ' version: 22.9.1 servers: - url: / tags: - name: Attachment paths: /v1/stream/{sid}/attachment: get: tags: - Attachment summary: Download an Attachment description: Downloads the attachment body by the attachment ID, stream ID, and message ID. parameters: - name: sid in: path description: Stream ID required: true schema: type: string - name: fileId in: query description: The attachment ID (Base64-encoded) required: true schema: type: string - name: messageId in: query description: The ID of the message containing the attachment required: true schema: type: string - name: sessionToken in: header description: Session authentication token. required: true schema: type: string - name: keyManagerToken in: header description: Key Manager authentication token. required: true schema: type: string responses: '200': description: Attachment body as Base64 encoded string. content: application/octet-stream: schema: type: string format: byte '400': description: Client error, see response body for further details. content: application/octet-stream: schema: $ref: '#/components/schemas/Error' '401': description: 'Unauthorized: Session tokens invalid.' content: application/octet-stream: schema: $ref: '#/components/schemas/Error' '403': description: 'Forbidden: Caller lacks necessary entitlement.' content: application/octet-stream: schema: $ref: '#/components/schemas/Error' '500': description: Server error, see response body for further details. content: application/octet-stream: schema: $ref: '#/components/schemas/Error' components: schemas: Error: type: object properties: code: type: integer format: int32 message: type: string