ctlsurf Page Agent API

The page-agent API from ctlsurf — 16 operation(s) for page-agent.

GitHub OpenAPI

Operations 16

POST /api/v1/page-agent/mcp Read Mcp Boundary #
POST /api/v1/page-agent/pages/{page_id}/read Read With Mcp #
POST /api/v1/page-agent/pages/{page_id}/assist Assist With Mcp #
GET /api/v1/page-agent/capabilities Capabilities #
GET /api/v1/page-agent/pages/{page_id}/actions Recent Actions #
GET /api/v1/page-agent/actions/{action_id} Action Receipt #
POST /api/v1/page-agent/actions/{action_id}/approve Approve Action #
POST /api/v1/page-agent/actions/{action_id}/dismiss Dismiss Action #
POST /api/v1/page-agent/actions/{action_id}/undo Undo Action #
POST /api/v1/page-agent/voice-session Voice Session #
POST /api/v1/page-agent/pages/{page_id}/speech Page Speech #
POST /api/v1/page-agent/pages/{page_id}/turn Turn #
GET /api/v1/page-agent/pages/{page_id}/edits Recent Edits #
POST /api/v1/page-agent/edits/{edit_id}/apply Apply Edit #
POST /api/v1/page-agent/edits/{edit_id}/undo Undo Edit #
POST /api/v1/page-agent/edits/{edit_id}/dismiss Dismiss Edit #

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-page-agent-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-page-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctlsurf Com Page Agent API
  version: 0.1.0
  description: 'Operations tagged page-agent 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: page-agent
paths:
  /api/v1/page-agent/mcp:
    post:
      tags:
      - page-agent
      summary: Read Mcp Boundary
      operationId: read_mcp_boundary_api_v1_page_agent_mcp_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/v1/page-agent/pages/{page_id}/read:
    post:
      tags:
      - page-agent
      summary: Read With Mcp
      operationId: read_with_mcp_api_v1_page_agent_pages__page_id__read_post
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/pages/{page_id}/assist:
    post:
      tags:
      - page-agent
      summary: Assist With Mcp
      operationId: assist_with_mcp_api_v1_page_agent_pages__page_id__assist_post
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/capabilities:
    get:
      tags:
      - page-agent
      summary: Capabilities
      operationId: capabilities_api_v1_page_agent_capabilities_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/v1/page-agent/pages/{page_id}/actions:
    get:
      tags:
      - page-agent
      summary: Recent Actions
      operationId: recent_actions_api_v1_page_agent_pages__page_id__actions_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/actions/{action_id}:
    get:
      tags:
      - page-agent
      summary: Action Receipt
      operationId: action_receipt_api_v1_page_agent_actions__action_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Action Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/actions/{action_id}/approve:
    post:
      tags:
      - page-agent
      summary: Approve Action
      operationId: approve_action_api_v1_page_agent_actions__action_id__approve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Action Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/actions/{action_id}/dismiss:
    post:
      tags:
      - page-agent
      summary: Dismiss Action
      operationId: dismiss_action_api_v1_page_agent_actions__action_id__dismiss_post
      security:
      - HTTPBearer: []
      parameters:
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Action Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/actions/{action_id}/undo:
    post:
      tags:
      - page-agent
      summary: Undo Action
      operationId: undo_action_api_v1_page_agent_actions__action_id__undo_post
      security:
      - HTTPBearer: []
      parameters:
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Action Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/voice-session:
    post:
      tags:
      - page-agent
      summary: Voice Session
      operationId: voice_session_api_v1_page_agent_voice_session_post
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/pages/{page_id}/speech:
    post:
      tags:
      - page-agent
      summary: Page Speech
      operationId: page_speech_api_v1_page_agent_pages__page_id__speech_post
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpeechRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/pages/{page_id}/turn:
    post:
      tags:
      - page-agent
      summary: Turn
      operationId: turn_api_v1_page_agent_pages__page_id__turn_post
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Turn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/pages/{page_id}/edits:
    get:
      tags:
      - page-agent
      summary: Recent Edits
      operationId: recent_edits_api_v1_page_agent_pages__page_id__edits_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/edits/{edit_id}/apply:
    post:
      tags:
      - page-agent
      summary: Apply Edit
      operationId: apply_edit_api_v1_page_agent_edits__edit_id__apply_post
      security:
      - HTTPBearer: []
      parameters:
      - name: edit_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Edit Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/edits/{edit_id}/undo:
    post:
      tags:
      - page-agent
      summary: Undo Edit
      operationId: undo_edit_api_v1_page_agent_edits__edit_id__undo_post
      security:
      - HTTPBearer: []
      parameters:
      - name: edit_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Edit Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/page-agent/edits/{edit_id}/dismiss:
    post:
      tags:
      - page-agent
      summary: Dismiss Edit
      operationId: dismiss_edit_api_v1_page_agent_edits__edit_id__dismiss_post
      security:
      - HTTPBearer: []
      parameters:
      - name: edit_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Edit Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Message:
      properties:
        role:
          type: string
          enum:
          - user
          - assistant
          title: Role
        content:
          type: string
          maxLength: 6000
          minLength: 1
          title: Content
      additionalProperties: false
      type: object
      required:
      - role
      - content
      title: Message
    Turn:
      properties:
        message:
          type: string
          maxLength: 4000
          minLength: 1
          title: Message
        history:
          items:
            $ref: '#/components/schemas/Message'
          type: array
          maxItems: 12
          title: History
        selected_block_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Selected Block Id
      additionalProperties: false
      type: object
      required:
      - message
      title: Turn
    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
    SpeechRequest:
      properties:
        text:
          type: string
          maxLength: 2000
          minLength: 1
          title: Text
      additionalProperties: false
      type: object
      required:
      - text
      title: SpeechRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- ctlsurf-com-openapi.json
- ctlsurf-com-openapi.yml