---
updatedAt: 2025-02-12T22:44:00.000Z
agentTools:
  projectIndex: https://platform.toq.io/llms.txt
---

# Add a new email configuration

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Custom Notifications",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://core.sandbox.toq.io/",
      "description": "Simulation environment"
    },
    {
      "url": "https://core.toq.io/",
      "description": "Production environment"
    }
  ],
  "paths": {
    "/iam/api/customers/{customerId}/email/configuration": {
      "post": {
        "tags": [
          "Email Configuration"
        ],
        "summary": "Add a new email configuration",
        "description": "",
        "operationId": "createEmailConfiguration",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "emailConfiguration",
            "in": "query",
            "description": "",
            "schema": {
              "$ref": "#/components/schemas/EmailConfigurationDTO"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailConfigurationDTO"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "422": {
            "description": "Validation exception"
          }
        },
        "security": [
          {
            "clientCredentials": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "EmailConfigurationDTO": {
        "type": "object",
        "properties": {
          "customerId": {
            "type": "string",
            "description": ""
          },
          "type": {
            "type": "string",
            "description": ""
          },
          "sender": {
            "type": "string",
            "description": ""
          }
        },
        "xml": {
          "name": "##default"
        }
      }
    },
    "securitySchemes": {
      "clientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api.toq.io/iam/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```