Profile Page Pro

Profile Page Pro · Acciones GPT

Profile Page Pro Actions

  • GET /pagegetPage

    Retrieve the profile page.

  • POST /pagecreateOrUpdatePage

    Create or update the profile page.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Profile Page Pro Actions",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://profilepagepro.com/actions/v1"
    }
  ],
  "components": {
    "schemas": {
      "PageContent": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "description": "The HTML of the profile page."
          },
          "css": {
            "type": "string",
            "description": "The CSS of the profile page."
          }
        },
        "required": [
          "html",
          "css"
        ],
        "description": "The content of the profile page."
      },
      "PageMetadata": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The public URL of the profile page."
          }
        },
        "required": [
          "url"
        ],
        "description": "The metadata of the profile page."
      }
    },
    "parameters": {}
  },
  "paths": {
    "/page": {
      "get": {
        "operationId": "getPage",
        "description": "Retrieve the profile page.",
        "responses": {
          "200": {
            "description": "The profile page was retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageMetadata"
                }
              }
            }
          },
          "404": {
            "description": "The profile page does not exist."
          }
        }
      },
      "post": {
        "operationId": "createOrUpdatePage",
        "description": "Create or update the profile page.",
        "requestBody": {
          "description": "The new content of the profile page.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PageContent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The profile page was created or updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageMetadata"
                }
              }
            }
          }
        }
      }
    }
  }
}