Can't Sleep, Lets Talk! By Veedence.co.uk

Can't Sleep, Lets Talk! By Veedence.co.uk · GPT アクション

Veedence Email Service

API for sending formatted emails through Veedence.

  • POST /sendemail/Send an Email

    Send a formatted email with specified parameters.

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "Veedence Email Service",
    "description": "API for sending formatted emails through Veedence.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://veedence.co.uk/wp-json/veedence/v1"
    }
  ],
  "paths": {
    "/sendemail/": {
      "post": {
        "summary": "Send an Email",
        "description": "Send a formatted email with specified parameters.",
        "operationId": "sendEmail",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Name": {
                    "type": "string",
                    "description": "Name of the sender"
                  },
                  "ContactNumber": {
                    "type": "string",
                    "description": "Contact number of the sender"
                  },
                  "EmailTo": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "description": "Array of recipient email addresses"
                  },
                  "EmailFrom": {
                    "type": "string",
                    "format": "email",
                    "description": "Email address of the sender"
                  },
                  "Subject": {
                    "type": "string",
                    "description": "Subject of the email"
                  },
                  "CCto": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "description": "Array of CC email addresses"
                  },
                  "BCCto": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "description": "Array of BCC email addresses"
                  },
                  "Message": {
                    "type": "string",
                    "format": "html",
                    "description": "HTML formatted content of the email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Email sent successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Email sent successfully"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Failed to send email",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Failed to send email"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}