---
title: "commits a pending document and mints an NFT on the Centrifuge chain."
method: POST
path: "/v3/nfts/collections/{collection_id}/commit_and_mint"
tags: ["NFTs"]
---

# commits a pending document and mints an NFT on the Centrifuge chain.

`POST /v3/nfts/collections/{collection_id}/commit_and_mint`

## Request

- Base URL: `http://localhost:8082`
- URL: `http://localhost:8082/v3/nfts/collections/{collection_id}/commit_and_mint`
- Auth: none declared. Required headers: `authorization`
- TypeScript: <https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/docs/v3/nfts/collections/:collection_id/commit_and_mint/post.ts> (a function with typed inputs; its response is checked against the schema)

commits a pending document and mints an NFT on the Centrifuge chain.

## Path parameters

- `collection_id` string, required

## Headers

- `authorization` string, required

## Request body

- CoreapiMintNFTV3Request
  - `document_id` string
  - `grant_read_access` boolean
  - `ipfs_metadata` V3IPFSMetadata
    - `description` string
    - `document_attribute_keys` string[]
    - `image` string
    - `name` string
  - `owner` string

## Response `202`

Accepted

- CoreapiMintNFTV3Response
  - `collection_id` integer
  - `document_id` string
  - `header` CoreapiNFTResponseHeader
    - `job_id` string
  - `ipfs_metadata` V3IPFSMetadata
    - `description` string
    - `document_attribute_keys` string[]
    - `image` string
    - `name` string
  - `item_id` string
  - `owner` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2022-11-28** `9070fa05ed48`: 1 info
  - endpoint added
- **2021-02-16** `40500fd98eca`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/changes/v3/nfts/collections/:collection_id/commit_and_mint/post.md)

---

[API](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api.md) - [All operations](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/revisions/36808f8744e0?raw)
