Pentest-Tools.com Workspaces API

Operations done on Workspaces

GitHub OpenAPI

Operations 5

GET /workspaces Get all workspaces #
POST /workspaces Create a workspace #
GET /workspaces/{id} Get workspace by ID #
PUT /workspaces/{id} Edit workspace #
DELETE /workspaces/{id} Delete workspace #

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/pentest-tools-com:pentest-tools-com-workspaces-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pentest-tools-com-workspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: pentest-tools.com REST Workspaces API
  version: 1.0.1.1
  description: Operations done on Workspaces
servers:
- url: https://api.pentest-tools.com/api/v2
  description: Recommended (auto-routes by API key region)
- url: https://app-us.pentest-tools.com/api/v2
  description: US region (direct)
- url: https://app.pentest-tools.com/api/v2
  description: Europe region (direct)
security:
- bearerAuth: []
tags:
- name: Workspaces
  x-displayName: Workspaces
  description: Operations done on Workspaces
paths:
  /workspaces:
    get:
      summary: Get all workspaces
      operationId: get_workspaces
      tags:
      - Workspaces
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    maxItems: 1000
                    type: array
                    items:
                      $ref: '#/components/schemas/Workspace'
        401:
          $ref: '#/components/responses/UnauthorizedError'
        403:
          $ref: '#/components/responses/ForbiddenError'
        429:
          $ref: '#/components/responses/TooManyRequestsError'
        500:
          description: Internal server error
    post:
      summary: Create a workspace
      operationId: add_workspace
      tags:
      - Workspaces
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Workspace'
      responses:
        201:
          headers:
            location:
              schema:
                type: string
                format: uri
                pattern: /workspaces/[0-9]+
              description: The path to the newly created workspace
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/CreatedResourceResponse'
          description: Created
          links:
            Workspace info:
              operationId: get_workspace
              parameters:
                id: $response.body#/data/created_id
              description: The created workspace can be viewed using `/workspaces/{id}`
        400:
          description: Invalid parameters
        401:
          $ref: '#/components/responses/UnauthorizedError'
        403:
          $ref: '#/components/responses/ForbiddenError'
        409:
          description: Workspace already exists
        429:
          $ref: '#/components/responses/TooManyRequestsError'
        500:
          description: Internal server error
  /workspaces/{id}:
    parameters:
    - name: id
      in: path
      description: id of workspace to get
      required: true
      schema:
        type: integer
    get:
      summary: Get workspace by ID
      operationId: get_workspace
      tags:
      - Workspaces
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/Workspace'
        401:
          $ref: '#/components/responses/UnauthorizedError'
        403:
          $ref: '#/components/responses/ForbiddenError'
        404:
          $ref: '#/components/responses/ObjectNotFoundError'
        429:
          $ref: '#/components/responses/TooManyRequestsError'
        500:
          description: Internal server error
    put:
      summary: Edit workspace
      operationId: edit_workspace
      tags:
      - Workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkspaceNoRequiredName'
      responses:
        204:
          description: No content
        401:
          $ref: '#/components/responses/UnauthorizedError'
        400:
          description: Invalid or missing both parameters.
        403:
          $ref: '#/components/responses/ForbiddenError'
        404:
          $ref: '#/components/responses/ObjectNotFoundError'
        409:
          description: Workspace with the same name already exists
        422:
          $ref: '#/components/responses/UnprocessableEntityError'
        429:
          $ref: '#/components/responses/TooManyRequestsError'
        500:
          description: Internal server error
    delete:
      summary: Delete workspace
      operationId: delete_workspace
      tags:
      - Workspaces
      description: Deletes a workspace and all of its assets.
      responses:
        204:
          description: Deleted successfully
        401:
          $ref: '#/components/responses/UnauthorizedError'
        403:
          $ref: '#/components/responses/ForbiddenError'
        404:
          $ref: '#/components/responses/ObjectNotFoundError'
        409:
          description: Cannot delete current workspace
        429:
          $ref: '#/components/responses/TooManyRequestsError'
        500:
          description: Internal server error
components:
  responses:
    ObjectNotFoundError:
      description: The object with the given ID was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnauthorizedError:
      description: API key is missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnprocessableEntityError:
      description: Invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenError:
      description: You can"t perform this action.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequestsError:
      description: Too many requests made in a short period of time
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    Workspace:
      type: object
      allOf:
      - $ref: '#/components/schemas/WorkspaceNoRequiredName'
      - required:
        - name
    WorkspaceNoRequiredName:
      type: object
      additionalProperties: false
      properties:
        id:
          readOnly: true
          type: integer
          example: 7534842
        name:
          type: string
          example: My Workspace
        description:
          type: string
          example: My Workspace description
        scan_count:
          readOnly: true
          type: integer
          example: 10
        target_count:
          readOnly: true
          type: integer
          example: 4
    ErrorResponse:
      type: object
      additionalProperties: false
      properties:
        status:
          type: integer
          example: 401
        message:
          type: string
          example: No API key specified
    CreatedResourceResponse:
      type: object
      properties:
        created_id:
          type: integer
          example: 420323
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use the "API key" from the [profile page](https://app.pentest-tools.com/account/api) as the token