Creates an app integration SMTP

Creates a new app integration SMTP.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Body

The request data transfer object for the SMTP integration.

appIntegrationIdstring · min: 1Required

The type of the SMTP integration.

namestring · min: 1Required

The name of the SMTP integration.

hoststring · min: 1Required

The host of the SMTP integration.

portinteger · int32Required

The port of the SMTP integration.

usernamestring · min: 1Required

The username of the SMTP integration.

passwordstring · min: 1Required

The password of the SMTP integration.

useTlsboolean | nullableOptional

Flag to indicate if the SMTP integration uses TLS. By default, it is set to false.

isDefaultboolean | nullableOptional

Flag to indicate if the SMTP integration is the default. By default, it is set to false.

descriptionstring | nullableOptional

The description of the SMTP integration.

statusstring · enumOptional

This enum is used to define the common status of an object in JFW.

Supported values:

Possible values:
Responses
201

The request was successful.

application/json
post
POST /api/v1/app-integrations/smtp HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 172

{
  "appIntegrationId": "text",
  "name": "text",
  "host": "text",
  "port": 1,
  "username": "text",
  "password": "text",
  "useTls": true,
  "isDefault": true,
  "description": "text",
  "status": "Inactive"
}
{
  "success": true,
  "statusCode": 201,
  "message": "The request was successful.",
  "data": {
    "appIntegration": {
      "type": "PaymentGateway",
      "name": "Stripe",
      "domain": "https://stripe.com",
      "description": "Stripe payment gateway",
      "logoURL": null,
      "status": "Active",
      "id": "sApKpllz4sAplsmzha"
    },
    "name": "SMTP Integration",
    "host": "smtp.gmail.com",
    "port": 587,
    "username": "username",
    "password": "password",
    "useTls": true,
    "isDefault": true,
    "description": "SMTP Integration Description",
    "status": "Active",
    "id": "sApKpllz4sAplsmzha"
  },
  "errors": []
}

Last updated

Was this helpful?