PitchGhost Scans API

The Scans API from PitchGhost — 2 operation(s) for scans.

GitHub OpenAPI

Operations 3

POST /pitchghost/scan Start a Scan #
GET /pitchghost/scan/:runId Get Scan Status #
DELETE /pitchghost/scan/:runId Cancel or Delete Scan #

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/pitchghost-com:pitchghost-com-scans-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

pitchghost-com-scans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PitchGhost Scans API
  version: 1.0.0
  contact:
    name: PitchGhost Support
    email: support@pitchghost.com
    url: https://pitchghost.com/contact
  description: 'The PitchGhost API provides programmatic access to our lead generation and social media automation platform.


    ## Authentication


    All API endpoints require authentication using a combined Company ID and API key. The authentication value is formed by combining your Company ID with your API token, separated by a colon:


    ```

    {companyId}:{apiKey}

    ```


    For example:

    ```

    e5903eb5-006a-4d3f-a34d-71b9d8929f2e:7baa8145694a4cb8b68a7fc178c27d80

    ```


    ### Getting Your Company ID


    You can find your Company ID in the PitchGhost app URL when logged in:

    ```

    https://app.pitchghost.com/org/{YOUR-COMPANY-ID}/dashboard

    ```


    For example, if your dashboard URL is:

    ```

    https://app.pitchghost.com/org/a971dk12-05a5-46e3-akq6-cd11nbac3594/dashboard

    ```

    Then your Company ID is: `a971dk12-05a5-46e3-akq6-cd11nbac3594`


    ### Authentication Methods


    You can provide your combined authentication string in one of two ways:


    1. **X-API-Key Header**:

    ```

    X-API-Key: e5903eb5-006a-4d3f-a34d-71b9d8929f2e:7baa8145694a4cb8b68a7fc178c27d80

    ```


    2. **Bearer Token**:

    ```

    Authorization: Bearer e5903eb5-006a-4d3f-a34d-71b9d8929f2e:7baa8145694a4cb8b68a7fc178c27d80

    ```


    ## Rate Limits


    The API implements rate limiting to ensure fair usage and system stability. All authenticated endpoints are subject to rate limits.


    ### Global Rate Limit (Basic API)


    All API requests are subject to a global rate limit of **200 requests per 10 minutes** per company. This limit applies across all API keys for your company.


    - **Limit**: 200 requests per 10-minute window

    - **Scope**: Per company (all API keys combined)

    - **Window**: Rolling 10-minute window


    ### Rate Limit Headers


    Every API response includes rate limit information in the following headers:


    - `X-RateLimit-Limit`: Maximum requests allowed in the current window

    - `X-RateLimit-Remaining`: Number of requests remaining in the current window

    - `X-RateLimit-Reset`: Unix timestamp (in milliseconds) when the window resets

    - `X-RateLimit-Type`: Type of rate limit applied (''global'', ''action'', or ''none'')


    When rate limited, you''ll receive:

    - `429 Too Many Requests` status code

    - `Retry-After` header indicating seconds to wait before retrying


    ## Response Format


    All responses are returned in JSON format. Successful responses will have appropriate HTTP status codes (2xx range).


    ## Error Handling


    Errors are returned with appropriate HTTP status codes and a JSON body containing a `message` field describing the error.


    Common error codes:

    - `401`: Authentication required or invalid API key

    - `403`: Insufficient permissions for the requested resource

    - `429`: Rate limit exceeded (see Rate Limits section)

    - `500`: Internal server error'
servers:
- url: https://api.pitchghost.com
  description: Production API
tags:
- name: Scans
paths:
  /pitchghost/scan:
    post:
      summary: Start a Scan
      description: Trigger a scan for a Ghost.
      tags:
      - Scans
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ghostId:
                  type: string
                  format: uuid
                  examples:
                  - 123e4567-e89b-12d3-a456-426614174000
              required:
              - ghostId
      responses:
        '200':
          description: Scan triggered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanGhostResponse'
        '400':
          description: Invalid request (e.g., invalid UUID format)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Insufficient permissions or no active subscription
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Ghost not found or does not belong to company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: postPitchghostScan
      x-operation-id-source: derived
  /pitchghost/scan/:runId:
    get:
      summary: Get Scan Status
      description: Get the current status and details of a scan run.
      tags:
      - Scans
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          pattern: ^\d+$
          description: The numeric ID of the scan run
          example: '12345'
        required: true
        description: The numeric ID of the scan run
        name: runId
        in: path
      responses:
        '200':
          description: Scan status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanStatusResponse'
        '401':
          description: Authentication required or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Run not found or does not belong to company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: getPitchghostScan:runId
      x-operation-id-source: derived
    delete:
      summary: Cancel or Delete Scan
      description: Cancel a running/queued/preprocessing scan or delete a completed scan record. In-progress scans are stopped and marked as cancelled. Completed scans will be permanently deleted.
      tags:
      - Scans
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          pattern: ^\d+$
          description: The numeric ID of the scan run
          example: '12345'
        required: true
        description: The numeric ID of the scan run
        name: runId
        in: path
      responses:
        '200':
          description: Scan cancelled or deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteScanResponse'
        '401':
          description: Authentication required or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Run not found or does not belong to company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: deletePitchghostScan:runId
      x-operation-id-source: derived
components:
  schemas:
    ScanStatusResponse:
      type: object
      properties:
        runId:
          type: number
          description: The ID of the scan run
          example: 12345
        status:
          type: string
          enum:
          - running
          - succeeded
          - failed
          - skipped
          - offline
          - queued
          - preprocessing
          - cancelled
          - partial
          description: 'The status of the scan: running, succeeded, failed, skipped, offline, queued, preprocessing, cancelled, partial'
          example: succeeded
        startTime:
          type: string
          format: date-time
          description: When the scan started (ISO 8601)
          example: '2024-01-15T10:30:00Z'
        endTime:
          type:
          - string
          - 'null'
          format: date-time
          description: When the scan ended (ISO 8601), null if still running
          example: '2024-01-15T10:35:00Z'
        duration:
          type:
          - number
          - 'null'
          description: Duration in milliseconds, null if still running
          example: 300000
        totalDiscovered:
          type:
          - number
          - 'null'
          description: Total findings discovered during the scan
          example: 15
        error:
          description: Error details if the scan failed
          example: null
      required:
      - runId
      - status
      - startTime
      - endTime
      - duration
      - totalDiscovered
    ScanGhostResponse:
      type: object
      properties:
        runId:
          type: number
          description: The ID of the created scan
          example: 12345
        status:
          type: string
          enum:
          - running
          - succeeded
          - failed
          - skipped
          - offline
          - queued
          - preprocessing
          - cancelled
          - partial
          description: 'The status of the scan: running, succeeded, failed, skipped, offline, queued, preprocessing, cancelled, partial'
          example: running
        message:
          type: string
          description: The message from the response
          example: Ghost scan triggered successfully
      required:
      - runId
      - status
      - message
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          examples:
          - Ghost not found or does not belong to company
      required:
      - message
    DeleteScanResponse:
      type: object
      properties:
        message:
          type: string
          description: Description of the action taken
          example: Scan cancelled successfully
        action:
          type: string
          enum:
          - cancelled
          - deleted
          description: The action that was performed
          example: cancelled
      required:
      - message
      - action
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Combined Company ID and API key. Format: {companyId}:{apiKey}'
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Combined Company ID and API key. Format: {companyId}:{apiKey}'