Skip to content

API reference

Save the senders the inbox admits

Other routes API

PUT/v1/email-inbox

Saves the list of senders whose mail is filed: an address, or @domain for every address at one domain. Mail from anyone else is refused and recorded. The first save gives the customer its inbox address. requireSignedMail: when true, mail that passed neither DKIM nor DMARC is refused too, and its files are kept for review. Off by default; a save that leaves it out keeps it as it was. Only a signed-in person can save it.

Request body

application/json, required

  • sendersarray of stringRequired
  • requireSignedMailboolean

Response

A 200 answer carries these fields.

  • addressstringRequired
  • sendersarray of stringRequired
  • requireSignedMailbooleanRequired

Status codes

Status Meaning
200 The address, the saved senders and whether signed mail is required.
400 An entry is neither an address nor @domain, there are more than 200, or requireSignedMail is not true or false (invalid_email_inbox). Nothing was saved.
401 No usable credential, or not a signed-in person (invalid_credentials, session_required).
503 This deployment has no inbox domain or no database (email_inbox_not_configured).
PUT/v1/email-inbox
Example
curl -X PUT https://api.certinvo.com/v1/email-inbox \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { readFile } from 'node:fs/promises'

const response = await fetch(`https://api.certinvo.com/v1/email-inbox`, {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: await readFile('body.json'),
})
console.log(response.status, await response.json())
import os

import requests

response = requests.put(
    "https://api.certinvo.com/v1/email-inbox",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
200
application/json
{
  "address": "string",
  "senders": [
    "string"
  ],
  "requireSignedMail": true
}
Success response
PUT
/v1/email-inbox
Save the senders the inbox admits
All
›AuthenticationRequiredBearerAuth

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

›Headers2
›Bodyapplication/json
›Code Snippet
curl -X PUT "https://api.certinvo.com/v1/email-inbox" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "senders": [
    "string"
  ],
  "requireSignedMail": true
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close