sig-ai Sleep API

The sleep API from sig-ai — 2 operation(s) for sleep.

Operations 2

POST /sleep/ingest Ingest Sleep #
GET /sleep/range Get Range #

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/sig-ai:sig-ai-sleep-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

sig-ai-sleep-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tastermonial Sleep API
  version: 0.1.0
tags:
- name: Sleep
paths:
  /sleep/ingest:
    post:
      tags:
      - Sleep
      summary: Ingest Sleep
      operationId: ingest_sleep_sleep_ingest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SleepIngest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /sleep/range:
    get:
      tags:
      - Sleep
      summary: Get Range
      operationId: get_range_sleep_range_get
      security:
      - HTTPBearer: []
      parameters:
      - name: experiment_id
        in: query
        required: true
        schema:
          type: string
          format: uuid
          title: Experiment Id
      - name: from
        in: query
        required: true
        schema:
          type: string
          format: date
          title: From
      - name: to
        in: query
        required: true
        schema:
          type: string
          format: date
          title: To
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SleepReadingIn:
      properties:
        date:
          type: string
          format: date
          title: Date
        sleep_score:
          anyOf:
          - type: integer
          - type: 'null'
          title: Sleep Score
        hrv:
          anyOf:
          - type: integer
          - type: 'null'
          title: Hrv
        deep_sleep_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Deep Sleep Min
        rem_sleep_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Rem Sleep Min
        total_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Total Min
        source:
          type: string
          title: Source
          default: manual
        external_id:
          anyOf:
          - type: string
          - type: 'null'
          title: External Id
      type: object
      required:
      - date
      title: SleepReadingIn
    SleepIngest:
      properties:
        readings:
          items:
            $ref: '#/components/schemas/SleepReadingIn'
          type: array
          title: Readings
      type: object
      required:
      - readings
      title: SleepIngest
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer