# Send inputs to workflow via REST api?

**URL:** <https://community.temporal.io/t/send-inputs-to-workflow-via-rest-api/16016>\
**Category:** Community Support\
**Tags:** python-sdk\
**Created:** [January 9, 2025, 5:59pm UTC](https://community.temporal.io/t/send-inputs-to-workflow-via-rest-api/16016 "2025-01-09T17:59:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmoya](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/mmoya/32/6833_2.png) [@mmoya](https://community.temporal.io/u/mmoya)\
**Post date:** [January 9, 2025, 5:59pm UTC](https://community.temporal.io/t/send-inputs-to-workflow-via-rest-api/16016/1 "2025-01-09T17:59:19Z")

</div>

Hello, I would like to easily push data into a temporal workflow on demand from another service. That said, is there a way to push data into an existing temporal workflow via REST api?

for example, if I had a simple workflow called `MyNameWorkflow` that accepts inputs `name:str` and returns `f"my name is: {name}"` using server `foo.tmprl.cloud:7233` via Temporal Cloud. Is there a method in which I could trigger that workflow via rest?

```auto
curl -X POST https://foo.tmprl.cloud:8080/api/workflows \
-H "Content-Type: application/json" \
-d '{
    "id": "my_workflow_id",
    "workflowType": "MyNameWorkflow",
    "taskQueue": "my-task-queue",
    "input": {
        "name": "John Smith"
    }
}'

```

if not, I can create my own service that executes processes like this via the python sdk. Just wanted to triple check prior to see if temporal supports this natively

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [January 13, 2025, 1:04pm UTC](https://community.temporal.io/t/send-inputs-to-workflow-via-rest-api/16016/2 "2025-01-13T13:04:09Z")

</div>

Yes you can use openapi so dont have to write custom wrappers if you dont want to.  
You can see the openapi and swagger defs via:

http://\<frontend\_host\>:\<frontend\_http\_port\>/swagger.json  
http://\<frontend\_host\>:\<frontend\_http\_port\>/openapi.yaml

default http port is 7243: [temporal/docker/config\_template.yaml at main · temporalio/temporal · GitHub](https://github.com/temporalio/temporal/blob/main/docker/config_template.yaml#L271)

so your command to start new execution could be something like:

curl -X POST http://\<frontend\_host\>:\<frontend\_http\_port\>/api/v1/namespaces/default/workflows/fromopenapi -H “Content-Type: application/json” -d @mystartrequest.json

where mystartrequest.json could be something like:

```auto
{
  "namespace": "default",
  "workflowId": "my-workflow-id",
  "workflowType": {
    "name": "MyWorkflowType"
  },
  "taskQueue": {
    "name": "my-task-queue"
  },
  "input": {
    "payloads": [
      {
        "name": "john"
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![hkeem](https://avatars.discourse-cdn.com/v4/letter/h/da6949/32.png) [@hkeem](https://community.temporal.io/u/hkeem)\
**Post date:** [April 24, 2025, 4:27pm UTC](https://community.temporal.io/t/send-inputs-to-workflow-via-rest-api/16016/3 "2025-04-24T16:27:13Z")

</div>

Hello! a quick question, Is this openapi/swagger support new? Any specific version I need to be on? I can’t find proper documentation around it- I found this [Serve OpenAPI v2 (swagger) and v3 HTTP docs by tdeebswihart · Pull Request #5393 · temporalio/temporal · GitHub](https://github.com/temporalio/temporal/pull/5393) where I have to enable `frontend.enableOpenAPIHTTPHandler` config- is this off by default? I can’t seem to get it working in my local temporal
