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

# Request Agent Readiness Audits

> Queue Peec's agent readiness audit for the project's own brand domains. Audits run only on domains of the project's own brands, matched exactly as the brand lists them; any other domain is returned in `rejected` and the rest of the request still goes through. A domain whose audit is already queued or running is returned in `skipped` with that run's id instead of queuing a second one.

Audits run in the background. Follow each one with `GET /agent-analytics/readiness`, where the domain's `latest_run` carries the same id and its status, and read the result there once it is `completed`.



## OpenAPI

````yaml https://api.peec.ai/customer/v1/openapi/json post /agent-analytics/readiness/audits
openapi: 3.0.3
info:
  title: Peec AI Customer API
  description: Development documentation
  version: 1.0.0
  contact:
    name: Peec AI Team
    email: support@peec.ai
servers:
  - url: https://api.peec.ai/customer/v1
security: []
paths:
  /agent-analytics/readiness/audits:
    post:
      tags:
        - Agent Analytics
      summary: Request Agent Readiness Audits
      description: >-
        Queue Peec's agent readiness audit for the project's own brand domains.
        Audits run only on domains of the project's own brands, matched exactly
        as the brand lists them; any other domain is returned in `rejected` and
        the rest of the request still goes through. A domain whose audit is
        already queued or running is returned in `skipped` with that run's id
        instead of queuing a second one.


        Audits run in the background. Follow each one with `GET
        /agent-analytics/readiness`, where the domain's `latest_run` carries the
        same id and its status, and read the result there once it is
        `completed`.
      operationId: postAgent-analyticsReadinessAudits
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                project_id:
                  description: Required if using a company api key
                  example: or_f45b94ba-5e35-4982-93ed-285e72ee14eb
                  type: string
                domains:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    minLength: 1
                  description: >-
                    Up to 50 of the project's own brand domains, exactly as `GET
                    /agent-analytics/readiness` lists them in `own`.
                  example:
                    - peec.ai
              required:
                - domains
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                project_id:
                  description: Required if using a company api key
                  example: or_f45b94ba-5e35-4982-93ed-285e72ee14eb
                  type: string
                domains:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    minLength: 1
                  description: >-
                    Up to 50 of the project's own brand domains, exactly as `GET
                    /agent-analytics/readiness` lists them in `own`.
                  example:
                    - peec.ai
              required:
                - domains
          multipart/form-data:
            schema:
              type: object
              properties:
                project_id:
                  description: Required if using a company api key
                  example: or_f45b94ba-5e35-4982-93ed-285e72ee14eb
                  type: string
                domains:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    minLength: 1
                  description: >-
                    Up to 50 of the project's own brand domains, exactly as `GET
                    /agent-analytics/readiness` lists them in `own`.
                  example:
                    - peec.ai
              required:
                - domains
      responses:
        '200':
          description: Per-domain results
          content:
            application/json:
              schema:
                type: object
                properties:
                  created:
                    type: array
                    items:
                      type: object
                      properties:
                        domain:
                          type: string
                          description: One of the project's own brand domains.
                          example: peec.ai
                        run_id:
                          type: string
                          description: The id of the audit run serving this request.
                          example: 0199c3a4-5b6e-7f80-9a1b-2c3d4e5f6a7b
                      required:
                        - domain
                        - run_id
                    description: Domains a new audit was queued for.
                  skipped:
                    type: array
                    items:
                      type: object
                      properties:
                        domain:
                          type: string
                          description: One of the project's own brand domains.
                          example: peec.ai
                        run_id:
                          type: string
                          description: The id of the audit run serving this request.
                          example: 0199c3a4-5b6e-7f80-9a1b-2c3d4e5f6a7b
                        reason:
                          type: string
                          enum:
                            - in_progress
                      required:
                        - domain
                        - run_id
                        - reason
                    description: >-
                      Domains with an audit already queued or running. No new
                      audit is queued; `run_id` is the one in progress.
                  rejected:
                    type: array
                    items:
                      type: object
                      properties:
                        domain:
                          type: string
                          example: acme.com
                        reason:
                          type: string
                          enum:
                            - not_own_domain
                            - duplicate
                        message:
                          type: string
                      required:
                        - domain
                        - reason
                        - message
                    description: >-
                      Domains not audited: `not_own_domain` for a domain that
                      isn't one of the project's own brand domains, `duplicate`
                      for a repeat within the request.
                required:
                  - created
                  - skipped
                  - rejected
                description: Per-domain results
        '403':
          description: Response for status 403
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - APIKeyHeader: []
        - APIKeyQuery: []
        - BearerAuth: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    APIKeyQuery:
      type: apiKey
      in: query
      name: api_key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.