Virtualdeborah

Virtualdeborah · Actions GPT

VirtualDeborah GPT API

API for managing bookings for the VirtualDeborah GPT service

  • POST /bookingSend email and task to the booking endpoint to create a new booking
Schéma original API
{
  "openapi": "3.0.1",
  "info": {
    "title": "VirtualDeborah GPT API",
    "description": "API for managing bookings for the VirtualDeborah GPT service",
    "version": "1.0",
    "contact": {
      "email": "legal@example.com"
    },
    "license": {
      "name": "API License",
      "url": "http://example.com/legal"
    }
  },
  "servers": [
    {
      "url": "https://deborahgpt.virtualdeborah.com"
    }
  ],
  "paths": {
    "/booking": {
      "post": {
        "operationId": "createBooking",
        "summary": "Send email and task to the booking endpoint to create a new booking",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Email address of the user making a booking"
                  },
                  "task": {
                    "type": "string",
                    "description": "Description of the task for the booking"
                  }
                },
                "required": [
                  "email",
                  "task"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Booking created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "string",
                      "example": "Booking created successfully."
                    },
                    "url": {
                      "type": "string",
                      "example": "https://virtualdeborah.com/token/123456789012"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request when email and task parameters are not provided"
          },
          "500": {
            "description": "Internal server error when the booking could not be created"
          }
        }
      }
    }
  }
}