openapi: 3.2.0 info: title: AI Gateway MCP Server Transfers API description: Universal MCP Gateway with OAuth integration - Modern Architecture version: 2.0.3290 tags: - name: Transfers paths: /api/v1/transfers/{transfer_id}/download: get: summary: Transfer Download Endpoint description: 'Stream proxy / synthesize download endpoint. GET /api/v1/transfers/{transfer_id}/download Header: X-Transfer-Token:' operationId: transfer_download_endpoint_api_v1_transfers__transfer_id__download_get parameters: - name: transfer_id in: path required: true schema: type: string title: Transfer Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Transfers /api/v1/transfers/{transfer_id}/upload: put: summary: Transfer Upload Endpoint description: 'Stream-proxy upload endpoint. PUT /api/v1/transfers/{transfer_id}/upload Header: X-Transfer-Token: Body: raw bytes (up to record.max_bytes) Validates the ticket + token, reads the client body (cap-enforced), forwards a multipart request to the upstream service (GitLab ``/uploads`` for ``resource_type=markdown_attachment``, more integrations to follow), then writes the upstream''s JSON response back into the transfer record under ``upload_result``. Callers like ``gateway_issue_write_actions(attachments=[{transfer_id}])`` resolve the ref from there. Reference: docs/architecture/MEDIA_TRANSFER_PROTOCOL.md' operationId: transfer_upload_endpoint_api_v1_transfers__transfer_id__upload_put parameters: - name: transfer_id in: path required: true schema: type: string title: Transfer Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Transfers components: schemas: HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError