Medigo attachments API

File that contains content relevant to a medical inquiry

Operations 1

POST /files Upload a file to MEDIGO's server #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/medigo-attachments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

medigo-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Welcome to the official documentation for MEDIGO REST API. Your are seeing the documentation for **version 2**, the latest.

    [Click here](../v1/) for V1 documentation.


    ### Debug Info for Reporting Bugs


    If you need some support for the API usage or wish to report a bug in MEDIGO API, we include the additional `Trace-Id`

    header in every response that you should send along when interacting with MEDIGO support team.

    '
  version: 2.0.0
  title: MEDIGO Attachments API
  contact:
    name: the API Support
    email: itops@medigo.com
servers:
- url: /v2
tags:
- name: attachments
  description: File that contains content relevant to a medical inquiry
paths:
  /files:
    post:
      tags:
      - attachments
      summary: Upload a file to MEDIGO's server
      description: ''
      operationId: uploadFile
      security:
      - partner_token: []
      responses:
        201:
          description: The file was successfully uploaded to MEDIGO's servers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
        400:
          description: Missing file name
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestApiResponse'
        403:
          description: Invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedApiResponse'
        422:
          description: Invalid Mimetype
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidApiResponse'
        500:
          description: Internal Error - contact Medigo IT support
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalApiResponse'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: File to upload
                  format: binary
              required:
              - file
components:
  schemas:
    InternalApiResponse:
      type: object
      properties:
        code:
          type: string
          example: Internal
        message:
          type: string
    InvalidApiResponse:
      type: object
      properties:
        code:
          type: string
          example: Invalid
        message:
          type: string
    Attachment:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
          readOnly: true
          description: Generated attachment's UUID
          example: ead5dc24-e37f-4e2e82jss4db3f7574dd
        name:
          type: string
          description: File name
          example: my-attachment.pdf
        mime_type:
          type: string
          description: 'File''s [mime type](https://www.sitepoint.com/mime-types-complete-list/)

            only some types are allowed to be uploaded

            '
          example: application/pdf
        size:
          type: integer
          format: int64
          readOnly: true
          description: File size in bytes
          example: 57995
    BadRequestApiResponse:
      type: object
      properties:
        code:
          type: string
          example: BadRequest
        message:
          type: string
    UnauthorizedApiResponse:
      type: object
      properties:
        code:
          type: string
          example: BadRequest
        message:
          type: string
  securitySchemes:
    partner_token:
      type: apiKey
      in: header
      name: Authorization
      description: "Authentication done is via an *API token* provided by MEDIGO. The token should be provided as a bearer in the *Authorization* header of every request\nNote that the string *Bearer* followed by a whitespace should be prepended to the token.\nExample:\n\n    GET /v2/ HTTP/1.1\n    Host: https://api.medigo.com\n    Authorization: Bearer <your-api-token>\n"