PinterestGPT

PinterestGPT · GPT 작업

PinsGPT REST API

PinsGPT's REST API

  • GET /user_accountGet user account info

    Get user account info

  • GET /pinsGet Pins

    Get Pins of the current user

  • POST /pinsCreate Pin

    Create a Pin on a board

  • GET /boardsGet boards

    Get boards of the current user

원본 API 스키마
{
  "openapi": "3.0.3",
  "info": {
    "version": "0.0.1",
    "title": "PinsGPT REST API",
    "description": "PinsGPT's REST API"
  },
  "servers": [
    {
      "url": "https://www.pinsgpt.app/api/v1"
    }
  ],
  "paths": {
    "/user_account": {
      "get": {
        "summary": "Get user account info",
        "description": "Get user account info",
        "operationId": "getUserAccountInfo",
        "security": [],
        "parameters": [
          {
            "name": "connection_id",
            "in": "query",
            "description": "Connection ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Success"
          }
        }
      }
    },
    "/pins": {
      "get": {
        "summary": "Get Pins",
        "description": "Get Pins of the current user",
        "operationId": "getPins",
        "security": [],
        "parameters": [
          {
            "name": "connection_id",
            "in": "query",
            "description": "Connection ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Success"
          }
        }
      },
      "post": {
        "summary": "Create Pin",
        "description": "Create a Pin on a board",
        "operationId": "createPin",
        "security": [],
        "parameters": [
          {
            "name": "connection_id",
            "in": "query",
            "description": "Connection ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "description": "Pin title",
                    "type": "string"
                  },
                  "description": {
                    "description": "Pin description",
                    "type": "string"
                  },
                  "board_id": {
                    "description": "Board ID of the board to pin to",
                    "type": "string"
                  },
                  "image_base64": {
                    "description": "Base64 encoded image from which to generate the Pin",
                    "type": "string"
                  },
                  "image_type": {
                    "description": "jpeg or png",
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/boards": {
      "get": {
        "summary": "Get boards",
        "description": "Get boards of the current user",
        "operationId": "getBoards",
        "security": [],
        "parameters": [
          {
            "name": "connection_id",
            "in": "query",
            "description": "Connection ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {},
    "paramaters": {}
  }
}