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

# Validate number pool trunks

> Check outbound trunk readiness for every pool member.



## OpenAPI

````yaml api-reference/number-pools/openapi.json GET /v1/number-pools/{id}/validate-trunks
openapi: 3.0.3
info:
  title: Persistence Number Pools API
  version: '1.0'
  description: Manage groups of outbound phone numbers.
servers:
  - url: https://api.persistence.dev
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Number pools
paths:
  /v1/number-pools/{id}/validate-trunks:
    get:
      tags:
        - Number pools
      summary: Validate number pool trunks
      operationId: validateNumberPoolTrunks
      parameters:
        - $ref: '#/components/parameters/PoolId'
      responses:
        '200':
          description: Validation complete
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PoolId:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    ValidationEnvelope:
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/Validation'
    Validation:
      type: object
      properties:
        valid:
          type: integer
        invalid:
          type: integer
        invalidNumbers:
          type: array
          items:
            type: string
    Error:
      type: object
      properties:
        code:
          type: string
        error:
          type: string
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````