> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wirespeed.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a custom detection



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json get /v1/detection/custom/{id}
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/detection/custom/{id}:
    get:
      tags:
        - Detection
      summary: Get a custom detection
      operationId: DetectionController_getCustomDetection
      parameters:
        - name: id
          required: true
          in: path
          description: Custom detection identifier
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDetection'
        '404':
          description: ''
        '422':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
      security:
        - bearer: []
components:
  schemas:
    CustomDetection:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the custom detection
        name:
          type: string
          description: Name of the custom detection
        category:
          type: string
          description: Category of the custom detection
        description:
          type: string
          description: Description of the custom detection
        query:
          type: string
          description: Query of the custom detection
        lastRan:
          type: string
          description: Timestamp when the custom detection was last run
        createdAt:
          type: string
          description: Timestamp when the custom detection was created
        enabled:
          type: boolean
          description: Whether the custom detection is enabled
        createdBy:
          type: string
          description: Email or ID of the user who created the custom detection
        updatedAt:
          type: string
          description: Timestamp when the custom detection was last edited
        updatedBy:
          type: string
          description: Email or ID of the user who last edited the custom detection
      required:
        - id
        - name
        - category
        - query
        - lastRan
        - createdAt
        - enabled
        - createdBy
        - updatedAt
        - updatedBy
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
      required:
        - message
        - statusCode
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````