Sectora Secrets API

Secret detection scans identify exposed credentials, API keys, tokens, and other sensitive data in source code and repositories.

GitHub OpenAPI

Operations 1

POST /secrets/scan Start secrets 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/sectora-io:sectora-io-secrets-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

sectora-io-secrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sectora Secrets API
  description: 'Sectora is an enterprise DAST (Dynamic Application Security Testing) platform.

    This API enables programmatic access to scans, vulnerabilities, and security findings.


    ## Authentication

    All API requests require a Bearer token. Generate an API key from **Settings > API Keys** in the Sectora dashboard.


    ```

    Authorization: Bearer sk_live_your_api_key_here

    ```


    ## Rate Limiting

    Default rate limits: 60 requests/minute, 10,000 requests/day per API key.

    Rate limit headers are included in every response:


    | Header | Description |

    |--------|-------------|

    | `X-RateLimit-Limit` | Maximum requests per window |

    | `X-RateLimit-Remaining` | Remaining requests in current window |

    | `X-RateLimit-Reset` | Unix timestamp when the window resets |


    ## Pagination

    List endpoints support offset-based pagination via `limit` and `offset` query parameters.

    Responses include `total`, `limit`, and `offset` fields for navigation.


    ## Errors

    All errors return a consistent JSON structure:

    ```json

    {

    "success": false,

    "error": "Human-readable error message"

    }

    ```'
  version: 1.0.0
  contact:
    name: Sectora Support
    url: https://sectora.io/support
    email: support@sectora.io
  license:
    name: Proprietary
    url: https://sectora.io/terms
servers:
- url: https://api.sectora.io/api/v1
  description: Production
- url: https://api-staging.sectora.io/api/v1
  description: Staging
security:
- BearerAuth: []
tags:
- name: Secrets
  description: 'Secret detection scans identify exposed credentials, API keys, tokens,

    and other sensitive data in source code and repositories.'
paths:
  /secrets/scan:
    post:
      summary: Start secrets scan
      description: 'Scan a GitHub repository or provided content for exposed secrets and

        credentials. Detects API keys, tokens, passwords, private keys, and

        other sensitive data patterns.'
      operationId: createSecretsScan
      tags:
      - Secrets
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSecretsScanRequest'
            examples:
              github_scan:
                summary: Scan a GitHub repository
                value:
                  target: myorg/myapp
                  scan_type: github
              content_scan:
                summary: Scan text content directly
                value:
                  scan_type: content
                  content: const API_KEY = 'REDACTED_AWS_ACCESS_KEY_ID'
      responses:
        '201':
          description: Secrets scan successfully started.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/Scan'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Scan:
      type: object
      description: Represents a security scan against a target.
      properties:
        id:
          type: string
          format: uuid
          description: Unique scan identifier.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        target:
          type: string
          description: The target URL or identifier being scanned.
          example: https://example.com
        status:
          type: string
          enum:
          - queued
          - running
          - completed
          - completed_with_errors
          - failed
          - cancelled
          description: Current scan status.
          example: completed
        scan_type:
          type: string
          enum:
          - dast
          - api
          - sca
          - secrets
          - sast
          description: Type of security scan.
          example: dast
        progress:
          type: integer
          minimum: 0
          maximum: 100
          description: Scan progress percentage (0-100).
          example: 100
        summary:
          $ref: '#/components/schemas/ScanSummary'
        error_message:
          type:
          - string
          - 'null'
          description: Error details if the scan failed.
        created_at:
          type: string
          format: date-time
          description: When the scan was created.
          example: '2026-03-22T10:30:00Z'
        started_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the scan began executing.
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the scan finished.
        project_id:
          type:
          - string
          - 'null'
          format: uuid
          description: Project this scan belongs to, if any.
    CreateSecretsScanRequest:
      type: object
      description: Request body for starting a secrets scan.
      properties:
        target:
          type: string
          description: GitHub repository in `owner/repo` format (for `scan_type=github`).
          example: myorg/myapp
        scan_type:
          type: string
          enum:
          - github
          - content
          description: 'Scan source type:

            - `github`: Scan a GitHub repository

            - `content`: Scan provided text content directly

            '
        content:
          type: string
          description: Direct content to scan (required when `scan_type=content`).
    Error:
      type: object
      description: Standard error response.
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          description: Human-readable error message.
          example: Scan not found
    ScanSummary:
      type: object
      description: Aggregated vulnerability counts for a scan.
      properties:
        total_vulnerabilities:
          type: integer
          description: Total number of vulnerabilities found.
          example: 12
        critical_count:
          type: integer
          description: Number of critical severity findings.
          example: 1
        high_count:
          type: integer
          description: Number of high severity findings.
          example: 3
        medium_count:
          type: integer
          description: Number of medium severity findings.
          example: 5
        low_count:
          type: integer
          description: Number of low severity findings.
          example: 2
        info_count:
          type: integer
          description: Number of informational findings.
          example: 1
  responses:
    Unauthorized:
      description: Authentication failed. Provide a valid API key in the Authorization header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Invalid or missing API key
    BadRequest:
      description: The request was malformed or missing required fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Invalid target URL
    RateLimited:
      description: Rate limit exceeded. Retry after the period indicated in the `X-RateLimit-Reset` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Rate limit exceeded. Try again in 45 seconds.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API key generated from the Sectora dashboard (Settings > API Keys).

        Keys are prefixed with `sk_live_` for production or `sk_test_` for staging.

        '
externalDocs:
  description: Sectora Documentation
  url: https://sectora.io/docs