Backlink Force

Backlink Force · Actions GPT

ChatGPT API

API for adding posts with GPT integration

  • POST /addpostAdd a new post
Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "ChatGPT API",
    "version": "1.0.0",
    "description": "API for adding posts with GPT integration"
  },
  "servers": [
    {
      "url": "https://backlinkforce.com/wp-json/chatgpt/v1"
    }
  ],
  "paths": {
    "/addpost": {
      "post": {
        "summary": "Add a new post",
        "operationId": "addpost",
        "tags": [
          "Posts"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Title of the post"
                  },
                  "content": {
                    "type": "string",
                    "description": "Content of the post"
                  },
                  "category": {
                    "type": "string",
                    "description": "Content of the post"
                  },
                  "keywords": {
                    "type": "string",
                    "description": "The keywords for the article post"
                  },
                  "gptid": {
                    "type": "string",
                    "description": "Unique identifier for the GPT request"
                  }
                },
                "required": [
                  "title",
                  "content",
                  "category",
                  "gptid"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "gptid": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PostRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "gptid": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "content",
          "gptid"
        ]
      },
      "PostResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "gptid": {
            "type": "string"
          }
        }
      }
    }
  }
}