# Scripts and media

> Reference generated from the OpenAPI contract: Scripts and media.

URL : https://docs.fanconvert.ai/en/api/reference/scripts-et-medias

{/* Généré par scripts/generer-reference.mjs depuis openapi/public-v1.json : ne pas modifier à la main. */}

## Les scripts de vente d'une créatrice [#les-scripts-de-vente-dune-créatrice]

`GET /public/v1/creators/{creator_id}/scripts` · `listScripts`

### Parameters [#parameters]

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `creator_id` | path | string | yes | Identifiant de la créatrice. |
| `platform` | query | "mym" \| "telegram" \| "onlyfans" \| "fanvue" | no |  (default : `mym`) |

### Response 200 [#response-200]

**`Page_Script_`**

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | Script[] | yes |  |
| `nextCursor` | string \| null | no | À repasser en `cursor` pour lire la page suivante ; null = dernière page. |

**`Script`**

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes |  |
| `name` | string | yes |  |
| `description` | string | yes |  |
| `enabled` | boolean | yes |  |
| `stepsCount` | integer | yes |  |
| `mediaCount` | integer | yes |  |
| `folderId` | string \| null | yes |  |

### Possible errors [#possible-errors]

`401` · `403` · `404` · `422` · `429` · `503` — Error format: [Errors](/en/api/rest/erreurs).

### Example [#example]

```bash
curl -X GET "https://app.fanconvert.ai/public/v1/creators/{creator_id}/scripts" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY"
```

## La médiathèque d'une créatrice [#la-médiathèque-dune-créatrice]

`GET /public/v1/creators/{creator_id}/media` · `listMedia`

### Parameters [#parameters-1]

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `creator_id` | path | string | yes | Identifiant de la créatrice. |
| `platform` | query | string | no | La médiathèque n'existe que sur MYM. (default : `mym`) |

### Response 200 [#response-200-1]

**`Page_MediaPack_`**

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | MediaPack[] | yes |  |
| `nextCursor` | string \| null | no | À repasser en `cursor` pour lire la page suivante ; null = dernière page. |

**`MediaPack`**

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes |  |
| `name` | string | yes |  |
| `description` | string | yes |  |
| `fileCount` | integer | yes |  |

### Possible errors [#possible-errors-1]

`401` · `403` · `404` · `422` · `429` · `503` — Error format: [Errors](/en/api/rest/erreurs).

### Example [#example-1]

```bash
curl -X GET "https://app.fanconvert.ai/public/v1/creators/{creator_id}/media" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY"
```

