v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-137956179.1 KB
users

Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key. For more information, see Manage S/MIME certificates with the Gmail API.

post/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo

Path parameters

userIdstring required

The user's email address. The special value me can be used to indicate the authenticated user.

sendAsEmailstring required

The email address that appears in the "From:" header for mail sent using this alias.

Request body

isDefaultboolean

Whether this SmimeInfo is the default one for this user's send-as address.

pkcs12string byte

PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.

idstring

The immutable ID for the SmimeInfo.

issuerCnstring

The S/MIME certificate issuer's common name.

encryptedKeyPasswordstring

Encrypted key password, when key is encrypted.

expirationstring int64

When the certificate expires (in milliseconds since epoch).

pemstring

PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).

Response

Successful response