> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/v2/rigging-check, part of the Meshy API v2 docs.
>
> - v2 docs index: https://docs.meshy.ai/api/v2/llms.txt
> - All v2 pages in one file: https://docs.meshy.ai/api/v2/llms-full.txt
> - OpenAPI spec for v2: https://docs.meshy.ai/api/v2/openapi.yaml

---

# Rigging Check API

Find out before you rig whether Meshy can rig and animate a model, and which `animation_type` it fits. To rig the model, see [Rigging](https://docs.meshy.ai/api/v2/rigging.md).

> **Note:** Moving from v1? The request is the same. The main changes for Rigging Check:
>   * The create response is the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object) instead of an object with the task ID in `result`.
>   * Read the task through [Tasks](https://docs.meshy.ai/api/v2/tasks.md) instead of `GET /openapi/v1/rigging/check/:id`.
>   * The answer is in `output` instead of `result`.
>
>   See [what changed for the other endpoints](/api/migrate-to-v2/reference#other-endpoints).

---

## POST /openapi/v2/rigging/check -- Create a Rigging Check task

Creates a Rigging Check task and returns the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object). The task checks whether Meshy can rig and animate the model of one of your tasks, and which `animation_type` it fits. It runs in the background. To read its result, see [Get the result](#get-the-result).

The check is optional. You can [create a Rigging task](https://docs.meshy.ai/api/v2/rigging.md#create-a-rigging-task) without it, and its answer doesn't change what Rigging does. It helps you skip models that Rigging doesn't support, such as a car or a bird.

The check looks at the task's preview image. `riggable` is `true` when the model meets all of these rules:
* It has one character.
* The character is a humanoid (biped) or a four-legged animal (quadruped).
* It stands, and a four-legged animal stands on all four legs.
* Its arms and legs are clear of the body and of each other.
* It doesn't stand on a base or pedestal.
* It faces the front.
* It's within the face limit of [Rigging](https://docs.meshy.ai/api/v2/rigging.md#create-a-rigging-task).

### Parameters

  - `input_task_id` · *string* · **required**

  The `id` of the task whose model you want to check. It must be one of your API tasks that has `SUCCEEDED` and has a preview image, for example a Text to 3D, Image to 3D, Remesh, or Retexture task.

### Returns

`202 Accepted` with the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object), with your request in `input`.

Two response headers help you read the task:
* `Location`: the task's URL on [Tasks](https://docs.meshy.ai/api/v2/tasks.md#how-a-task-runs)
* `Retry-After`: how many seconds to wait before you first read it, when the task hasn't finished

### Failure modes

  - `400 - Bad Request`

  The request can't run. For example:
  * `input_task_id` wasn't sent. The code is `parameter_missing`.
  * `input_task_id` doesn't match any of your tasks. The code is `input_task_not_found`.
  * The task in `input_task_id` wasn't created through the API. The code is `input_task_unsupported`.
  * The task in `input_task_id` hasn't succeeded. The code is `input_task_not_ready`. Wait until its status is `SUCCEEDED`, then retry.
  * The request has a parameter the check doesn't take, such as `model_url`. The code is `parameter_unknown`.

  The error message says which problem it found. Fix the request, then send it again. See [Errors](https://docs.meshy.ai/api/v2/errors.md#request-errors).

  - `401 - Unauthorized`

  The API key is missing or invalid. Check the `Authorization` header.

  - `402 - Payment Required`

  One of these applies:
  * The account doesn't have enough credits.
  * The account reached a credit limit.
  * The account is on the free plan.

  Check your credits and plan, then retry.

  - `403 - Forbidden`

  `input_task_id` is a bas-relief model, which Meshy can't check. The code is `input_task_unsupported`. Send a different model.

  - `404 - Not Found`

  Meshy can't check the task in `input_task_id`. The error code says why:
  * `input_task_unsupported`: the task has no preview image, for example a Convert, Resize, or Text to Image task. Check the task it came from.
  * `input_task_expired`: the task's files were deleted. Create the task again, then send that task's `id`.

  - `429 - Too Many Requests`

  One of these limits was reached:
  * You sent too many requests. Wait the number of seconds in `Retry-After`, then retry.
  * Too many of your tasks are queued or running. Wait for some to finish, then retry.

A task that Meshy created can still fail. Its `status` becomes `FAILED`, Meshy refunds the credit, and `task_error` says why:
* `task_error.code` is `moderation_blocked`, and `type` is `invalid_input`: the model's preview image might not comply with Meshy's platform rules. Send a different model.
* `task_error.type` is `service_unavailable`, and `code` is `null`: Meshy couldn't check the model. Create the task again.

See [Errors](https://docs.meshy.ai/api/v2/errors.md#task-errors).

**cURL**

```bash
# Check whether a model can be rigged
curl https://api.meshy.ai/openapi/v2/rigging/check \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
  }'
```

```javascript
// Check whether a model can be rigged
const response = await fetch("https://api.meshy.ai/openapi/v2/rigging/check", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MESHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    input_task_id: "018a210d-8ba4-705c-b111-1f1776f7f578",
  }),
});
if (!response.ok) throw new Error(await response.text());
const task = await response.json();
console.log(task.id, task.status, "poll GET /openapi/v2/tasks/{id}");
```

```python
import os
import requests

# Check whether a model can be rigged
response = requests.post(
    "https://api.meshy.ai/openapi/v2/rigging/check",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
    json={"input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"},
)
response.raise_for_status()
task = response.json()
print(task["id"], task["status"], "poll GET /openapi/v2/tasks/{id}")
```

**Response**

```json
{
  "id": "0193c1a2-5b7e-7d4f-9a3c-8e2f1b6d4c70",
  "type": "rig-check",
  "status": "PENDING",
  "progress": 0,
  "created_at": 1790640079880,
  "started_at": null,
  "finished_at": null,
  "expires_at": null,
  "preceding_tasks": 1,
  "consumed_credits": 1,
  "task_error": null,
  "input": {
    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
  },
  "output": null
}
```

---

## Get the result
Read Rigging Check tasks the same way as every other v2 task, through the [Tasks](https://docs.meshy.ai/api/v2/tasks.md) routes. To list only Rigging Check tasks, filter by `type=rig-check`.

| To | Call |
| --- | --- |
| Get one task | [`GET /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#get-a-task) |
| Wait for updates | [`GET /openapi/v2/tasks/{id}/stream`](https://docs.meshy.ai/api/v2/tasks.md#stream-a-task) or a [webhook](https://docs.meshy.ai/api/v2/webhooks.md) |
| List your tasks | [`GET /openapi/v2/tasks?type=rig-check`](https://docs.meshy.ai/api/v2/tasks.md#list-tasks) |
| Delete a task | [`DELETE /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#delete-a-task) |

---

## Rigging Check output
When the task succeeds, `output` holds these fields. The rest of the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object) is the same for every task type. `output` has no file URLs.

  - `riggable` · *boolean*

  Whether the model meets all of the rules on this page. When it's `false`, `reasons` says why.

  - `animation_type` · *string*

  The kind of character the model is, even when `riggable` is `false`.

  Available values:
  * `biped`: a humanoid character. Send it as `animation_type` when you create a Rigging task.
  * `quadruped`: a four-legged animal. Send it as `animation_type` when you create a Rigging task.
  * `other`: anything else, such as a bird, an octopus, or a prop. Rigging doesn't support it.

  - `animatable` · *boolean*

  Whether [Animation](https://docs.meshy.ai/api/v2/animation.md) can animate the model after you rig it. It's never `true` when `riggable` is `false`.

  - `reasons` · *array*

  Why `riggable` or `animatable` is `false`, in a fixed order. It's an empty array when both are `true`.

- `code` · *string*

  What's wrong with the model, for your code to act on. Meshy may add codes, so treat a code you don't recognize as a reason the model doesn't fit.

Available values:
* `not_a_character`: the model isn't a person or a creature, for example a vehicle or a prop.
* `unsupported_body_type`: the creature is neither a humanoid nor a four-legged animal, for example a bird, a snake, or an octopus.
* `multiple_subjects`: the model has more than one character.
* `has_base`: the character stands on a base or pedestal.
* `not_standing`: the character sits, lies, kneels, or crouches, or a four-legged animal isn't on all four legs.
* `limbs_not_separated`: the arms or legs touch the body or each other.
* `facing_away`: the character faces away from the front.
* `too_many_faces`: the model is over the face limit of [Rigging](https://docs.meshy.ai/api/v2/rigging.md#create-a-rigging-task). Run [Remesh](https://docs.meshy.ai/api/v2/remesh.md) on it first.

- `message` · *string*

  The same reason as a sentence for a person, with how to fix the model. For `too_many_faces`, it gives the model's triangle count and the Remesh settings to use. The wording can change, so branch on `code`, not on `message`.

**Succeeded Rigging Check task**

```json
{
  "id": "0193c1a2-5b7e-7d4f-9a3c-8e2f1b6d4c70",
  "type": "rig-check",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1790640079880,
  "started_at": 1790640080112,
  "finished_at": 1790640086935,
  "expires_at": 1790899286935,
  "preceding_tasks": 0,
  "consumed_credits": 1,
  "task_error": null,
  "input": {
    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
  },
  "output": {
    "riggable": false,
    "animation_type": "biped",
    "animatable": false,
    "reasons": [
      {
        "code": "limbs_not_separated",
        "message": "The arms or legs touch the body or each other. Generate it in a T-pose or A-pose with the limbs clear of the body."
      }
    ]
  }
}
```
