Scandinavian Defense Chess Coach | ChessviaGPT

Scandinavian Defense Chess Coach | ChessviaGPT · Acciones GPT

Make Webhook API

API for interacting with a Make webhook to retrieve data from a database, retrieve a chess players insights or generating insights from their chess.com account

  • POST /wfrq03vw5vxua1mf6g8nkwdmrckxeqm9Retrieve a players Chess.com account insights data from a Make database using the FileID of the data
  • POST /j5tb5qxwofl1bvnlyu1yg7brufws1dd1Generate chess insights data for a players Chess.com account using their username through a Make flow which generates and returns the insights data
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Make Webhook API",
    "description": "API for interacting with a Make webhook to retrieve data from a database, retrieve a chess players insights or generating insights from their chess.com account",
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://hook.us1.make.com"
    }
  ],
  "paths": {
    "/wfrq03vw5vxua1mf6g8nkwdmrckxeqm9": {
      "post": {
        "summary": "Retrieve a players Chess.com account insights data from a Make database using the FileID of the data",
        "operationId": "retrieveInsights",
        "requestBody": {
          "description": "File ID to retrieve",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "description": "The ID of the file to retrieve from Make"
                  }
                },
                "required": [
                  "fileId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Data retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "string",
                      "description": "The complete data block as a single string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "File not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    },
    "/j5tb5qxwofl1bvnlyu1yg7brufws1dd1": {
      "post": {
        "summary": "Generate chess insights data for a players Chess.com account using their username through a Make flow which generates and returns the insights data",
        "operationId": "generateInsights",
        "requestBody": {
          "description": "Chess.com username for whom to retrieve chess insights data",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string",
                    "description": "Chess.com username for whom to retrieve chess insights data"
                  }
                },
                "required": [
                  "username"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Chess insights retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "insights": {
                      "type": "object",
                      "description": "The chess insights for the provided username"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "User not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  }
}