---
title: "Publish message via HTTP-Source stream."
method: POST
path: "/_fabric/{fabric}/_api/streamapps/http/{appName}/{streamName}"
tags: ["Stream Workers"]
---

# Publish message via HTTP-Source stream.

`POST /_fabric/{fabric}/_api/streamapps/http/{appName}/{streamName}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/streamapps/http/:appName/:streamName/post.ts> (a function with typed inputs; its response is checked against the schema)

Publish message via HTTP-Source stream.

## Path parameters

- `fabric` string, required
- `appName` string, required
- `streamName` string, required

## Request body

- StreamAppHttpSourceRequest
  - `param1` string

## Response `202`

Successfully published message via HTTP-Source.

- PublishHttpSourceExampleRc202
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `code` integer: The generated response code.
  - `result` object

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `404`: HTTP-Source not found. Verify that HTTP-Source is running.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
