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

# Submit targets for approval



## OpenAPI

````yaml /api/openapi.yaml post /targets
openapi: 3.1.0
info:
  title: Antigen API
  version: v1
  description: >-
    Use the Antigen API to manage targets, runs, vulnerabilities, evidence,
    reports, hooks, assets, and integrations.
servers:
  - url: https://api.antigen.sh/v1
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
  - SessionCookie: []
tags:
  - name: Authentication
  - name: API keys
  - name: Models
  - name: Agents
  - name: Targets
  - name: Runs
  - name: Vulnerabilities
  - name: Evidence
  - name: Reports
  - name: Hooks
  - name: Asset Map
  - name: Integrations
paths:
  /targets:
    post:
      tags:
        - Targets
      summary: Submit targets for approval
      operationId: createTarget
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - hosts
              properties:
                hosts:
                  type: array
                  minItems: 1
                  items:
                    type: string
                description:
                  type: string
      responses:
        '201':
          description: Target submitted for approval.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmittedTarget'
components:
  schemas:
    SubmittedTarget:
      type: object
      required:
        - id
        - hosts
        - status
        - submitted_by
        - created_at
      properties:
        id:
          type: string
          format: uuid
        hosts:
          type: array
          items:
            type: string
        description:
          type: string
        status:
          type: string
          enum:
            - pending
        submitted_by:
          type: string
          format: uuid
        created_at:
          $ref: '#/components/schemas/Timestamp'
    Timestamp:
      type: string
      format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key from the Antigen dashboard.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: access token
      description: Better Auth access token.
    SessionCookie:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Better Auth browser session cookie.

````