> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarify: Init Media Upload

> Start a recording media upload. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Start a recording media upload.

> [!NOTE]
>
> Tool ID: `clarify_init_media_upload`

## Run this action

This action has conditional or dynamic inputs. A static example cannot describe these inputs reliably.

Read the live contract before you execute this action:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe clarify_init_media_upload --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": {
      "recordingId": "recording_123",
      "meetingId": "meeting_123",
      "key": "example",
      "upload": {
        "url": "https://example.com",
        "fields": {}
      }
    }
  }
}
```

Use `deepline describe clarify_init_media_upload --json` for the latest machine-readable contract.

## Input reference

Creates a pending recording on the meeting and returns a presigned S3 POST policy for uploading an audio or video file directly to storage. Uploaded media is stored for playback and is not transcribed. Optionally include a transcript in the same request so one recording carries both video and transcript. Submit the file to the returned policy, then confirm the upload. Pass `recordingId` to overwrite a completed manual-upload recording instead of creating a new one.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.meetingId` | `string` | Yes | — | The unique ID of the meeting. |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload.recordingId` | `string` | No | — | A completed manual-upload recording to overwrite. When omitted, a new recording is created on the meeting. Only the artifacts supplied in this request are overwritten. other stored artifacts are left intact. Format: `uuid`. |
| `payload.contentType` | `string` | Yes | — | The MIME type of the media file to upload. must be an `audio/*` or `video/*` type. Uploaded media is stored for playback and is not transcribed. Pattern: `^(audio\|video)\/`. |
| `payload.transcript` | `array` | No | — | An optional transcript to attach to the same recording as the media, so one recording carries both. Applied to the recording when the upload is confirmed, then used to generate the summary. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Creates a pending recording on the meeting and returns a presigned S3 POST policy for uploading an audio or video file directly to storage. Uploaded media is stored for playback and is not transcribed. Optionally include a transcript in the same request so one recording carries both video and transcript. Submit the file to the returned policy, then confirm the upload. Pass `recordingId` to overwrite a completed manual-upload recording instead of creating a new one.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "meetingId": {
        "type": "string",
        "description": "The unique ID of the meeting."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "recordingId": {
        "type": "string",
        "description": "A completed manual-upload recording to overwrite. When omitted, a new recording is created on the meeting. Only the artifacts supplied in this request are overwritten; other stored artifacts are left intact.",
        "format": "uuid"
      },
      "contentType": {
        "type": "string",
        "description": "The MIME type of the media file to upload; must be an `audio/*` or `video/*` type. Uploaded media is stored for playback and is not transcribed.",
        "pattern": "^(audio|video)\\/"
      },
      "transcript": {
        "type": "array",
        "description": "An optional transcript to attach to the same recording as the media, so one recording carries both. Applied to the recording when the upload is confirmed, then used to generate the summary.",
        "items": {
          "type": "object",
          "properties": {
            "words": {
              "type": "array",
              "description": "The words spoken in this segment.",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "The transcribed word."
                  },
                  "start_timestamp": {
                    "type": "number",
                    "description": "The start time of the word, in seconds from the beginning of the recording."
                  },
                  "end_timestamp": {
                    "type": "number",
                    "description": "The end time of the word, in seconds from the beginning of the recording."
                  },
                  "language": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The detected language of the word as an ISO code, or `null` if unknown."
                  },
                  "confidence": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The transcription confidence for the word, from 0 to 1, or `null` if unavailable."
                  }
                },
                "required": [
                  "text",
                  "start_timestamp",
                  "end_timestamp",
                  "language",
                  "confidence"
                ],
                "additionalProperties": false
              }
            },
            "speaker": {
              "type": [
                "string",
                "null"
              ],
              "description": "The display name of the speaker, or `null` if unattributed."
            },
            "speaker_id": {
              "type": [
                "number",
                "null"
              ],
              "description": "The numeric ID of the speaker, or `null` if unattributed."
            },
            "language": {
              "type": "string",
              "description": "The primary language of the segment as an ISO code."
            }
          },
          "required": [
            "words",
            "speaker",
            "speaker_id",
            "language"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "workspace",
      "meetingId",
      "contentType"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | — |
| `result.data.data.recordingId` | `string` | Yes | — | The ID of the created recording, used to confirm the upload. |
| `result.data.data.meetingId` | `string` | Yes | — | The ID of the meeting the recording is attached to. |
| `result.data.data.key` | `string` | Yes | — | The storage key the media is uploaded to. |
| `result.data.data.upload` | `object` | Yes | — | The presigned S3 POST policy to submit the media file to. |
| `result.data.data.upload.url` | `string` | Yes | — | The URL to submit the multipart form POST to. |
| `result.data.data.upload.fields` | `record` | Yes | — | Form fields to include in the multipart POST alongside the file, exactly as returned. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "recordingId": {
                "type": "string",
                "description": "The ID of the created recording, used to confirm the upload."
              },
              "meetingId": {
                "type": "string",
                "description": "The ID of the meeting the recording is attached to."
              },
              "key": {
                "type": "string",
                "description": "The storage key the media is uploaded to."
              },
              "upload": {
                "type": "object",
                "description": "The presigned S3 POST policy to submit the media file to.",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The URL to submit the multipart form POST to."
                  },
                  "fields": {
                    "type": "object",
                    "description": "Form fields to include in the multipart POST alongside the file, exactly as returned.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "url",
                  "fields"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "recordingId",
              "meetingId",
              "key",
              "upload"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.