Skip to content

API reference

Close a settings notice

Settings API

POST/v1/validation-policy/notices/{notice}/seen

A signed-in person closed the notice, and it is not listed again for anyone of the company. Closing it again answers the same. An API key is refused with 401 session_required.

Path parameters

  • noticestringRequired

Response

A 200 answer carries these fields.

  • noticestringRequired
  • seenbooleanRequired

Status codes

Status Meaning
200 The notice is closed.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
404 The company has no such notice (not_found).
POST/v1/validation-policy/notices/{notice}/seen
Example
curl -X POST https://api.certinvo.com/v1/validation-policy/notices/$NOTICE/seen \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const notice = 'value'

const response = await fetch(`https://api.certinvo.com/v1/validation-policy/notices/${notice}/seen`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

notice = "value"

response = requests.post(
    f"https://api.certinvo.com/v1/validation-policy/notices/{notice}/seen",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "notice": "string",
  "seen": true
}
Success response
POST
/v1/validation-policy/notices/{notice}/seen
Close a settings notice
All
›AuthenticationRequiredBearerAuth

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

›Variables1
›Headers2
›Body
›Code Snippet
curl -X POST "https://api.certinvo.com/v1/validation-policy/notices/{notice}/seen" \
  -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