Capy tasks API

The tasks API from Capy — 2 operation(s) for tasks.

Operations 2

GET /v1/tasks/{taskId} Get task #
GET /v1/tasks/{taskId}/diff Get task diff #

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/capy-tasks-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

capy-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Capy automations Tasks API
  version: 1.0.0
servers:
- url: https://capy.ai/api
security:
- bearerAuth: []
tags:
- name: tasks
paths:
  /v1/tasks/{taskId}:
    get:
      operationId: getTask
      summary: Get task
      description: Get a task by UUID.
      tags:
      - tasks
      security:
      - bearerAuth: []
      parameters:
      - name: taskId
        in: path
        required: true
        description: Task UUID.
        schema:
          type: string
          format: uuid
        example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/tasks/{taskId}/diff:
    get:
      operationId: getTaskDiff
      summary: Get task diff
      description: Get the current diff for a task by UUID.
      tags:
      - tasks
      security:
      - bearerAuth: []
      parameters:
      - name: taskId
        in: path
        required: true
        description: Task UUID.
        schema:
          type: string
          format: uuid
        example: 550e8400-e29b-41d4-a716-446655440000
      - name: mode
        in: query
        required: false
        schema:
          type: string
          enum:
          - uncommitted
          - pr
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDiffResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    TaskDiffResponse:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        stats:
          type: object
          properties:
            files:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            additions:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            deletions:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          required:
          - files
          - additions
          - deletions
          additionalProperties: false
        files:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              state:
                type: string
              additions:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              deletions:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              patch:
                type: string
            required:
            - path
            - state
            - additions
            - deletions
            - patch
            additionalProperties: false
        source:
          type: string
          enum:
          - snapshot
          - github
          - summary
      required:
      - stats
      - files
      - source
      additionalProperties: false
    Task:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        threadIndex:
          anyOf:
          - type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
          - type: 'null'
        identifier:
          type: string
        title:
          type: string
        prompt:
          type: string
        status:
          type: string
          enum:
          - backlog
          - queued
          - in_progress
          - needs_review
          - completed
          - error
          - archived
        pullRequest:
          type: 'null'
        slackThreads:
          type: array
          items:
            type: object
            properties:
              teamId:
                type: string
              channelId:
                type: string
              threadTs:
                type: string
              url:
                type: string
            required:
            - teamId
            - channelId
            - threadTs
            - url
            additionalProperties: false
        currentJamId:
          anyOf:
          - type: string
          - type: 'null'
        createdAt:
          type: string
        updatedAt:
          type: string
        threadId:
          anyOf:
          - type: string
          - type: 'null'
      required:
      - id
      - projectId
      - threadIndex
      - identifier
      - title
      - prompt
      - status
      - pullRequest
      - slackThreads
      - currentJamId
      - createdAt
      - updatedAt
      - threadId
      additionalProperties: false
    ErrorResponse:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
          - code
          - message
          additionalProperties: false
      required:
      - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token (capy_xxxx). Generate at capy.ai/settings/tokens