Global Relay Files API

Endpoints for uploading file attachments

Operations 1

POST /files Global Relay Upload a file attachment #

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/global-relay-files-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

global-relay-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Global Relay Files API
  version: 2.0.0
  license:
    name: Proprietary
    url: https://www.globalrelay.com/legal/
  description: 'Operations tagged Files across 4 of this provider''s published API definitions: global-relay-conversation-archiving-api-openapi.yml, global-relay-email-archiving-api-openapi.yml, global-relay-event-archiving-api-openapi.yml, global-relay-voice-archiving-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://conversations.api.globalrelay.com/v2
  description: Production server
- url: https://email.api.globalrelay.com/v2
  description: Production server
- url: https://events.api.globalrelay.com/v2
  description: Production server
- url: https://voice.api.globalrelay.com/v2
  description: Production server
security:
- BearerAuth: []
tags:
- name: Files
  description: Endpoints for uploading file attachments
paths:
  /files:
    post:
      operationId: uploadFile
      summary: Global Relay Upload a file attachment
      description: Uploads a file attachment to be referenced in a conversation archive request. Files must be uploaded before they are referenced in a /conversations request with the File_transfer eventType. Rate limited to 100 requests per minute.
      tags:
      - Files
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/FileUploadRequest'
      responses:
        '200':
          description: File uploaded successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponse'
        '400':
          description: Bad request - invalid file data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid or expired access token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded - max 100 requests per minute
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://conversations.api.globalrelay.com/v2
      description: Production server
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error code
        message:
          type: string
          description: Human-readable error message
        requestId:
          type: string
          format: uuid
          description: Request ID for troubleshooting
    FileResponse:
      type: object
      properties:
        fileId:
          type: string
          description: ID of the uploaded file
        status:
          type: string
          description: Status of the file upload
    FileUploadRequest:
      type: object
      required:
      - file
      - fileId
      properties:
        file:
          type: string
          format: binary
          description: The file to upload
        fileId:
          type: string
          description: Unique identifier for the file
        fileName:
          type: string
          description: Original filename
        contentType:
          type: string
          description: MIME type of the file
    FileUploadRequest_2:
      type: object
      required:
      - file
      - fileId
      properties:
        file:
          type: string
          format: binary
          description: The audio or video file to upload
        fileId:
          type: string
          description: Unique identifier for the file
        fileName:
          type: string
          description: Original filename
        contentType:
          type: string
          description: MIME type of the file (e.g., audio/wav, video/mp4)
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth 2.0 Client Credentials grant. Obtain a token from https://iam-oauth2.globalrelay.com/oauth2/token with grant_type=client_credentials and scope=openid conversation.
x-refined-from:
- global-relay-conversation-archiving-api-openapi.yml
- global-relay-email-archiving-api-openapi.yml
- global-relay-event-archiving-api-openapi.yml
- global-relay-voice-archiving-api-openapi.yml