WP GPT Poster - Post SEO Content To Your WP

WP GPT Poster - Post SEO Content To Your WP · GPT Actions

Add Blog Post Endpoint

  • POST /add/blogpostAdd a new blog post
  • POST /get/categoriesGet categories from a specified website URL
  • GET /get/docGet information on how this tool works and for answering questions
原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "version": "1.0.0",
    "title": "Add Blog Post Endpoint"
  },
  "servers": [
    {
      "url": "https://easilygpt.com/wp-json/gptwp_platform/v1"
    }
  ],
  "paths": {
    "/add/blogpost": {
      "post": {
        "summary": "Add a new blog post",
        "operationId": "addBlogPost",
        "tags": [
          "blogpost"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "website_url": {
                    "type": "string",
                    "description": "The website URL from which to retrieve the post."
                  },
                  "secret_pass": {
                    "type": "string",
                    "description": "The secret pass key."
                  },
                  "title": {
                    "type": "string",
                    "description": "The title of the blog post."
                  },
                  "content": {
                    "type": "string",
                    "description": "The full content of the blog post."
                  },
                  "category": {
                    "type": "string",
                    "description": "The category of the blog post."
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The tags associated with the blog post."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Posted successfully. User will receive email on the final outcome. The tool will only post."
          },
          "504": {
            "description": "Posted successfully. User will receive email on the final outcome. The tool will only post."
          },
          "default": {
            "description": "Posted successfully. User will receive email on the final outcome. The tool will only post."
          }
        }
      }
    },
    "/get/categories": {
      "post": {
        "summary": "Get categories from a specified website URL",
        "operationId": "getCategories",
        "tags": [
          "categories"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "website_url": {
                    "type": "string",
                    "description": "The website URL from which to retrieve categories."
                  },
                  "secret_pass": {
                    "type": "string",
                    "description": "The secret pass key."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Categories retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "categories": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A list of categories."
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/get/doc": {
      "get": {
        "summary": "Get information on how this tool works and for answering questions",
        "operationId": "getFaq",
        "tags": [
          "faqs"
        ],
        "responses": {
          "default": {
            "description": "Information retrieved",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}