Leia Storage API

The Storage API from Leia — 1 operation(s) for storage.

Operations 1

GET /api/v1/get-upload-url Get Presigned URL #

Documentation

Specifications

Other Resources

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/leia-storage-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

leia-storage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Immersity Cloud Storage API
  description: Immersity Cloud APIs provide a seamless and efficient way to leverage the power of computer vision and generate estimated disparity maps from 2D images.
  version: 3.1.1
  contact:
    name: Discord
    url: https://discord.gg/immersityai
    email: ''
  termsOfService: https://www.immersity.ai/legal/terms-conditions
servers:
- url: https://api.immersity.ai
- url: https://api.leiapix.com
tags:
- name: Storage
  description: ''
paths:
  /api/v1/get-upload-url:
    get:
      operationId: StorageController_getStoragePresignedUrl
      x-codeSamples:
      - label: Python
        lang: Python
        source: "import uuid\nimport requests\ncorrelation_id = str(uuid.uuid4())\nrequests.get(\n    'https://api.immersity.ai/api/v1/get-upload-url',\n    headers={\n        'Authorization': 'Bearer {access_token}'  # acquired in previous step\n    },\n    timeout=5 * 60  # expires in 5 min\n)"
      - label: Node.js
        lang: javascript
        source: "const uuid = require('uuid');\nconst axios = require('axios');\n\nconst correlationId = uuid.v4();\n\naxios.get(\n    'https://api.immersity.ai/api/v1/get-upload-url',\n    headers: {\n        Authorization: 'Bearer {accessToken}', // acquired in previous step\n    },\n    timeout: 5 * 60 * 1000, // expires in 5 min\n});\n    "
      summary: Get Presigned URL
      description: Get a presigned URL for uploading a file to Leia Storage with 24hrs expiration
      parameters:
      - name: fileName
        required: false
        in: query
        description: File name to upload
        example: myFile.jpg
        schema:
          type: string
      - name: mediaType
        required: false
        in: query
        description: Mime type of the file to upload
        example: image/jpeg
        schema:
          type: string
      - name: correlationId
        required: false
        in: query
        description: Unique query identifier. If not provided, one will be generated
        example: 123e4567-e89b-12d3-a456-426614174000
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RESTStorageApiCallResult'
        '400':
          description: The request has invalid parameters
        '401':
          description: Returned if the user is not authenticated or authentication parameters are invalid
        '402':
          description: Returned it there is not enough credit balance
      tags:
      - Storage
      security:
      - bearer: []
components:
  schemas:
    RESTStorageApiCallResult:
      type: object
      properties:
        url:
          type: string
          description: Generated presigned URL for uploading a file to Leia Storage
          example: https://leia-storage.s3.amazonaws.com/...
        urlExpiresUTC:
          type: string
          description: Generated presigned URL expiration timestamp
          example: '2021-04-28T12:00:00.000Z'
      required:
      - url
      - urlExpiresUTC
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
externalDocs:
  description: Find out more about Immersity Cloud
  url: https://docs-api.immersity.ai/docs/getting-started
x-readme:
  explorer-enabled: true
  proxy-enabled: true