> ## 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 Actions Linked to a Specific Agent

> List All Actions Linked to a Specific Agent



## OpenAPI

````yaml openapi.json get /v1/ai-agents/{agent_id}/actions
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/ai-agents/{agent_id}/actions:
    get:
      tags:
        - ActionAgentLink
      summary: List All Actions Linked to a Specific Agent
      description: List All Actions Linked to a Specific Agent
      operationId: listActionsOfAgentV1
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the agent
            title: Agent Id
          description: ID of the agent
      responses:
        '200':
          description: List of actions retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/backend__db__models__Action'
                title: Response Listactionsofagentv1
              example:
                - id: act.1234567890
                  orgId: org.1234567890
                  name: Webhook on call completion.
                  description: >-
                    This action will be invoked when a call is completed. It
                    will send a webhook to the specified url.
                  parameters: {}
                  endpoint:
                    url: https://webhook-endpoint.com
                    method: POST
                  invocationTrigger: webhook.conversation_en
                  userWaitingText: Please wait...
                  userSuccessText: Action completed successfully
                  userErrorText: An error occurred
                  createdBy: usr.1234567890
                  createdAt: '2024-12-06T19:23:38.616711'
                  updatedBy: usr.1234567890
                  updatedAt: '2024-12-06T19:23:38.616714'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    backend__db__models__Action:
      properties:
        id:
          type: string
          title: Id
        orgId:
          type: string
          title: Orgid
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        parameters:
          anyOf:
            - type: object
            - type: 'null'
          title: Parameters
        endpoint:
          anyOf:
            - type: object
            - type: 'null'
          title: Endpoint
        invocationTrigger:
          anyOf:
            - type: string
            - type: 'null'
          title: Invocationtrigger
        userWaitingText:
          anyOf:
            - type: string
            - type: 'null'
          title: Userwaitingtext
        userSuccessText:
          anyOf:
            - type: string
            - type: 'null'
          title: Usersuccesstext
        userErrorText:
          anyOf:
            - type: string
            - type: 'null'
          title: Usererrortext
        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: Action
      description: Action entity to store the actions which can be performed by ai agents
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````