---
title: "Keep a post's video to study"
description: "Fetches the post's video into Media as a reference (transcribed and cut into scenes; the transcript is kept on the post too). Studying it again returns the same file. 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}/study`

Fetches the post's video into Media as a reference (transcribed and cut into scenes; the transcript is kept on the post too). Studying it again returns the same file. Needs the `videos:create` permission.

## Authentication

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

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/discover/posts/<id>/study';
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>/study"

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

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

print(response.text)
```

## Responses

### 202

The reference, importing or ready.

#### Example

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

- `post_id` (`studyDiscoverPost.response.202.post_id`; string, required)
- `media_id` (`studyDiscoverPost.response.202.media_id`; string, required)
- `status` (`studyDiscoverPost.response.202.status`; string, required)
  - one of `"importing"`, `"ready"`
- `source_url` (`studyDiscoverPost.response.202.source_url`; string | null, required)

### 401

The API key is missing or not valid.

#### Example

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

- `error` (`studyDiscoverPost.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` (`studyDiscoverPost.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`studyDiscoverPost.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` (`studyDiscoverPost.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` (`studyDiscoverPost.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`studyDiscoverPost.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/study-discover-post/index.md
