ctlsurf Selection Tasks API

The selection-tasks API from ctlsurf — 4 operation(s) for selection-tasks.

GitHub OpenAPI

Operations 7

POST /api/selection-tasks Create Selection Task #
GET /api/selection-tasks List Selection Tasks #
GET /api/selection-tasks/{task_id} Get Selection Task #
PATCH /api/selection-tasks/{task_id} Update Selection Task #
DELETE /api/selection-tasks/{task_id} Delete Selection Task #
POST /api/selection-tasks/{task_id}/claim Claim Selection Task #
POST /api/selection-tasks/{task_id}/complete Complete Selection Task #

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/ctlsurf-com:ctlsurf-com-selection-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

ctlsurf-com-selection-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctlsurf Com Selection Tasks API
  version: 0.1.0
  description: 'Operations tagged selection-tasks across 2 of this provider''s published API definitions: ctlsurf-com-openapi.json, ctlsurf-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.ctlsurf.com
  description: ctlsurf application host (documented MCP endpoint https://app.ctlsurf.com/api/mcp; spec served at /openapi.json)
tags:
- name: selection-tasks
paths:
  /api/selection-tasks:
    post:
      tags:
      - selection-tasks
      summary: Create Selection Task
      description: Create a new selection task from a notebook selection.
      operationId: create_selection_task_api_selection_tasks_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelectionTaskCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelectionTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - selection-tasks
      summary: List Selection Tasks
      description: List selection tasks with optional filtering.
      operationId: list_selection_tasks_api_selection_tasks_get
      security:
      - HTTPBearer: []
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Filter by status: pending, in_progress, completed, cancelled'
          title: Status
        description: 'Filter by status: pending, in_progress, completed, cancelled'
      - name: root_path
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by codebase root path
          title: Root Path
        description: Filter by codebase root path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SelectionTaskResponse'
                title: Response List Selection Tasks Api Selection Tasks Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/selection-tasks/{task_id}:
    get:
      tags:
      - selection-tasks
      summary: Get Selection Task
      description: Get a specific selection task.
      operationId: get_selection_task_api_selection_tasks__task_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelectionTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - selection-tasks
      summary: Update Selection Task
      description: Update a selection task (status, add note, complete).
      operationId: update_selection_task_api_selection_tasks__task_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Task Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelectionTaskUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelectionTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - selection-tasks
      summary: Delete Selection Task
      description: Delete a selection task.
      operationId: delete_selection_task_api_selection_tasks__task_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/selection-tasks/{task_id}/claim:
    post:
      tags:
      - selection-tasks
      summary: Claim Selection Task
      description: Claim a task (mark as in_progress). For agents to indicate they're working on it.
      operationId: claim_selection_task_api_selection_tasks__task_id__claim_post
      security:
      - HTTPBearer: []
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelectionTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/selection-tasks/{task_id}/complete:
    post:
      tags:
      - selection-tasks
      summary: Complete Selection Task
      description: Mark a task as completed with summary.
      operationId: complete_selection_task_api_selection_tasks__task_id__complete_post
      security:
      - HTTPBearer: []
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Task Id
      - name: summary
        in: query
        required: true
        schema:
          type: string
          description: Summary of work completed
          title: Summary
        description: Summary of work completed
      - name: result_page_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Optional page created as result
          title: Result Page Id
        description: Optional page created as result
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelectionTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SelectionTaskUpdate:
      properties:
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        note:
          anyOf:
          - type: string
          - type: 'null'
          title: Note
        completed_summary:
          anyOf:
          - type: string
          - type: 'null'
          title: Completed Summary
        result_page_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Result Page Id
      type: object
      title: SelectionTaskUpdate
      description: Update a selection task.
    SelectionTaskResponse:
      properties:
        id:
          type: string
          title: Id
        page_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Id
        block_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Block Id
        selection_type:
          type: string
          title: Selection Type
        selection_data:
          additionalProperties: true
          type: object
          title: Selection Data
        selection_display:
          type: string
          title: Selection Display
        prompt:
          type: string
          title: Prompt
        status:
          type: string
          title: Status
        notes:
          items:
            type: string
          type: array
          title: Notes
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        started_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Started At
        completed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Completed At
        completed_summary:
          anyOf:
          - type: string
          - type: 'null'
          title: Completed Summary
        result_page_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Result Page Id
        root_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Root Path
        source:
          anyOf:
          - $ref: '#/components/schemas/SelectionSource'
          - type: 'null'
      type: object
      required:
      - id
      - selection_type
      - selection_data
      - selection_display
      - prompt
      - status
      - notes
      title: SelectionTaskResponse
      description: Selection task response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SelectionSource:
      properties:
        page_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Id
        page_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Title
        block_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Block Id
        block_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Block Title
      type: object
      title: SelectionSource
      description: Source location of a selection task.
    SelectionTaskCreate:
      properties:
        page_id:
          type: string
          format: uuid
          title: Page Id
        block_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Block Id
        selection_type:
          type: string
          title: Selection Type
        selection_data:
          additionalProperties: true
          type: object
          title: Selection Data
        selection_display:
          type: string
          title: Selection Display
        prompt:
          type: string
          title: Prompt
      type: object
      required:
      - page_id
      - selection_type
      - selection_data
      - selection_display
      - prompt
      title: SelectionTaskCreate
      description: Create a new selection task.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- ctlsurf-com-openapi.json
- ctlsurf-com-openapi.yml