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

# List All Agents Linked to a Specific Product

> List All Agents Linked to a Specific Product



## OpenAPI

````yaml openapi.json get /v1/products/{product_id}/agents
openapi: 3.1.0
info:
  title: Trata AI API
  description: >-
    Human like conversation to answer calls, drive engagement, automate
    follow-ups & schedule bookings 24/7  with end to end integrations ensuring
    you never miss a sales enquiry.
  version: 1.0.0
servers:
  - url: https://api.trata.ai
    description: Production
  - url: http://localhost:8000
    description: Development
security: []
paths:
  /v1/products/{product_id}/agents:
    get:
      tags:
        - Products
      summary: List All Agents Linked to a Specific Product
      description: List All Agents Linked to a Specific Product
      operationId: listAgentsOfProductV1
      parameters:
        - name: product_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the product
            title: Product Id
          description: ID of the product
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AIAgent-Output'
                title: Response Listagentsofproductv1
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AIAgent-Output:
      properties:
        id:
          type: string
          title: Id
        orgId:
          type: string
          title: Orgid
        name:
          type: string
          title: Name
        imageUrl:
          type: string
          title: Imageurl
        mission:
          anyOf:
            - $ref: '#/components/schemas/Mission'
            - type: 'null'
        role:
          type: string
          title: Role
        roleDescription:
          type: string
          title: Roledescription
        transcriber:
          anyOf:
            - $ref: '#/components/schemas/Transcriber'
            - type: 'null'
        intelligenceProvider:
          anyOf:
            - $ref: '#/components/schemas/IntelligenceProvider'
            - type: 'null'
        voice:
          anyOf:
            - $ref: '#/components/schemas/Voice-Output'
            - type: 'null'
        status:
          type: string
          title: Status
        timezone:
          type: string
          title: Timezone
        createdBy:
          type: string
          title: Createdby
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedBy:
          type: string
          title: Updatedby
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
      type: object
      title: AIAgent
      description: AI agent configured by businesses
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Mission:
      properties:
        prompt:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Prompt
          description: Full prompt instructions for LLM model
          example: Check Trata AI docs on the specifics of prompting.
        objective:
          anyOf:
            - type: string
              maxLength: 1024
              minLength: 1
            - type: 'null'
          title: Objective
          description: Objective of the mission
          example: >-
            This is a more easier version where the user dont have to given the
            entire prompt but just share the objective of the call and rest will
            be handled by Trata.
        greeting:
          anyOf:
            - type: string
              maxLength: 1024
              minLength: 1
            - type: 'null'
          title: Greeting
          description: Greeting message to be read by the AI agent
          example: Hello! Thank you for taking the time to speak with me today.
        sequence:
          anyOf:
            - items:
                $ref: '#/components/schemas/Sequence'
              type: array
            - type: 'null'
          title: Sequence
          description: >-
            Sequence of actions to be performed by the AI agent during the
            conversation.
        farewell:
          anyOf:
            - type: string
              maxLength: 1024
              minLength: 1
            - type: 'null'
          title: Farewell
          description: Conclusion message to be read by the AI agent
      type: object
      required:
        - greeting
      title: Mission
    Transcriber:
      properties:
        providerName:
          type: string
          title: Providername
        transcriberModel:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcribermodel
        providerProps:
          anyOf:
            - type: object
            - type: 'null'
          title: Providerprops
      type: object
      title: Transcriber
    IntelligenceProvider:
      properties:
        providerName:
          anyOf:
            - type: string
            - type: 'null'
          title: Providername
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
        providerProps:
          anyOf:
            - type: object
            - type: 'null'
          title: Providerprops
      type: object
      title: IntelligenceProvider
    Voice-Output:
      properties:
        gender:
          type: string
          enum:
            - Male
            - Female
            - Neutral
          title: Gender
        languageAccent:
          $ref: '#/components/schemas/LanguageAccentCombo'
        modelId:
          type: string
          title: Modelid
      type: object
      required:
        - gender
        - languageAccent
        - modelId
      title: Voice
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Sequence:
      properties:
        stageName:
          type: string
          maxLength: 1024
          minLength: 1
          title: Stagename
          description: Name of the stage
          example: Introduction
        description:
          type: string
          maxLength: 4096
          minLength: 1
          title: Description
          description: Description of the stage
          example: >-
            This stage involves introducing the AI agent to the user and
            explaining the purpose of the call.
        otherNotes:
          anyOf:
            - type: string
              maxLength: 4096
              minLength: 1
            - type: 'null'
          title: Othernotes
          description: Other notes that AI agent should know in this stage of conversation
          example: Ensure the user understands the privacy policy.
      type: object
      required:
        - stageName
        - description
      title: Sequence
    LanguageAccentCombo:
      properties:
        language:
          $ref: '#/components/schemas/Language'
        accent:
          $ref: '#/components/schemas/Accent'
      type: object
      required:
        - language
        - accent
      title: LanguageAccentCombo
    Language:
      type: string
      enum:
        - English
        - Spanish
        - Hindi
      title: Language
    Accent:
      type: string
      enum:
        - American
        - Indian
        - Australian
        - British
        - Hindi
      title: Accent
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````