SEO - PageGenie Content Blueprint
SEO - PageGenie Content Blueprint · Actions GPT
SendGrid Email Service
POST /mail/sendSend an email
Schéma original API
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "SendGrid Email Service"
},
"servers": [
{
"url": "https://api.sendgrid.com/v3"
}
],
"paths": {
"/mail/send": {
"post": {
"summary": "Send an email",
"operationId": "sendEmail",
"tags": [
"email"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmailRequest"
}
}
}
},
"responses": {
"202": {
"description": "Email sent successfully"
}
}
}
}
},
"components": {
"schemas": {
"EmailRequest": {
"type": "object",
"required": [
"personalizations",
"from",
"content"
],
"properties": {
"personalizations": {
"type": "array",
"items": {
"type": "object",
"required": [
"to"
],
"properties": {
"to": {
"type": "array",
"items": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"subject": {
"type": "string"
}
}
}
},
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text/plain",
"text/html"
]
},
"value": {
"type": "string",
"description": "Content of the email, either plain text or HTML formatted."
}
}
}
},
"from": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"default": "russell@pagegenie.ai"
},
"name": {
"type": "string",
"default": "Russell"
}
}
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"content",
"filename",
"type"
],
"properties": {
"content": {
"type": "string",
"description": "Base64 encoded content of the attachment"
},
"filename": {
"type": "string",
"description": "Filename of the attachment"
},
"type": {
"type": "string",
"description": "MIME type of the content (e.g., application/pdf)"
}
}
}
},
"reply_to": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
}
},
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "Authorization"
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}