Knowledge
Create an article
Adds an article that the answer endpoint can search. Only owners and admins signed in to the app can add articles.
- Console only: owner or admin
- Workspace:
X-Tenant-ID
Headers
CookiestringrequiredThe
whatsappx_sessioncookie the app sets when you sign in. Browsers send it automatically; API keys are not accepted on this endpoint.X-Tenant-IDuuidrequiredWorkspace id. Required for session requests. You can pass
?tenant=<id>instead.
Body
application/jsontitlestringrequiredArticle title.
bodystringrequiredArticle text.
Response
201 Createdapplication/json
iduuidArticle id.
titlestringArticle title.
bodystringArticle text.
created_atintegerCreation time in Unix seconds.
Status codes
- 201Created. The new article.
- 400Bad request. A length rule failed, or the body is not JSON (
invalid body). - 401Unauthorized. No signed-in session (
unauthorized). - 403Forbidden. API keys can never call this endpoint (
API keys cannot administer workspaces). A signed-in user who is not an owner or admin getsadmin required; a user who is not a member of the workspace getsforbidden.