CodeSign Secure Documentation
  • Overview
    • About CodeSign Secure
    • Getting Started
    • Documentation Guide
    • Portal Overview
    • Troubleshooting
      • FAQ
    • Glossary
  • Reference Guide
    • Header Bar
      • CodeSign Secure Documentation
      • Swagger API
      • Profile Section
    • Dashboard
      • Key Performance Indicators
      • Issued Certificates
      • Signatures Generated
      • HSM Health Check
    • Keys and Certificates
      • Key and Certificate Lifecycle
    • App Management
    • Signing Requests
      • Approval Workflows
    • Signing Tools
    • Reports
      • Signing Request Report
      • Audit Trail
      • Certificate Report
      • Client Report
    • Logs
    • System Setup
      • Identity Store
      • Backup
      • User
      • Roles and Permissions
      • Email
      • Signing Projects
      • SSL/TLS Management
      • Environment
      • Plugins
  • Setup & Architecture
    • Identity and Access Control
    • Architecture and Concepts
    • Installation
      • Windows
        • Installing the Server
        • Ports and Protocols
        • High Availability and Backup
        • Upgrades and Compatibility
    • Security
      • Security Hardening Checklist
      • Client Authentication
      • Designing Signing Policies
  • Release Notes
    • Releases for 2026
      • v3.2.1
    • Releases for 2025
      • v3.2.0
    • Releases for 2024
      • v3.1.0
  • API Reference
    • Getting Started
    • Authorizing Requests
    • Securing API Access
    • Request and Response Conventions
    • Endpoint Reference
      • Signing
      • Signing Requests
      • Certificates
      • Applications and Environments
      • User Management
      • Permissions
      • Email
      • System Setup
      • Reports
      • Dashboard
      • License
  • Integration Guides
    • Signing Capabilities
      • Supported Formats and Platforms
      • Timestamping
      • Windows Signing - SignTool
        • Signing
        • Macro Signing
      • Apple Signing
      • AppX & MSIX Signing
      • Visual Studio ClickOnce
      • Jar Signing
      • Sign HLK/HCK using CodeSign Secure
      • NuGet Signing
      • Mage Signing
      • Sign OVA/OVF using Encryption Consulting’s Utility Tool
      • Utility Tool for code signing
      • Container Signing
      • PKCS11 Wrapper
        • APK Signing
        • OpenSSL Signing
        • XML Signing
        • JSign Tool Signing
        • Jarsigner Signing
        • GPG2, Debian & RPM Signing
      • Reproducible Build
        • Automated Hash Validation
        • Reproducible Build Process Flow
        • Pipeline Script Components
        • Hash Validation
    • CI/CD Integration
      • GitHub Actions
      • Jenkins
      • GitLab
      • Azure DevOps
      • TeamCity
      • Bamboo
      • Securing CI/CD Credentials

Email

The Email endpoints manage mail server settings and notification templates.

For the corresponding user interface, refer to the System Setup > Email section.

Endpoints

MethodEndpointDescription
GET/email/email_config/Get mail server settings
POST/email/email_config/Create mail server settings
GET/email/email_config/{id}/Get one mail server setting
PUT/email/email_config/{id}/Replace mail server settings
PATCH/email/email_config/{id}/Update mail server settings
GET/email/email_template/List notification templates
POST/email/email_template/Create a notification template
GET/email/email_template/{id}/Get a notification template
PUT/email/email_template/{id}/Replace a notification template
PATCH/email/email_template/{id}/Update a notification template
GET /email/email_config/

Returns the outgoing mail server settings. Stored credentials are never returned.

Example Request

curl -X GET "https://<your domain>/api/email/email_config/" \
  -H "Authorization: Bearer <token>"

Responses

Status CodeDescription
200The requested records.
POST /email/email_config/

Configures the outgoing mail server used for notifications.

Request Body (application/json)

FieldTypeRequiredDescription
email_typeintegerYesEmail type
hoststringYesHost
portintegerYesPort
usernamestringYesUsername
passwordstringYesPassword
created_userintegerNoCreated user
created_datestring (date-time)NoCreated date
modified_byintegerNoModified by
Is_deletedbooleanNoIs deleted

Example Request

curl -X POST "https://<your domain>/api/email/email_config/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"email_type":1,"host":"string","port":1,"username":"string","password":"string"}'

Responses

Status CodeDescription
201The operation completed.
GET /email/email_config/{id}/

Returns one mail server configuration by identifier.

Request Parameters

NameLocated InTypeRequiredDescription
idPathintegerYesA unique integer value identifying this email config_ table.

