Skip to main content
PATCH
Update inbox API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Inbox ID

keyId
string
required

The API key ID to update

Body

application/json
mailAccess
boolean
required

Whether mail apps can sign in over IMAP / SMTP with this key.

Response

Key updated

Key updated

id
string

OpenMail API key ID

name
string | null

Human-readable label for the key, if set.

podId
string | null

ID of the pod this key is scoped to, or null for an account-wide key. A pod-scoped key can only access resources in this pod.

inboxId
string | null

ID of the inbox this key is confined to, or null. When set, the key can only access this single inbox and its threads, messages, and drafts (its podId is the inbox's pod).

tokenPrefix
string

Non-secret leading characters of the token, to help you identify it.

last4
string

Last 4 characters of the token, shown alongside the prefix.

createdAt
string<date-time>
lastUsedAt
string<date-time> | null

When the key last authenticated a request, or null if never used.

mailAccess
boolean

Whether mail apps can sign in over IMAP / SMTP with this key, using the inbox address as the username and the key as the password. Only inbox-scoped keys can have it; always false for pod-scoped and account-wide keys. A key with mail access can't be revoked until it is turned off.