---
title: "Retry a failed recipe"
description: "With the reference and consent already recorded; active or ready recipes are returned unchanged. 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 › Own recipes

`POST /v1/user-recipes/{id}/retry`

With the reference and consent already recorded; active or ready recipes are returned unchanged. Needs the `videos:create` permission.

## Authentication

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

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 202

The recipe.

#### Example

```json
{
  "id": "string",
  "status": "analyzing",
  "error": "string",
  "title": "string",
  "description": "string",
  "summary": "string",
  "tags": [
    "string"
  ],
  "width": 0,
  "height": 0,
  "duration": 0,
  "plan": {
    "tempo": {
      "short": 0,
      "medium": 0,
      "long": 0
    },
    "roles": {
      "hook": {
        "en": "string",
        "id": "string"
      },
      "problem": {
        "en": "string",
        "id": "string"
      },
      "fact": {
        "en": "string",
        "id": "string"
      },
      "step": {
        "en": "string",
        "id": "string"
      },
      "compare": {
        "en": "string",
        "id": "string"
      },
      "number": {
        "en": "string",
        "id": "string"
      },
      "proof": {
        "en": "string",
        "id": "string"
      },
      "offer": {
        "en": "string",
        "id": "string"
      },
      "cta": {
        "en": "string",
        "id": "string"
      },
      "payoff": {
        "en": "string",
        "id": "string"
      }
    }
  },
  "style": "string",
  "analysis": null,
  "reference": {
    "upload_id": "string",
    "filename": "string",
    "source_url": "string",
    "poster_url": "string"
  },
  "created_at": "string",
  "updated_at": "string"
}
```

- `id` (`retryUserRecipe.response.202.id`; string, required)
- `status` (`retryUserRecipe.response.202.status`; string, required)
  - one of `"analyzing"`, `"writing"`, `"ready"`, `"failed"`
- `error` (`retryUserRecipe.response.202.error`; string | null, required)
- `title` (`retryUserRecipe.response.202.title`; string, required)
- `description` (`retryUserRecipe.response.202.description`; string | null, required)
- `summary` (`retryUserRecipe.response.202.summary`; string | null, required)
- `tags` (`retryUserRecipe.response.202.tags`; array<string>, required)
- `width` (`retryUserRecipe.response.202.width`; number, required)
- `height` (`retryUserRecipe.response.202.height`; number, required)
- `duration` (`retryUserRecipe.response.202.duration`; number, required)
- `plan` (`retryUserRecipe.response.202.plan`; any of, required)
  - any of: `object`, `null`
- `style` (`retryUserRecipe.response.202.style`; string | null, required)
- `analysis` (`retryUserRecipe.response.202.analysis`; any of, required)
  - default `null`
  - any of: `object`, `null`
- `reference` (`retryUserRecipe.response.202.reference`; object, required)
  - `upload_id` (`retryUserRecipe.response.202.reference.upload_id`; string | null, required)
  - `filename` (`retryUserRecipe.response.202.reference.filename`; string | null, required)
  - `source_url` (`retryUserRecipe.response.202.reference.source_url`; string | null, required)
  - `poster_url` (`retryUserRecipe.response.202.reference.poster_url`; string | null, required)
- `created_at` (`retryUserRecipe.response.202.created_at`; string, required)
- `updated_at` (`retryUserRecipe.response.202.updated_at`; string, required)

### 401

The API key is missing or not valid.

#### Example

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

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


Source: https://docs.mosio.me/api/retry-user-recipe/index.md
