Toronto Real Estate Expert

Toronto Real Estate Expert · GPT アクション

Contacts API

  • POST /contactsCreate a new contact

    Creates a new contact for a user.

元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "Contacts API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gptstory.ai",
      "description": "Production server"
    }
  ],
  "paths": {
    "/contacts": {
      "post": {
        "summary": "Create a new contact",
        "description": "Creates a new contact for a user.",
        "operationId": "create_contact",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contact": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "format": "email",
                        "description": "Email address of the contact."
                      }
                    },
                    "required": [
                      "email"
                    ]
                  }
                },
                "required": [
                  "contact"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contact created successfully."
          },
          "400": {
            "description": "Bad request due to incorrect parameters."
          }
        }
      }
    }
  }
}