WHOOP · Capability

WHOOP API — Sleep

WHOOP Sleep activities. List sleeps and get a specific sleep by UUID.

WHOOP API — Sleep is a Naftiko capability published by WHOOP, one of 6 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the GET method rooted at /v1/v2/activity/sleep.

The capability includes 2 read-only operations. Lead operation: List WHOOP Sleep activities. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include WHOOP and Sleep.

Run with Naftiko WHOOPSleep

What You Can Do

GET
Listsleeps
/v1/v2/activity/sleep

MCP Tools

whoop-list-sleeps

List WHOOP Sleep activities.

read-only idempotent
whoop-get-sleep

Get a Sleep activity by UUID.

read-only idempotent

Capability Spec

whoop-sleep.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WHOOP API — Sleep
  description: WHOOP Sleep activities. List sleeps and get a specific sleep by UUID.
  tags:
  - WHOOP
  - Sleep
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    WHOOP_ACCESS_TOKEN: WHOOP_ACCESS_TOKEN
capability:
  consumes:
  - type: http
    namespace: whoop-sleep
    baseUri: https://api.prod.whoop.com/developer
    description: WHOOP Sleep business capability — primary sleeps and naps with stage-by-stage analytics.
    resources:
    - name: v2-activity-sleep
      path: /v2/activity/sleep
      operations:
      - name: listsleeps
        method: GET
        description: List WHOOP Sleep activities for the authorized member.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
        - name: start
          in: query
          type: string
        - name: end
          in: query
          type: string
        - name: nextToken
          in: query
          type: string
    - name: v2-activity-sleep-by-id
      path: /v2/activity/sleep/{sleepId}
      operations:
      - name: getsleep
        method: GET
        description: Get a specific Sleep activity by UUID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sleepId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      value: '{{env.WHOOP_ACCESS_TOKEN}}'
      placement: header
  exposes:
  - type: rest
    namespace: whoop-sleep-rest
    port: 8080
    description: REST adapter for WHOOP Sleep.
    resources:
    - path: /v1/v2/activity/sleep
      name: v2-activity-sleep
      operations:
      - method: GET
        name: listsleeps
        call: whoop-sleep.listsleeps
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: whoop-sleep-mcp
    port: 9090
    transport: http
    description: MCP adapter for WHOOP Sleep.
    tools:
    - name: whoop-list-sleeps
      description: List WHOOP Sleep activities.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whoop-sleep.listsleeps
      outputParameters:
      - type: object
        mapping: $.
    - name: whoop-get-sleep
      description: Get a Sleep activity by UUID.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whoop-sleep.getsleep
      with:
        sleepId: tools.sleepId
      outputParameters:
      - type: object
        mapping: $.