Last active
April 12, 2024 07:34
-
-
Save foeken/5466eaff9779569eb29786f75a47d934 to your computer and use it in GitHub Desktop.
Slite / ChatGPT actions (OpenAPI)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.1.0", | |
"info": { | |
"title": "Slite API", | |
"description": "Unlocks Slite as a data source.", | |
"version": "v1.0.0" | |
}, | |
"servers": [ | |
{ | |
"url": "https://api.slite.com/v1" | |
} | |
], | |
"paths": { | |
"/search-notes": { | |
"get": { | |
"description": "Search for notes on key-words, faster but less fuzzy.", | |
"operationId": "Search", | |
"parameters": [ | |
{ | |
"name": "query", | |
"in": "query", | |
"description": "The question to ask Slite", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
}, | |
{ | |
"name": "hitsPerPage", | |
"in": "query", | |
"description": "The number of hits per page. Increase to get more search results.", | |
"required": false, | |
"schema": { | |
"type": "number" | |
} | |
} | |
], | |
"deprecated": false | |
} | |
}, | |
"/notes/{noteId}": { | |
"get": { | |
"description": "Get a specific Slite document", | |
"operationId": "GetNote", | |
"parameters": [ | |
{ | |
"name": "noteId", | |
"in": "path", | |
"description": "The identifier of the note", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"deprecated": false | |
} | |
}, | |
"/notes/{noteId}/children": { | |
"get": { | |
"description": "Get the children of a specific Slite document. When a document is empty, it might have chidlren.", | |
"operationId": "GetNoteChildren", | |
"parameters": [ | |
{ | |
"name": "noteId", | |
"in": "path", | |
"description": "The identifier of the note", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"deprecated": false | |
} | |
}, | |
"/ask": { | |
"get": { | |
"description": "Ask Slite a question, a way to search Slite using natural language questions (LLM).", | |
"operationId": "Ask", | |
"parameters": [ | |
{ | |
"name": "question", | |
"in": "query", | |
"description": "The question to ask Slite", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"deprecated": false | |
} | |
}, | |
"/notes/{noteId}": { | |
"get": { | |
"description": "Get a specific Slite document", | |
"operationId": "GetNote", | |
"parameters": [ | |
{ | |
"name": "noteId", | |
"in": "path", | |
"description": "The identifier of the note", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"deprecated": false | |
} | |
} | |
}, | |
"components": { | |
"schemas": {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment