# Trigger an Outbound Agent Run by API Trigger Node

> Start an outbound agent run using an API Trigger node UUID

`POST /api/v1/public/agent/{uuid}`

Use this endpoint when you want to start an agent run through an [API Trigger node](/voice-agent/api-trigger).

The `uuid` comes from the API Trigger node in your agent. Add the node to your workflow and copy its auto-generated `trigger_path`.

Use `workflow_run_id` from the response to later [retrieve run details](/api-reference/runs/get-run), recordings, and transcripts.

Pass `initial_context` to inject runtime data as template variables into the agent's prompt. See [Using initial context](/api-reference/runs#using-initial-context).

Pass `telephony_configuration_id` to route the call through a specific telephony configuration instead of your organization's default. The id is shown on each row in **Telephony configurations** (`https://voice.menaceui.com/telephony-configurations` for hosted or `http://localhost:3010/telephony-configurations` for local).

Pass `from_phone_number_id` to use a specific active caller ID in the resolved telephony configuration. The number ID must belong to that configuration. Retrieve number IDs with [List phone numbers](/api-reference/telephony-configs/phone-numbers/list).

<Note>
This route expects an API Trigger node UUID (`trigger_path`). Do not pass a workflow UUID here. If you want to execute by Agent UUID, use [Trigger an outbound agent run by Agent UUID](/api-reference/runs/trigger-workflow) instead.
</Note>

<Note>
Your telephony provider must be configured before outbound calls will connect. See [Telephony](/integrations/telephony/overview) for setup instructions.
</Note>

## OpenAPI

````yaml api-reference/openapi.json post /api/v1/public/agent/{uuid}
openapi: 3.1.0
info:
  title: Menace Voice API
  description: API for Menace Voice agents
  version: 1.0.0
servers:
  - url: https://voice.menaceui.com
    description: Production
  - url: http://localhost:8000
    description: Local development
paths:
  /api/v1/public/agent/{uuid}:
    post:
      tags:
        - main
      summary: Initiate Call
      description: |-
        Initiate a phone call against the published agent.

        Executes the workflow's currently released definition.
      operationId: initiate_call_api_v1_public_agent__uuid__post
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            title: Uuid
        - name: X-API-Key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TriggerCallRequest"
      responses:
        "200":
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TriggerCallResponse"
        "404":
          description: Not found
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: "#/components/schemas/ValidationError"
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TriggerCallRequest:
      properties:
        phone_number:
          type: string
          title: Phone Number
        initial_context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: "null"
          title: Initial Context
        telephony_configuration_id:
          anyOf:
            - type: integer
            - type: "null"
          title: Telephony Configuration Id
        from_phone_number_id:
          anyOf:
            - type: integer
            - type: "null"
          title: From Phone Number Id
      type: object
      required:
        - phone_number
      title: TriggerCallRequest
      description: Request model for triggering a call via API
    TriggerCallResponse:
      properties:
        status:
          type: string
          title: Status
        workflow_run_id:
          type: integer
          title: Workflow Run Id
        workflow_run_name:
          type: string
          title: Workflow Run Name
      type: object
      required:
        - status
        - workflow_run_id
        - workflow_run_name
      title: TriggerCallResponse
      description: Response model for successful call initiation
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
````
