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

# Submit redeem

> Submit a signature to finalize the redemption.

## Path Parameters

**pubkey** `string` *required*

The public key of the redeem request to submit.

## Body Parameters

**signature** `string` *required*

Hex signature over the redeem draft **`message`** from [Start redeem](https://docs.worm.wtf/api-reference/redeems/start-redeem.md).

## Response

**data** `object`

Submitted redeem row.

**Data fields**

**pubkey** `string`

Redeem public key.

**market\_condition\_id** `string | null`

Market condition id.

**state** `string`

Redeem state.

**funds** `string`

Redeem funds.

**onchain\_funds** `string`

On-chain funds.

**yes\_shares** `string`

Yes shares.

**no\_shares** `string`

No shares.

**message** `string | null`

Program message.

**created** `integer | null`

Created timestamp.

**meta** `object`

Empty object on success for this endpoint.

**error** `object | null`

`null` on success. Error object on failed requests.

```json 200 theme={null}
{
  "data": {
    "pubkey": "6cM2yQ9rT4nW1pL8vB5kF3zX7uJ0eR2sN4dP6mH8tKy",
    "market_condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
    "state": "completed",
    "funds": "250.00",
    "onchain_funds": "250.00",
    "yes_shares": "0.00",
    "no_shares": "0.00",
    "message": "Redeem finalized on chain.",
    "created": 1714303300
  },
  "meta": {},
  "error": null
}
```

```json 400 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -11,
    "slug": "invalid_request_params",
    "message": "Validation Error",
    "details": []
  }
}
```

```json 401 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -12,
    "slug": "authentication_failed",
    "message": "Invalid signature",
    "details": []
  }
}
```

```json 403 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -14,
    "slug": "permission_denied",
    "message": "You do not have permission to perform this action.",
    "details": []
  }
}
```

```json 404 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -15,
    "slug": "not_found",
    "message": "Not found.",
    "details": []
  }
}
```

```json 429 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -17,
    "slug": "throttled",
    "message": "Request was throttled.",
    "details": []
  }
}
```

```json 500 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -3,
    "slug": "internal_error",
    "message": "An internal error occurred.",
    "details": []
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.