Example Request

curl -X GET "https://<your domain>/api/email/email_config/<id>/" \
  -H "Authorization: Bearer <token>"

Responses

Status CodeDescription
200The requested records.
PUT /email/email_config/{id}/

Replaces the configuration. Send the full set of fields.

Request Parameters

NameLocated InTypeRequiredDescription
idPathintegerYesA unique integer value identifying this email config_ table.

Request Body (application/json)

FieldTypeRequiredDescription
email_typeintegerYesEmail type
hoststringYesHost
portintegerYesPort
usernamestringYesUsername
passwordstringYesPassword
created_userintegerNoCreated user
created_datestring (date-time)NoCreated date
modified_byintegerNoModified by
Is_deletedbooleanNoIs deleted

Example Request

curl -X PUT "https://<your domain>/api/email/email_config/<id>/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"email_type":1,"host":"string","port":1,"username":"string","password":"string"}'

Responses

Status CodeDescription
200The record after the update.
PATCH /email/email_config/{id}/

Updates selected fields. Send only the fields to change.

Request Parameters

NameLocated InTypeRequiredDescription
idPathintegerYesA unique integer value identifying this email config_ table.

Request Body (application/json)

FieldTypeRequiredDescription
email_typeintegerYesEmail type
hoststringYesHost
portintegerYesPort
usernamestringYesUsername
passwordstringYesPassword
created_userintegerNoCreated user
created_datestring (date-time)NoCreated date
modified_byintegerNoModified by
Is_deletedbooleanNoIs deleted

Example Request

curl -X PATCH "https://<your domain>/api/email/email_config/<id>/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"email_type":1,"host":"string","port":1,"username":"string","password":"string"}'

Responses

Status CodeDescription
200The record after the update.
GET /email/email_template/

Returns the notification templates and whether each is enabled. Templates are disabled by default, and no notification is sent until one is enabled.

Example Request

curl -X GET "https://<your domain>/api/email/email_template/" \
  -H "Authorization: Bearer <token>"

Responses

Status CodeDescription
200The requested records.
POST /email/email_template/

Adds a notification template.

Request Body (application/json)

FieldTypeRequiredDescription
template_typeintegerYesTemplate type
subjectstringYesSubject
contentstringYesContent
namestringNoName
created_userintegerNoCreated user
created_datestring (date-time)NoCreated date
modified_byintegerNoModified by
Is_deletedbooleanNoIs deleted

Example Request

curl -X POST "https://<your domain>/api/email/email_template/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"template_type":1,"subject":"string","content":"string"}'

Responses

Status CodeDescription
201The operation completed.
GET /email/email_template/{id}/

Returns one template by identifier.

Request Parameters

NameLocated InTypeRequiredDescription
idPathintegerYesA unique integer value identifying this email template_ table.

Example Request

curl -X GET "https://<your domain>/api/email/email_template/<id>/" \
  -H "Authorization: Bearer <token>"

Responses

Status CodeDescription
200The requested records.
PUT /email/email_template/{id}/

Replaces the template. Send the full set of fields.

Request Parameters

NameLocated InTypeRequiredDescription
idPathintegerYesA unique integer value identifying this email template_ table.

Request Body (application/json)

FieldTypeRequiredDescription
template_typeintegerYesTemplate type
subjectstringYesSubject
contentstringYesContent
namestringNoName
created_userintegerNoCreated user
created_datestring (date-time)NoCreated date
modified_byintegerNoModified by
Is_deletedbooleanNoIs deleted

Example Request

curl -X PUT "https://<your domain>/api/email/email_template/<id>/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"template_type":1,"subject":"string","content":"string"}'

Responses

Status CodeDescription
200The record after the update.
PATCH /email/email_template/{id}/

Updates selected fields, including whether the template is enabled.

Request Parameters

NameLocated InTypeRequiredDescription
idPathintegerYesA unique integer value identifying this email template_ table.

Request Body (application/json)

FieldTypeRequiredDescription
template_typeintegerYesTemplate type
subjectstringYesSubject
contentstringYesContent
namestringNoName
created_userintegerNoCreated user
created_datestring (date-time)NoCreated date
modified_byintegerNoModified by
Is_deletedbooleanNoIs deleted

Example Request

curl -X PATCH "https://<your domain>/api/email/email_template/<id>/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"template_type":1,"subject":"string","content":"string"}'

Responses

Status CodeDescription
200The record after the update.
On this Page:
Support Privacy Policy Terms of Service

Copyright Encryption Consulting LLC. All rights reserved.