Skip to content

API reference

Get the sending setting

Other routes API

GET/v1/sending

Returns whether this company’s invoices are emailed by themselves after the check, which verdicts go, and whether a likely duplicate waits or goes. Version 0 means nobody chose: by-hand, and nothing is ever sent without a person.

Response

A 200 answer carries these fields.

  • modestringRequired
    One of by-hand, automatic.
  • verdictsarray of stringRequired
  • duplicatesstringRequired

    hold keeps a likely duplicate for a person; send lets it go with its warning.

    One of hold, send.
  • versionintegerRequired

    0 when nobody chose.

Status codes

Status Meaning
200 The setting.
401 No usable credential was sent (invalid_credentials).
GET/v1/sending
Example
curl https://api.certinvo.com/v1/sending \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/sending`, {
  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/sending",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "mode": "by-hand",
  "verdicts": [
    "clean"
  ],
  "duplicates": "hold",
  "version": 0
}
Success response
GET
/v1/sending
Get the sending setting
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/sending" \
  -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