---
title: "get http trigger"
method: GET
path: "/w/{workspace}/http_triggers/get/{path}"
tags: ["http_trigger"]
---

# get http trigger

`GET /w/{workspace}/http_triggers/get/{path}`

## Path parameters

- `workspace` string, required
- `path` string, required

## Query parameters

- `get_draft` boolean

## Response `200`

http trigger deleted

- object — Overlay fields added to every "get by path" response that accepts the `get_draft` query parameter. The deployed payload is sent untouched in the response body; the authed user's saved draft for this path — whatever shape the editor wrote — is attached as the sibling `draft` field when `get_draft=true` and a draft exists. The frontend pairs the two to present diff / reset / discard UI; the server never merges them. When `no_deployed=true` there is no deployed row at this path — the response body is a best-effort stand-in synthesized from the draft, and only `draft` is canonical. Callers should disable "diff vs deployed" UI in that case.
  - `path` string, required — The unique Windmill path for this trigger. Must be of the form `u/<user>/<path>` or `f/<folder>/<path>`. This is the trigger object path, not the HTTP route path.
  - `script_path` string, required — Path to the script or flow to execute when triggered
  - `permissioned_as` string, required — The user or group this trigger runs as (permissioned_as)
  - `extra_perms` object, required — Additional permissions for this trigger
  - `workspace_id` string, required — The workspace this trigger belongs to
  - `edited_by` string, required — Username of the last person who edited this trigger
  - `edited_at` string, date-time, required — Timestamp of the last edit
  - `is_flow` boolean, required — True if script_path points to a flow, false if it points to a script
  - `mode` 'enabled' | 'disabled' | 'suspended', required — job trigger mode
  - `labels` string[]
  - `draft_only` boolean — True when this row is a per-user draft with no deployed trigger at the same path. Set by list endpoints when `include_draft_only=true` synthesizes the row from the draft. Frontend renders a "Draft" badge.
  - `is_draft` boolean, required — True when the authed user has a per-user draft at this path (over a deployed row or a synthesized draft-only row). Frontend appends a `*` to the displayed name.
  - `route_path` string, required — The URL route path that will trigger this endpoint (e.g., 'api/myendpoint'). Must NOT start with a /.
  - `static_asset_config` object, nullable — Configuration for serving static assets (s3 bucket, storage path, filename)
    - `s3` string, required — S3 bucket path for static assets
    - `storage` string — Storage path for static assets
    - `filename` string — Filename for the static asset
  - `http_method` 'get' | 'post' | 'put' | 'delete' | 'patch', required
  - `authentication_resource_path` string, nullable — Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
  - `summary` string, nullable — Short summary describing the purpose of this trigger
  - `description` string, nullable — Detailed description of what this trigger does
  - `request_type` 'sync' | 'async' | 'sync_sse', required
  - `authentication_method` 'none' | 'windmill' | 'api_key' | 'basic_http' | 'custom_script' | 'signature', required
  - `is_static_website` boolean, required — If true, serves static files from S3/storage instead of running a script
  - `workspaced_route` boolean, required — If true, the route includes the workspace ID in the path
  - `wrap_body` boolean, required — If true, wraps the request body in a 'body' parameter
  - `raw_string` boolean, required — If true, passes the request body as a raw string instead of parsing as JSON
  - `error_handler_path` string — Path to a script or flow to run when the triggered job fails
  - `error_handler_args` ScriptArgs — The arguments to pass to the script or flow
  - `retry` Retry — unresolved $ref
  - `draft_saved_at` string, date-time
  - `no_deployed` boolean
  - `draft` object
  - `other_drafts_users` object[] — Other workspace users (and the legacy NULL-email row, if any) with a saved draft at the same path. Populated only on the authed user's "get by path" responses for kinds the editor surfaces a fork banner for (script, flow, app, raw_app). Empty / omitted for kinds without that UI.
    - `username` string, nullable — Workspace username of the draft owner. `null` represents the legacy workspace-level (NULL-email) row. Emails never leave the server.
    - `draft_saved_at` string, date-time, required — When this user's draft was last saved (`draft.created_at`), surfaced in the fork modal as "Last updated".

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/2ec6821b6fb1/schema)
