नॉलेज
इस समूह का हर ऑपरेशन: वह क्या लेता है, क्या लौटाता है और किन त्रुटियों के साथ जवाब दे सकता है।
ऑपरेशन
The workspace knowledge base: notes, files and web pages the AI uses when it writes replies, drafts email and answers in the assistant. Each item sits at one level. A scope is empty for the whole workspace, @ and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.
Files are read into text in the background, PDFs, Office and OpenDocument files, spreadsheets, CSV, HTML, XML, Markdown, text and images among them. Text is encrypted at rest, and search runs over the meaning of the text as well as its words.
/knowledge/knowledge/levels/knowledge/usage/knowledge/search/knowledge/notes/knowledge/links/knowledge/files/knowledge/{id}/knowledge/{id}/knowledge/{id}/knowledge/{id}/refresh/knowledge/stats/knowledge/suggestions/knowledge/suggestions/{id}/accept/knowledge/suggestions/{id}/dismiss/knowledge/flags/knowledge/flags/{id}/dismiss/knowledge/connectors/knowledge/connectors/knowledge/connectors/{id}/knowledge/connectors/{id}/knowledge/connectors/{id}/knowledge/connectors/{id}/sync/knowledge/drafts
GET/knowledge
List knowledge items
Newest first. Every filter is optional. q matches titles, file names and links. A key or an app limited to particular addresses sees the whole-workspace items and the items at its addresses and their domains.
Requires the knowledge:read scope.
क्वेरी पैरामीटर
scopestringOnly the items at exactly this level. A
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.levelstringOnly items at this kind of level.
इनमें से एक"workspace""domain""address"kindstringKeeps one kind of item:
note,fileorlink.इनमें से एक"note""file""link"statusstringKeeps one status:
queued,processing,readyorfailed.इनमें से एक"queued""processing""ready""failed"pinnedstringtruekeeps the pinned notes andfalseeverything else.इनमें से एक"true""false"qstringWords in the title, file name or link.
limitintegerRows per page, 1 to 100.
कम से कम 1अधिकतम 100डिफ़ॉल्ट25cursorstringThe previous page's
nextCursor, passed back as it came. It is opaque: it holds where the last row sat in this list's order, so a row deleted or edited between pages never breaks the walk, and the next page starts at the first row that sorts after it. A value this list did not hand out is a 400invalid_cursor.
लौटाता है
A page of items.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
GET/knowledge/levels
List knowledge levels
The whole workspace, each domain and each address the caller can see, how many items each holds and whether the caller may change items there.
Requires the knowledge:read scope.
लौटाता है
Every level the caller can see.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.levels()- Python
knowledge.levels()- Ruby
knowledge.levels- PHP
knowledge->levels- CLI
openemail knowledge levels- MCP
listKnowledgeLevels
GET/knowledge/usage
Read knowledge base usage
How many items and characters of text the workspace holds, against what its plan allows.
Requires the knowledge:read scope.
लौटाता है
The usage and the limits.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.usage()- Python
knowledge.usage()- Ruby
knowledge.usage- PHP
knowledge->usage- CLI
openemail knowledge usage- MCP
getKnowledgeUsage
POST/knowledge/search
Search the knowledge base
The passages that best answer query, by meaning and by words, the way the AI finds them. With address, the levels the AI uses for that address: the address, its domain and the whole workspace, the most specific ranked a little higher. With scope, that one level. With neither, every level the caller can see.
Requires the knowledge:read scope.
अनुरोध बॉडी
querystringआवश्यकWhat to look for, in plain words, up to 500 characters.
1 से 500 वर्णaddressstringAn address of the workspace, to search the levels the AI uses when it writes as that address.
अधिकतम 320 वर्णscopestringOne level to search: an empty string for the whole workspace,
@and a domain, or one address.अधिकतम 320 वर्णlimitintegerHow many passages, from 1 to 25. The server defaults to 8.
कम से कम 1अधिकतम 25rerankbooleanWhen true, the AI reads the best 25 passages and puts them in the order that best answers
query, leaving out the ones that do not help. It adds a second or two and counts as one AI action. When it cannot finish, the passages keep their usual order andrerankedis false.
लौटाता है
The passages, best first.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.search()- Python
knowledge.search()- Ruby
knowledge.search- PHP
knowledge->search- CLI
openemail knowledge search- MCP
searchKnowledge
POST/knowledge/notes
Add a note
Up to 20,000 characters of text, in Markdown if you like. A note is usually ready for the AI in a second or two. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole.
Requires the knowledge:write scope.
अनुरोध बॉडी
scopestringThe level: an empty string, or left out, for the whole workspace,
@and a domain such as@acme.com, or one address such as[email protected].अधिकतम 320 वर्णडिफ़ॉल्ट""titlestringआवश्यकA short name for the note, at most 200 characters.
1 से 200 वर्णbodystringआवश्यकThe text, up to 20,000 characters, in Markdown if you like.
1 से 20000 वर्णpinnedbooleanPuts the note into every prompt at its level. Left out, false.
threadIdstringThe conversation the note comes from, such as one
POST /knowledge/draftsdrafted it from.1 से 200 वर्ण
लौटाता है
The note.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/links
Add a link
A public web page, at most 2048 characters long. It is fetched and read in the background, so the item starts queued. Without a title, the page's own title is used. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole.
Requires the knowledge:write scope.
अनुरोध बॉडी
scopestringThe level: an empty string, or left out, for the whole workspace,
@and a domain such as@acme.com, or one address such as[email protected].अधिकतम 320 वर्णडिफ़ॉल्ट""urlstringआवश्यकThe page, a public
httporhttpsaddress of at most 2,048 characters.1 से 2048 वर्णtitlestringA name for the item, at most 200 characters. Left out, the page's own title once it has been read.
अधिकतम 200 वर्णrefreshDaysintegerRead the page again every this many days (1, 7, 30), so changes reach the AI on their own. Left out or null, it is read again only when you ask.
null हो सकता है0 से अधिक
लौटाता है
The link, queued to be read.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/files
Upload a file
Send the file itself as the request body, with its Content-Type, and name it with filename or an X-Filename header. At most 20 MB for a document and 10 MB for an image. The text is read in the background, so the item starts queued. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole.
Requires the knowledge:write scope.
क्वेरी पैरामीटर
scopestringA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.filenamestringThe file name. Its extension tells the kind of file when the
Content-Typeis generic.titlestringLeft out, the file name without its extension.
अधिकतम 200 वर्ण
अनुरोध बॉडी
कंटेंट टाइपapplication/octet-stream
लौटाता है
The file, queued to be read.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
GET/knowledge/{id}
Get a knowledge item
The item with its text: a note's body, or the first 20,000 characters read from a file or a page.
Requires the knowledge:read scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a knowledge item, as
GET /knowledgereturns it.
लौटाता है
The item and its text.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.get()- Python
knowledge.get()- Ruby
knowledge.get- PHP
knowledge->get- CLI
openemail knowledge get- MCP
getKnowledge
PATCH/knowledge/{id}
Change a knowledge item
Give at least one field. body and pinned are for notes, url and refreshDays are for links. A changed title, body or link is indexed again, and an item moved to another level keeps its index. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole. Moving an item needs that reach at both levels.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a knowledge item, as
GET /knowledgereturns it.
अनुरोध बॉडी
titlestringA new name, at most 200 characters.
1 से 200 वर्णbodystringNotes only.
1 से 20000 वर्णscopestringA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.pinnedbooleanNotes only.
urlstringLinks only.
1 से 2048 वर्णrefreshDaysintegerLinks only: read the page again every this many days. Null stops that.
null हो सकता हैइनमें से एक1730
लौटाता है
The item as it is now.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.update()- Python
knowledge.update()- Ruby
knowledge.update- PHP
knowledge->update- CLI
openemail knowledge update- MCP
updateKnowledge
DELETE/knowledge/{id}
Delete a knowledge item
Gone for good, with its file and its passages. The AI stops using it at once.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a knowledge item, as
GET /knowledgereturns it.
लौटाता है
Deleted.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.delete()- Python
knowledge.delete()- Ruby
knowledge.delete- PHP
knowledge->delete- CLI
openemail knowledge delete- MCP
deleteKnowledge
POST/knowledge/{id}/refresh
Read a knowledge item again
Fetches a link again, reads a file again, or indexes a note again, and clears a failure. The previous text stays in use until the new one is ready.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a knowledge item, as
GET /knowledgereturns it.
लौटाता है
The item, queued to be read again.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.refresh()- Python
knowledge.refresh()- Ruby
knowledge.refresh- PHP
knowledge->refresh- CLI
openemail knowledge refresh- MCP
refreshKnowledge
GET/knowledge/stats
Read knowledge base stats
How the AI used the knowledge base over the last days days, 30 unless you say. uses counts the times a reply suggestion, a draft, the assistant or a search found something in it and empty the times it looked and found nothing, for the whole workspace, with bySurface splitting uses by where. topItems, unusedItems, the waiting suggestions and questions and the open flags count only what the caller can see.
Requires the knowledge:read scope.
क्वेरी पैरामीटर
daysintegerHow many days back to count, today included.
कम से कम 1अधिकतम 90डिफ़ॉल्ट30
लौटाता है
The stats.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.stats()- Python
knowledge.stats()- Ruby
knowledge.stats- PHP
knowledge->stats- CLI
openemail knowledge stats- MCP
getKnowledgeStats
GET/knowledge/suggestions
List knowledge suggestions
Notes the AI suggests and questions nothing in the knowledge base answers, the most recent first, pending ones unless you ask for another status. A learned suggestion comes from a reply sent from the workspace in a conversation: the AI reads the message the reply answers and the reply, and keeps up to three facts that would hold for other people too, at the level of the domain the reply was sent from, or the whole workspace when that domain is not one of its own. Facts the knowledge base already holds are left out, and at most 100 replies a day are read. A question comes from an incoming message: when the AI suggests replies to it, it notes up to 3 things the sender asked about the business that neither the conversation nor the knowledge base answers, at the level of the domain the message arrived at, chosen the same way. The same fact or question again counts up occurrences, and one that was dismissed is not suggested again. Both stop while the workspace setting knowledgeLearning is off.
Requires the knowledge:read scope.
क्वेरी पैरामीटर
kindstringKeeps one kind:
learnedfor notes drawn from sent replies, orquestionfor questions nothing answers.इनमें से एक"learned""question"statusstringKeeps one status:
pending,acceptedordismissed. Left out,pending.इनमें से एक"pending""accepted""dismissed"डिफ़ॉल्ट"pending"limitintegerRows per page, 1 to 100.
कम से कम 1अधिकतम 100डिफ़ॉल्ट25cursorstringThe previous page's
nextCursor, passed back as it came. It is opaque: it holds where the last row sat in this list's order, so a row deleted or edited between pages never breaks the walk, and the next page starts at the first row that sorts after it. A value this list did not hand out is a 400invalid_cursor.
लौटाता है
A page of suggestions and questions.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
- TypeScript
knowledge.listSuggestions()knowledge.listAllSuggestions()knowledge.iterateSuggestions()- Python
knowledge.list_suggestions()knowledge.list_all_suggestions()knowledge.iterate_suggestions()- Ruby
knowledge.list_suggestionsknowledge.list_all_suggestionsknowledge.iterate_suggestions- PHP
knowledge->listSuggestionsknowledge->listAllSuggestionsknowledge->iterateSuggestions- CLI
openemail knowledge list-suggestions- MCP
listKnowledgeSuggestions
POST/knowledge/suggestions/{id}/accept
Accept a knowledge suggestion
Saves the suggestion as a note, with any field you send in place of the suggested one, and marks it accepted. A question needs its answer in body, and its title stays the question unless you send one. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a suggestion or question, as
GET /knowledge/suggestionsreturns it.
अनुरोध बॉडी
titlestringLeft out, the suggested title or the question.
1 से 200 वर्णbodystringLeft out, the suggested note. A question needs it: the answer.
1 से 20000 वर्णscopestringLeft out, the suggested level. A
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.pinnedbooleanPut the note into every prompt at its level.
लौटाता है
The suggestion and the note made from it.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/suggestions/{id}/dismiss
Dismiss a knowledge suggestion
Marks the suggestion or question dismissed, so it leaves the pending list and is not suggested again. Nothing is added to the knowledge base. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a suggestion or question, as
GET /knowledge/suggestionsreturns it.
लौटाता है
The suggestion, dismissed.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
GET/knowledge/flags
List knowledge flags
Open warnings about pairs of items, newest first. Each item is compared with the closest items at every level when it is indexed, and again whenever it changes. duplicate means two items say nearly the same thing. conflict means the AI found that two closely related items disagree on a fact, such as a price or a deadline, and detail says how. Conflicts are looked for while the workspace setting knowledgeLearning is on, at most 200 times a day. A flag shows only to a caller who can see both items. With itemId, only the flags that name that item.
Requires the knowledge:read scope.
क्वेरी पैरामीटर
itemIdstringOnly the flags that name this knowledge item.
limitintegerHow many flags, from 1 to 100. The server defaults to 50.
कम से कम 1अधिकतम 100डिफ़ॉल्ट50
लौटाता है
The open flags.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/flags/{id}/dismiss
Dismiss a knowledge flag
Marks the flag dismissed, and the same two items are not flagged for the same reason again. To settle a real duplicate or conflict instead, change or delete one of the items. It needs the reach to change items at the levels of both.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a flag, as
GET /knowledge/flagsreturns it.
लौटाता है
The flag, dismissed.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
GET/knowledge/connectors
List knowledge connectors
Every connector at a level the caller can see, newest first.
Requires the knowledge:read scope.
लौटाता है
The connectors.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/connectors
Add a knowledge connector
Keeps many web pages from one source in the knowledge base, each page as a link item at the connector's level. site reads the page at url and follows its links to pages on the same host under the same path, leaving out what the site's robots.txt disallows. sitemap reads a sitemap, or a sitemap index and up to 5 of its sitemaps. feed reads an RSS or Atom feed. zendesk reads the published articles of a Zendesk help center, from its address such as https://example.zendesk.com. It keeps at most pageLimit pages, 25 unless you say. The first sync starts within a minute, and it syncs again every refreshDays days, 7 unless you say: new pages are added, changed ones are read again and pages that are gone are removed. A page already in the knowledge base as a link at the same level is left to that item. Its items count toward the plan allowance, and a sync stops adding pages once that is reached. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole.
Requires the knowledge:write scope.
अनुरोध बॉडी
kindstringआवश्यकA site it crawls, a sitemap, an RSS or Atom feed, or a Zendesk help center.
इनमें से एक"site""sitemap""feed""zendesk"urlstringआवश्यकA public https address: the page a site crawl starts from, the sitemap, the feed, or the address of the help center.
1 से 2048 वर्णscopestringA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.डिफ़ॉल्ट""titlestringLeft out, the host and the kind.
अधिकतम 200 वर्णrefreshDaysintegerSync again every this many days, 7 when left out. Null syncs only when you ask.
null हो सकता हैइनमें से एक1730pageLimitintegerThe most pages to keep.
कम से कम 1अधिकतम 200डिफ़ॉल्ट25
लौटाता है
The connector, queued for its first sync.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
GET/knowledge/connectors/{id}
Get a knowledge connector
The connector, how many items it keeps and when it syncs next.
Requires the knowledge:read scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a connector, as
GET /knowledge/connectorsreturns it.
लौटाता है
The connector.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
PATCH/knowledge/connectors/{id}
Change a knowledge connector
Give at least one field. Moving it to another level moves its items with it, and they are indexed again there. Changing an item needs reach over every address its level covers: the whole workspace needs every address, a domain needs the whole domain, and an address needs that address. A key or an app limited to particular addresses can change items only at those addresses, or at domains it holds whole. Moving it needs that reach at both levels.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a connector, as
GET /knowledge/connectorsreturns it.
अनुरोध बॉडी
titlestringA new name, at most 200 characters.
1 से 200 वर्णscopestringA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.refreshDaysintegerSync again every this many days. Null syncs only when you ask.
null हो सकता हैइनमें से एक1730pageLimitintegerThe most pages to keep, from 1 to 200.
कम से कम 1अधिकतम 200
लौटाता है
The connector as it is now.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
DELETE/knowledge/connectors/{id}
Delete a knowledge connector
Gone for good, with every item it added to the knowledge base. The AI stops using them at once.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a connector, as
GET /knowledge/connectorsreturns it.
लौटाता है
Deleted.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/connectors/{id}/sync
Sync a knowledge connector now
Queues a sync that starts within a minute, whatever the schedule says, and clears a failure.
Requires the knowledge:write scope.
पाथ पैरामीटर
idstringआवश्यकThe id of a connector, as
GET /knowledge/connectorsreturns it.
लौटाता है
The connector, queued to sync.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
POST/knowledge/drafts
Draft a note from a conversation
The AI reads the conversation and writes one note of the facts in it that the team will need again, leaving out personal details and what matters only to that conversation. Nothing is saved: send the draft, changed as you like, to POST /knowledge/notes with the same threadId to keep it. scope suggests a level: the domain the conversation arrived at when the caller may add items there, otherwise the whole workspace or the address. It counts as one AI action.
Requires the knowledge:write and threads:read scopes.
अनुरोध बॉडी
threadIdstringआवश्यकThe conversation, by the id the thread endpoints give it.
1 से 200 वर्ण
लौटाता है
The draft note.
त्रुटियाँ
वे त्रुटियाँ जो कोई भी ऑपरेशन लौटा सकता है400401403404422500त्रुटि सूची
इनमें भी उपलब्ध
ऑब्जेक्ट
DeletedKnowledgeConnectorobject
objectstring- इनमें से एक
"knowledge_connector" idstringdeletedboolean- इनमें से एक
true
DeletedKnowledgeItemobject
objectstring- इनमें से एक
"knowledge_item" idstringdeletedboolean- इनमें से एक
true
KnowledgeConnectorobject
objectstringआवश्यक- इनमें से एक
"knowledge_connector" idstringआवश्यकkindstringआवश्यकA site it crawls, a sitemap, an RSS or Atom feed, or a Zendesk help center.
इनमें से एक"site""sitemap""feed""zendesk"scopestringआवश्यकA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.levelstringआवश्यक- इनमें से एक
"workspace""domain""address" titlestringआवश्यक- अधिकतम 200 वर्ण
urlstringआवश्यकrefreshDaysintegerआवश्यकIt syncs again every this many days. Null when it syncs only when you ask.
null हो सकता हैइनमें से एक1730pageLimitintegerआवश्यकThe most pages it keeps.
statusstringआवश्यकqueueduntil a sync starts,syncingwhile it reads the source,readyonce its pages are items,failedwhen the source could not be read after several tries.इनमें से एक"queued""syncing""ready""failed"failurestringआवश्यक- null हो सकता हैइनमें से एक
"unsupported""empty""too_large""fetch_failed""blocked_url""conversion_failed""index_failed""over_allowance""missing_file" itemsintegerआवश्यकHow many items it keeps in the knowledge base.
lastSyncAtstringआवश्यक- null हो सकता हैफ़ॉर्मैट
date-time nextSyncAtstringआवश्यक- null हो सकता हैफ़ॉर्मैट
date-time createdAtstringआवश्यक- फ़ॉर्मैट
date-time updatedAtstringआवश्यक- फ़ॉर्मैट
date-time
KnowledgeConnectorListobject
objectstring- इनमें से एक
"list"
KnowledgeDraftobject
objectstringआवश्यक- इनमें से एक
"knowledge_draft" titlestringआवश्यकbodystringआवश्यकThe note, in Markdown.
scopestringआवश्यकThe suggested level. A
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.threadIdstringआवश्यक
KnowledgeFlagobject
objectstringआवश्यक- इनमें से एक
"knowledge_flag" idstringआवश्यकkindstringआवश्यकduplicatewhen the two items say nearly the same thing,conflictwhen they disagree on a fact.इनमें से एक"duplicate""conflict"statusstringआवश्यक- इनमें से एक
"open""dismissed" sourceIdstringआवश्यकsourceTitlestringआवश्यकotherSourceIdstringआवश्यकotherSourceTitlestringआवश्यकdetailstringआवश्यकFor a conflict, one sentence on the facts that disagree. Null for a duplicate.
null हो सकता हैscorenumberआवश्यकHow close in meaning the two items are, from 0 to 1.
createdAtstringआवश्यक- फ़ॉर्मैट
date-time
KnowledgeFlagListobject
objectstring- इनमें से एक
"list" dataKnowledgeFlag[]
KnowledgeItemobject
objectstringआवश्यक- इनमें से एक
"knowledge_item" idstringआवश्यकkindstringआवश्यकA note written in place, an uploaded file, or a web page fetched from a link.
इनमें से एक"note""file""link"scopestringआवश्यकA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.levelstringआवश्यक- इनमें से एक
"workspace""domain""address" titlestringआवश्यक- अधिकतम 200 वर्ण
urlstringआवश्यकThe page a link item reads. Null for notes and files.
null हो सकता हैfileNamestringआवश्यक- null हो सकता है
mimeTypestringआवश्यक- null हो सकता है
sizeBytesintegerआवश्यक- null हो सकता है
pinnedbooleanआवश्यकA pinned note goes into every AI prompt at its level, not only when it matches.
statusstringआवश्यकqueuedandprocessingwhile the text is read and indexed,readyonce the AI can use it,failedwhen it could not be read. A changed item goes back toqueued, and its previous text stays in use until the new one is ready.इनमें से एक"queued""processing""ready""failed"failurestringआवश्यक- null हो सकता हैइनमें से एक
"unsupported""empty""too_large""fetch_failed""blocked_url""conversion_failed""index_failed""over_allowance""missing_file" chunksintegerआवश्यकHow many passages the text was split into for search.
charsintegerआवश्यकCharacters of text, which count toward the plan allowance.
originstringआवश्यक- इनमें से एक
"app""api""assistant""mcp" createdBystringआवश्यक- null हो सकता है
createdAtstringआवश्यक- फ़ॉर्मैट
date-time updatedAtstringआवश्यक- फ़ॉर्मैट
date-time indexedAtstringआवश्यक- null हो सकता हैफ़ॉर्मैट
date-time refreshDaysintegerआवश्यकLinks only: the page is read again every this many days, and changes reach the AI on their own. Null when it is read only when you ask.
null हो सकता हैइनमें से एक1730nextRefreshAtstringआवश्यकWhen the page is next read again. Null when it is not scheduled.
null हो सकता हैफ़ॉर्मैटdate-timeconnectorIdstringआवश्यकThe connector that keeps this item in step with its source, or null for an item added by hand.
null हो सकता हैthreadIdstringआवश्यकThe conversation the note was saved from, or null.
null हो सकता हैusesintegerआवश्यकHow many times it came up in a reply suggestion, a draft, the assistant or a search.
lastUsedAtstringआवश्यक- null हो सकता हैफ़ॉर्मैट
date-time flagsintegerआवश्यकHow many open duplicate or conflict flags name it. Lists and
GET /knowledge/{id}count them, and the answer to a change says 0.
KnowledgeItemDetailobject
objectstring- इनमें से एक
"knowledge_item" idstringkindstringA note written in place, an uploaded file, or a web page fetched from a link.
इनमें से एक"note""file""link"scopestringA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.levelstring- इनमें से एक
"workspace""domain""address" titlestring- अधिकतम 200 वर्ण
urlstringThe page a link item reads. Null for notes and files.
null हो सकता हैfileNamestring- null हो सकता है
mimeTypestring- null हो सकता है
sizeBytesinteger- null हो सकता है
pinnedbooleanA pinned note goes into every AI prompt at its level, not only when it matches.
statusstringqueuedandprocessingwhile the text is read and indexed,readyonce the AI can use it,failedwhen it could not be read. A changed item goes back toqueued, and its previous text stays in use until the new one is ready.इनमें से एक"queued""processing""ready""failed"failurestring- null हो सकता हैइनमें से एक
"unsupported""empty""too_large""fetch_failed""blocked_url""conversion_failed""index_failed""over_allowance""missing_file" chunksintegerHow many passages the text was split into for search.
charsintegerCharacters of text, which count toward the plan allowance.
originstring- इनमें से एक
"app""api""assistant""mcp" createdBystring- null हो सकता है
createdAtstring- फ़ॉर्मैट
date-time updatedAtstring- फ़ॉर्मैट
date-time indexedAtstring- null हो सकता हैफ़ॉर्मैट
date-time refreshDaysintegerLinks only: the page is read again every this many days, and changes reach the AI on their own. Null when it is read only when you ask.
null हो सकता हैइनमें से एक1730nextRefreshAtstringWhen the page is next read again. Null when it is not scheduled.
null हो सकता हैफ़ॉर्मैटdate-timeconnectorIdstringThe connector that keeps this item in step with its source, or null for an item added by hand.
null हो सकता हैthreadIdstringThe conversation the note was saved from, or null.
null हो सकता हैusesintegerHow many times it came up in a reply suggestion, a draft, the assistant or a search.
lastUsedAtstring- null हो सकता हैफ़ॉर्मैट
date-time flagsintegerHow many open duplicate or conflict flags name it. Lists and
GET /knowledge/{id}count them, and the answer to a change says 0.bodystringThe text of a note. Null for files and links.
null हो सकता हैpreviewstringThe text the AI reads, from the start. Null while a file or page has not been read yet.
null हो सकता हैpreviewTruncatedbooleanTrue when the text goes on past the preview.
KnowledgeItemListobject
objectstring- इनमें से एक
"list" dataKnowledgeItem[]hasMorebooleanTrue when another page follows. Pass
nextCursorback ascursorto read it.nextCursorstringAn opaque cursor for the next page, or null on the last page. Pass it back unchanged.
null हो सकता है
KnowledgeLevelobject
objectstring- इनमें से एक
"knowledge_level" scopestringA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.levelstring- इनमें से एक
"workspace""domain""address" writablebooleanWhether the caller may add and change items here.
itemsinteger
KnowledgeLevelListobject
objectstring- इनमें से एक
"list" dataKnowledgeLevel[]
KnowledgeSearchHitobject
sourceIdstringThe item the passage comes from.
titlestringkindstring- इनमें से एक
"note""file""link" scopestringlevelstring- इनमें से एक
"workspace""domain""address" urlstring- null हो सकता है
headingstringThe headings the passage sits under, joined with
>.textstringscorenumberHigher is a better match. Only the order means anything.
KnowledgeSearchResultobject
objectstring- इनमें से एक
"knowledge_search" querystringrerankedbooleanTrue when the AI put the passages in order, as
rerankasks.
KnowledgeStatsobject
objectstring- इनमें से एक
"knowledge_stats" daysintegerusesintegerTimes the AI found something in the knowledge base.
emptyintegerTimes it looked and found nothing.
coveragenumberuses divided by uses and empty together, from 0 to 1. 0 when it never looked.
bySurfaceRecord<string, integer>usesby where they happened:compose,reply,chat,tool,search.seriesobject[]One entry per day, oldest first, days with nothing included.
daystring- फ़ॉर्मैट
date usesintegeremptyinteger
topItemsobject[]The items used most, ever.
idstringtitlestringkindstring- इनमें से एक
"note""file""link" scopestringusesintegerlastUsedAtstring- null हो सकता हैफ़ॉर्मैट
date-time
unusedItemsintegerReady items the AI has never used.
pendingSuggestionsintegeropenQuestionsintegeropenFlagsinteger
KnowledgeSuggestionobject
objectstringआवश्यक- इनमें से एक
"knowledge_suggestion" idstringआवश्यकkindstringआवश्यकlearnedis a fact the AI found in a reply sent from the workspace.questionis something a sender asked that nothing in the knowledge base answers.इनमें से एक"learned""question"statusstringआवश्यक- इनमें से एक
"pending""accepted""dismissed" scopestringआवश्यकA
scopeis empty for the whole workspace,@and a domain for everything on that domain (@acme.com), or one address ([email protected]). The AI working for an address reads that address, then its domain, then the whole workspace, the most specific first.levelstringआवश्यक- इनमें से एक
"workspace""domain""address" titlestringआवश्यकThe suggested title, or the question.
bodystringआवश्यकThe suggested note. Null for a question, which needs its answer when it is accepted.
null हो सकता हैoccurrencesintegerआवश्यकHow many times the same fact or question came up.
threadIdstringआवश्यकThe conversation it came from most recently.
null हो सकता हैsourceIdstringआवश्यकThe note made from it, once it is accepted.
null हो सकता हैcreatedAtstringआवश्यक- फ़ॉर्मैट
date-time updatedAtstringआवश्यक- फ़ॉर्मैट
date-time decidedAtstringआवश्यक- null हो सकता हैफ़ॉर्मैट
date-time
KnowledgeSuggestionAcceptedobject
objectstringआवश्यक- इनमें से एक
"knowledge_suggestion_accepted" suggestionKnowledgeSuggestionआवश्यकitemKnowledgeItemआवश्यक
KnowledgeSuggestionListobject
objectstring- इनमें से एक
"list" hasMorebooleanTrue when another page follows. Pass
nextCursorback ascursorto read it.nextCursorstringAn opaque cursor for the next page, or null on the last page. Pass it back unchanged.
null हो सकता है
KnowledgeUsageobject
objectstring- इनमें से एक
"knowledge_usage" planstring- इनमें से एक
"free""starter""business""enterprise" sourcesintegerItems held.
charsintegerCharacters of text held.
limitsobjectsourcesintegercharsinteger