> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/knowledge-base-and-faqs/articles/api-to-run-a-pipeline-with-runtime-inputs.md).

# API to run a pipeline with runtime inputs

### API to run a pipeline with runtime inputs <a href="#api-to-run-a-pipeline-with-runtime-inputs" id="api-to-run-a-pipeline-with-runtime-inputs"></a>

This knowledge base article walks you through how you can run a pipeline with runtime inputs through API.

### Steps <a href="#steps" id="steps"></a>

1. In the pipeline trigger, create the custom webhook. ![](/files/QhZrpyzeNtTVnSvhACK0)
2. Copy the curl command from the webhook ![](/files/AA16y1V7ne9ueYNmWOqv)
3. Now in the curl command, you can pass the variable name and value in place of sample key and value at runtime while executing the pipeline.

Example cURL:

```
curl -X POST -H 'content-type: application/json' --url 'https://app.harness.io/gateway/pipeline/' -d '{"samplekey": "samplevalue"}'
```
