---
title: "Register a target model"
description: "Mappings API"
---

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

# Register a target model

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/mappings/models</code>
</div>
</div>

Registers your own invoice model, a JSON Schema of an object, under a name and a version. A mapping card that names it (`"target": {"name", "version"}`) writes your JSON instead of our canonical invoice. A registered version never changes. Register a new version instead. The answer's `notChecked` lists every keyword of your schema a mapping does not enforce, by its path in the schema. A mapping checks `type`, `required`, `enum` and a `date` format; the rest is yours to check.

## Request body

`application/json`, required

## Status codes

| Status | Meaning |
|---|---|
| `201` | `{name, version, createdAt, notChecked}`. |
| `400` | The name or version is not an address, or the schema is not an object of fields (`invalid_target_model`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `409` | That version is registered already (`target_model_exists`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/register-a-target-model/index.mdx
