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

# Create Incident

> Logs a new pest or service incident linked to a client.



## OpenAPI

````yaml POST /api/v1/ai-agent/create-incident
openapi: 3.0.1
info:
  title: Fieldiu Integration API
  description: Internal integration endpoints for Fieldiu.
  version: v1
  contact:
    name: Fieldiu Support
  license:
    name: Proprietary
servers:
  - url: https://integration.fieldiu.online
security:
  - ApiKeyAuth: []
    OrgIdAuth: []
paths:
  /api/v1/ai-agent/create-incident:
    post:
      tags:
        - AI Agent
      summary: Create Incident
      description: Logs a new pest or service incident linked to a client.
      operationId: createIncident
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentCreatingRequest'
      responses:
        '200':
          description: OK
components:
  schemas:
    IncidentCreatingRequest:
      type: object
      required:
        - dateTime
      properties:
        clientName:
          type: string
          nullable: true
          description: Name of the client associated with the incident
        insectName:
          type: string
          nullable: true
          description: Pest or insect type involved
        dateTime:
          type: string
          format: date-time
          description: Incident date and time in RFC 3339 format, e.g. 2017-07-21T17:32:28Z
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your organization's API key
    OrgIdAuth:
      type: apiKey
      in: header
      name: X-ORG-ID
      description: Your organization's identifier

````