Open In Gemail

Open In Gemail · Acciones GPT

Open In Gmail API

An API to create URLs for composing Gmail messages.

  • GET /createGmailUrlCreate a Gmail compose URL

    Returns a URL for composing a Gmail message with a specified subject and body.

Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Open In Gmail API",
    "version": "1.0.0",
    "description": "An API to create URLs for composing Gmail messages."
  },
  "servers": [
    {
      "url": "https://gpt-open-in-gmail.vercel.app"
    }
  ],
  "paths": {
    "/createGmailUrl": {
      "get": {
        "operationId": "createGmailComposeUrl",
        "summary": "Create a Gmail compose URL",
        "description": "Returns a URL for composing a Gmail message with a specified subject and body.",
        "parameters": [
          {
            "name": "subjectLine",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The subject line of the email."
          },
          {
            "name": "emailBody",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The body of the email."
          },
          {
            "name": "accountId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0,
              "maximum": 100
            },
            "description": "The account ID for the Gmail account, ranging from 0 to 100. Defaults to 0 if not provided or invalid."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}