---
title: "Finish sending a post's video"
description: "The bytes are in storage: they are checked against the upload, prepared and transcribed. 409 upload_not_ready when nothing was sent yet. Needs the `videos:create` permission."
---

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

Path: Mosio REST API › Discover

`POST /v1/discover/posts/{id}/video/complete`

The bytes are in storage: they are checked against the upload, prepared and transcribed. 409 upload_not_ready when nothing was sent yet. Needs the `videos:create` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`completeDiscoverVideoUpload.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://app.mosio.me/v1/discover/posts/<id>/video/complete' \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/discover/posts/<id>/video/complete';
const options = {method: 'POST', headers: {'x-api-key': '<x-api-key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.mosio.me/v1/discover/posts/<id>/video/complete"

headers = {"x-api-key": "<x-api-key>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

The reference, being prepared or ready.

#### Example

```json
{
  "post_id": "string",
  "media_id": "string",
  "status": "importing"
}
```

- `post_id` (`completeDiscoverVideoUpload.response.200.post_id`; string, required)
- `media_id` (`completeDiscoverVideoUpload.response.200.media_id`; string, required)
- `status` (`completeDiscoverVideoUpload.response.200.status`; string, required)
  - one of `"importing"`, `"ready"`

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`completeDiscoverVideoUpload.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`completeDiscoverVideoUpload.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`completeDiscoverVideoUpload.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.

### 404

No such video or file in this workspace.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`completeDiscoverVideoUpload.response.404.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`completeDiscoverVideoUpload.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`completeDiscoverVideoUpload.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/complete-discover-video-upload/index.md
