POST
https://stoplight.io/mocks/replyteam/reply/765516802
/
email-accounts
curl --request POST \
  --url https://stoplight.io/mocks/replyteam/reply/765516802/email-accounts \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "email": "user@example.com",
  "dailyLimit": 1000,
  "senderName": "John Doe",
  "smtpHost": "smtp.example.com",
  "smtpPort": 465,
  "smtpPassword": "yourSmtpPassword123",
  "smtpSsl": true,
  "imapHost": "imap.example.com",
  "imapPort": 993,
  "imapPassword": "yourImapPassword123",
  "imapSsl": true
}'
{
  "id": 1,
  "email": "user@example.com",
  "dailyLimit": 1000,
  "senderName": "John Doe",
  "smtpHost": "smtp.example.com",
  "smtpPort": 465,
  "smtpPassword": "yourSmtpPassword123",
  "smtpSsl": true,
  "imapHost": "imap.example.com",
  "imapPort": 993,
  "imapPassword": "yourImapPassword123",
  "imapSsl": true
}

Create Email Account

Create a new email account.

API Endpoint

POST /email-accounts

Request Body

ParameterTypeRequiredDescription
emailstringYesEmail address for the account
passwordstringYesPassword for the email account
first_namestringYesFirst name of the account owner
last_namestringYesLast name of the account owner
{
  "email": "user@example.com",
  "password": "securepassword",
  "first_name": "John",
  "last_name": "Doe"
}

Response

201: Created

{
  "data": {
    "id": "string",
    "email": "string",
    "status": "active",
    "created_at": "string",
    "updated_at": "string"
  }
}

Error Responses

Status CodeDescription
400Bad Request
401Unauthorized
403Forbidden
409Email Already Exists
500Internal Server Error

Body

application/json

Response

201 - application/json

Email account created successfully

The response is of type object.