Texonom

Texonom · Ações GPT

Texonom search

An action that search the texonom knowledge page id list.

  • POST /api/search-notionGet the list of texonom id
Esquema API original
{
  "openapi": "3.1.0",
  "info": {
    "title": "Texonom search",
    "description": "An action that search the texonom knowledge page id list.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://texonom.com"
    }
  ],
  "paths": {
    "/api/search-notion": {
      "post": {
        "operationId": "search",
        "summary": "Get the list of texonom id",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/searchBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/searchResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "searchResponse": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "page id which can be accessed through https://texonom.com/${id}"
                },
                "score": {
                  "type": "number",
                  "description": "related score with the search query"
                },
                "highlight": {
                  "type": "object",
                  "description": "related reason information",
                  "properties": {
                    "title": {
                      "type": "string",
                      "description": "releated text"
                    }
                  }
                }
              }
            },
            "description": "The list of search response."
          }
        }
      },
      "searchBody": {
        "type": "object",
        "properties": {
          "ancestorId": {
            "type": "string",
            "example": "04089c8ae3534bf79512fc495944b321",
            "description": "ancerstor id"
          },
          "query": {
            "type": "string",
            "description": "Short noun query to ask."
          }
        }
      }
    }
  }
}