Centaur Labs Masks Public API

The masks-public API from Centaur Labs — 2 operation(s) for masks-public.

Operations 2

POST /masks/public/v1/commit Commit uploaded masks (public API) #
POST /masks/public/v1/generate-presigned-urls Generate pre-signed mask upload URLs (public API) #

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-public-login-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-public-login-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-message-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-refresh-token-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-version-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-task-range-v2-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-task-classification-v2-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-existing-task-classification-v2-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-existing-task-segmentation-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-existing-task-range-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-existing-task-classification-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-case-result-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-result-v1-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-result-list-v1-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-case-result-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-reads-lookup-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-reads-lookup-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-generate-presigned-urls-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-commit-masks-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-generate-presigned-urls-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/centaur-labs/refs/heads/main/json-schema/centaur-labs-commit-masks-request-public-api-schema.json

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/centaur-labs:centaur-labs-masks-public-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

centaur-labs-masks-public-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Centaur Public Masks Public API
  version: 1.0.0
servers:
- url: https://api.centaurlabs.com
  description: Public API
security:
- bearerAuth: []
  ApiKeyAuth: []
tags:
- name: masks-public
paths:
  /masks/public/v1/commit:
    post:
      tags:
      - masks-public
      summary: Commit uploaded masks (public API)
      description: 'Validate and copy uploaded masks to the permanent bucket (public API); the batch is

        capped at 20 masks.'
      operationId: public_commit_masks_route_masks_public_v1_commit_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommitMasksRequestPublicApi'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommitMasksResponse'
        '207':
          description: Some masks were not submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommitMasksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /masks/public/v1/generate-presigned-urls:
    post:
      tags:
      - masks-public
      summary: Generate pre-signed mask upload URLs (public API)
      description: Request pre-signed URLs for direct upload of DICOMSEG or TIFF masks (public API).
      operationId: public_generate_presigned_urls_route_masks_public_v1_generate_presigned_urls_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeneratePresignedURLsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneratePresignedURLsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PixelMaskTiffInfo:
      properties:
        problem_id:
          type: integer
          title: Problem Id
        label_class_ids:
          items:
            type: integer
          type: array
          minItems: 1
          title: Label Class Ids
        category:
          $ref: '#/components/schemas/MaskCategory'
        mask_type:
          type: string
          const: tiff
          title: Mask Type
          default: tiff
        frame_id:
          type: integer
          title: Frame Id
      type: object
      required:
      - problem_id
      - label_class_ids
      - category
      - frame_id
      title: PixelMaskTiffInfo
    MaskCategory:
      type: string
      enum:
      - opinions
      - correct_answers
      - majority_opinions
      - pre_labels
      title: MaskCategory
    CommitMaskResponseSuccess:
      properties:
        mask_request_info:
          $ref: '#/components/schemas/CommitMaskRequestMask'
        success:
          type: boolean
          const: true
          title: Success
        frame_data:
          anyOf:
          - items:
              $ref: '#/components/schemas/FrameInfo'
            type: array
          - type: 'null'
          title: Frame Data
        tiff_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Tiff Url
        mask_uuid:
          anyOf:
          - type: string
          - type: 'null'
          title: Mask Uuid
      type: object
      required:
      - mask_request_info
      - success
      - frame_data
      title: CommitMaskResponseSuccess
    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
    PixelMaskDicomSegInfo:
      properties:
        problem_id:
          type: integer
          title: Problem Id
        label_class_ids:
          items:
            type: integer
          type: array
          minItems: 1
          title: Label Class Ids
        category:
          $ref: '#/components/schemas/MaskCategory'
        mask_type:
          type: string
          const: dicom_seg
          title: Mask Type
          default: dicom_seg
        study_uuid:
          type: string
          title: Study Uuid
        series_uuid:
          type: string
          title: Series Uuid
      type: object
      required:
      - problem_id
      - label_class_ids
      - category
      - study_uuid
      - series_uuid
      title: PixelMaskDicomSegInfo
    CommitMasksResponse:
      properties:
        masks:
          items:
            anyOf:
            - $ref: '#/components/schemas/CommitMaskResponseSuccess'
            - $ref: '#/components/schemas/CommitMaskResponseError'
          type: array
          title: Masks
        all_masks_success:
          type: boolean
          title: All Masks Success
      type: object
      required:
      - masks
      - all_masks_success
      title: CommitMasksResponse
    CommitMaskResponseError:
      properties:
        mask_request_info:
          $ref: '#/components/schemas/CommitMaskRequestMask'
        success:
          type: boolean
          const: false
          title: Success
        error_message:
          type: string
          title: Error Message
      type: object
      required:
      - mask_request_info
      - success
      - error_message
      title: CommitMaskResponseError
    CommitMaskRequestMask:
      properties:
        presigned_url:
          type: string
          title: Presigned Url
        problem_id:
          type: integer
          title: Problem Id
        label_class_id:
          type: integer
          title: Label Class Id
        category:
          $ref: '#/components/schemas/MaskCategory'
        frame_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Frame Id
          description: Must provide a frame_id for 2D masks
        frame_uuid:
          anyOf:
          - type: string
          - type: 'null'
          title: Frame Uuid
        user_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: User Id
        series_uuid:
          anyOf:
          - type: string
          - type: 'null'
          title: Series Uuid
          description: Must provide a series_uuid for 3D masks
      type: object
      required:
      - presigned_url
      - problem_id
      - label_class_id
      - category
      title: CommitMaskRequestMask
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FrameInfo:
      properties:
        tiff_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Tiff Url
        mask_uuid:
          anyOf:
          - type: string
          - type: 'null'
          title: Mask Uuid
      type: object
      required:
      - tiff_url
      - mask_uuid
      title: FrameInfo
    CommitMasksRequestPublicApi:
      properties:
        task_id:
          type: integer
          title: Task Id
        masks:
          items:
            $ref: '#/components/schemas/CommitMaskRequestMask'
          type: array
          maxItems: 20
          title: Masks
      type: object
      required:
      - task_id
      - masks
      title: CommitMasksRequestPublicApi
    PixelMaskResponseInfo:
      properties:
        uuid:
          type: string
          title: Uuid
        presigned_urls:
          items:
            anyOf:
            - $ref: '#/components/schemas/PresignedURLsTIFFInfo'
            - $ref: '#/components/schemas/PresignedURLsDicomSegInfo'
          type: array
          title: Presigned Urls
      type: object
      required:
      - uuid
      - presigned_urls
      title: PixelMaskResponseInfo
    GeneratePresignedURLsResponse:
      properties:
        project_id:
          type: integer
          title: Project Id
        task_id:
          type: integer
          title: Task Id
        masks:
          items:
            $ref: '#/components/schemas/PixelMaskResponseInfo'
          type: array
          title: Masks
      type: object
      required:
      - project_id
      - task_id
      - masks
      title: GeneratePresignedURLsResponse
    GeneratePresignedURLsRequest:
      properties:
        project_id:
          type: integer
          title: Project Id
        task_id:
          type: integer
          title: Task Id
        masks:
          anyOf:
          - items:
              $ref: '#/components/schemas/PixelMaskTiffInfo'
            type: array
          - items:
              $ref: '#/components/schemas/PixelMaskDicomSegInfo'
            type: array
          minLength: 1
          title: Masks
      type: object
      required:
      - project_id
      - task_id
      - masks
      title: GeneratePresignedURLsRequest
    PresignedURLsTIFFInfo:
      properties:
        file_url:
          type: string
          title: File Url
        label_class_id:
          type: integer
          title: Label Class Id
        mask_type:
          type: string
          const: tiff
          title: Mask Type
        frame_id:
          type: integer
          title: Frame Id
      type: object
      required:
      - file_url
      - label_class_id
      - mask_type
      - frame_id
      title: PresignedURLsTIFFInfo
    PresignedURLsDicomSegInfo:
      properties:
        file_url:
          type: string
          title: File Url
        label_class_id:
          type: integer
          title: Label Class Id
        mask_type:
          type: string
          const: dicom_seg
          title: Mask Type
        study_uuid:
          type: string
          title: Study Uuid
        series_uuid:
          type: string
          title: Series Uuid
      type: object
      required:
      - file_url
      - label_class_id
      - mask_type
      - study_uuid
      - series_uuid
      title: PresignedURLsDicomSegInfo
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
x-provenance:
  method: searched
  source: https://docs.centaurlabs.com/reference
  harvested: '2026-10-14'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.centaurlabs.com/reference/public_commit_masks_route_masks_public_v1_commit_post.md
  - https://docs.centaurlabs.com/reference/public_generate_presigned_urls_route_masks_public_v1_generate_presigned_urls_post.md
  merge:
    pages: 2
    deduped: 5
    conflicts_kept_first: 0