Skip to content

API reference

List the mapping drafts not yet finalized

Mappings API

GET/v1/mappings/drafts

The drafts not yet finalized, the last changed first, at most 100. Each names its id, its samples’ file names, the target model, the version it starts from, and when it was made and last changed. name is the draft’s name without its version number, null for a draft from the model. system is the source system the card names, or null. required counts the fields an invoice needs: total of them, and missing the ones the draft does not fill yet, the same count as the draft’s own readiness, which each draft carries whole. No sample’s bytes: open a draft by its id with GET /v1/mappings/drafts/{id}.

Status codes

Status Meaning
200 {drafts: [{id, samples, target, from, createdAt, updatedAt, name, system, required: {total, missing}, readiness}]}.
401 No usable credential was sent (invalid_credentials).
GET/v1/mappings/drafts
Example
curl https://api.certinvo.com/v1/mappings/drafts \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/mappings/drafts`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

response = requests.get(
    "https://api.certinvo.com/v1/mappings/drafts",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
No response body.
Success response
GET
/v1/mappings/drafts
List the mapping drafts not yet finalized
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/mappings/drafts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close