ctlsurf Graphs API

The graphs API from ctlsurf — 2 operation(s) for graphs.

GitHub OpenAPI

Operations 5

GET /api/graphs List Graphs #
POST /api/graphs Create Graph #
GET /api/graphs/{graph_id} Get Graph #
PUT /api/graphs/{graph_id} Update Graph #
DELETE /api/graphs/{graph_id} Delete Graph #

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-graphs-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-graphs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctlsurf Com Graphs API
  version: 0.1.0
  description: 'Operations tagged graphs 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: Graphs
paths:
  /api/graphs:
    get:
      tags:
      - Graphs
      summary: List Graphs
      description: List graphs owned by the current user.
      operationId: list_graphs_api_graphs_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/GraphResponse'
                type: array
                title: Response List Graphs Api Graphs Get
      security:
      - HTTPBearer: []
    post:
      tags:
      - Graphs
      summary: Create Graph
      description: Create a new graph owned by the current user.
      operationId: create_graph_api_graphs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GraphCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/graphs/{graph_id}:
    get:
      tags:
      - Graphs
      summary: Get Graph
      description: Get a specific graph if user has access.
      operationId: get_graph_api_graphs__graph_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: graph_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Graph Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Graphs
      summary: Update Graph
      description: Update a graph if user has write access (owner or share with edit/admin).
      operationId: update_graph_api_graphs__graph_id__put
      security:
      - HTTPBearer: []
      parameters:
      - name: graph_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Graph Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GraphUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Graphs
      summary: Delete Graph
      description: Delete a graph if user has write access (owner or share with edit/admin).
      operationId: delete_graph_api_graphs__graph_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: graph_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Graph Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GraphUpdate:
      properties:
        nodes:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Nodes
        edges:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Edges
        meta:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Meta
      type: object
      title: GraphUpdate
    GraphResponse:
      properties:
        nodes:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Nodes
          default: []
        edges:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Edges
          default: []
        meta:
          additionalProperties: true
          type: object
          title: Meta
          default: {}
        id:
          type: string
          format: uuid
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - created_at
      - updated_at
      title: GraphResponse
    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
    GraphCreate:
      properties:
        nodes:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Nodes
          default: []
        edges:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Edges
          default: []
        meta:
          additionalProperties: true
          type: object
          title: Meta
          default: {}
      type: object
      title: GraphCreate
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- ctlsurf-com-openapi.json
- ctlsurf-com-openapi.yml