openapi: 3.2.0 info: title: Dynamic API Specification Assets API description: This is a dynamically generated API specification for all endpoints existing on the current project. version: 10.10.7 servers: - url: cms.int.carbonfarm.app description: Your current Directus instance. tags: - name: Assets description: Image typed files can be dynamically resized and transformed to fit any need. paths: /assets/{id}: get: tags: - Assets operationId: getAsset summary: Get an Asset description: Image typed files can be dynamically resized and transformed to fit any need. parameters: - name: id in: path description: The id of the file. required: true schema: type: string - name: key in: query description: The key of the asset size configured in settings. schema: type: string - name: transforms in: query description: A JSON array of image transformations schema: type: string - name: download in: query description: Download the asset to your computer schema: type: boolean responses: '200': description: Successful request content: text/plain: schema: type: string '404': $ref: '#/components/responses/NotFoundError' components: responses: NotFoundError: description: 'Error: Not found.' content: application/json: schema: type: object properties: error: type: object properties: code: type: integer format: int64 message: type: string securitySchemes: KeyAuth: type: apiKey in: query name: access_token Auth: type: apiKey in: header name: Authorization