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

# Get a webhook trigger's URL

> The inbound URL for a `webhook` trigger. It embeds the trigger's secret, so it is returned here and on create only, never in lists or agent reads.



## OpenAPI

````yaml get /agents/{agent_id}/triggers/{trigger_id}/webhook-url
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /agents/{agent_id}/triggers/{trigger_id}/webhook-url:
    get:
      tags:
        - Agents
      summary: Get a webhook trigger's URL
      description: >-
        The inbound URL for a `webhook` trigger. It embeds the trigger's secret,
        so it is returned here and on create only, never in lists or agent
        reads.
      operationId: getAgentTriggerWebhookUrl
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            type: string
        - in: path
          name: trigger_id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The webhook URL.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agent_id:
                    type: string
                  trigger_id:
                    type: string
                  webhook_url:
                    type: string
        '401':
          description: Unauthorized — missing or invalid API key.
        '403':
          description: Forbidden — the caller cannot view this trigger.
        '404':
          description: Agent or trigger not found, or the trigger is not a webhook.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >
            curl
            'https://api.gumloop.com/api/v1/agents/abc123DEFghiJKL/triggers/trg_7f1a2b/webhook-url'
            \
              -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
        - lang: python
          label: Python
          source: >
            from gumloop import Gumloop


            client = Gumloop(access_token="YOUR_ACCESS_TOKEN")


            print(client.agents.get_trigger_webhook_url("abc123DEFghiJKL",
            "trg_7f1a2b").webhook_url)
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````