---
title: "Produce Messages"
method: POST
path: "/api/legacy/v1/message_producer"
tags: ["legacy-data"]
---

# Produce Messages

`POST /api/legacy/v1/message_producer`

## Request

- Base URL: `https://data.corva.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://data.corva.ai/api/legacy/v1/message_producer`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

## Query parameters

- `app_key` string, nullable

## Request body

- MessageProducerData
  - `app_connection_id` integer, nullable
  - `data` union
    - union[]
      - union
        - ProduceTimeIn
          - `timestamp` integer, required
          - `collection` string, nullable
        - ProduceCompletedIn
          - `timestamp` integer, nullable
          - `collection` 'wits.completed', required
    - union[]
      - union
        - ProduceDepthIn
          - `timestamp` integer, nullable
          - `collection` string, nullable
          - `measured_depth` number, required
        - ProduceCompletedIn
          - `timestamp` integer, nullable
          - `collection` 'wits.completed', required
  - `force_schedules` boolean: Whether to retrigger historical schedule.
  - `produce_as` string, nullable: Produce as another app (by app_key) within the same app_stream.
  - `rerun_begins` integer, nullable: Set to 1 to reset follower scheduling positions and mark the first scheduler message.
  - `asset_id` integer, nullable: Deprecated. This field is not used.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/corva/apis/corva-data-api.md) - [All operations](https://skmtc.dev/corva/apis/corva-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corva/apis/corva-data-api/revisions/f0426c267c36?raw)
