site logo

Tettra Help Docs

  • Category IconGetting Started
  • Category IconUsing Tettra
  • Category IconKai AI Features
  • Category IconIntegrations
    • Category IconSlack Integration
    • Category IconGoogle Workspace Integration
    • Category IconGitHub Integration
    • Category IconZapier Integration
    • Category IconNotion Integration
    • Category IconAPI Overview
      • What is the Tettra API?
      • How to find your API credentials
      • API Endpoint: Search
      • API Endpoint: Create Page
      • API Endpoint: Create a Question
      • API Endpoint: Suggest a New Page
      • API Endpoint: Suggest Page Update
  • Category IconUsers & Permissions
  • Category IconAccount Management
  • Category IconBilling & Payments
  • Category IconSecurity

API Endpoint: Create a Question

The Create a Question publishes a new Tettra page from the given HTML content.


 URL: https://app.tettra.co/api/teams/{{team_id}}/questions 


 HTTP Method: POST

 

Arguments: 

  • api_key - required - your API key; this determines the asker of the question  
  • title - required - the title of the question 
  • details - optional - additional details formatted as HTML 
  • category_id - optional - the category to ask the question in 
  • subcategory_id - optional - the subcategory to ask the question in (if category_id is also provided, the subcategory must be in the provided category) 
  • assignees - optional - array of user ids to assign the question to


 Example:

curl -X POST \
   -H 'Content-Type: application/json' \
   -H 'Accept: application/json' \
   --data \
   '
   {
       "api_key":"xxxxxxxxxxxxxxxxxx1234567890",
       "title":"How do I create a question via api?",
       "details":"<h1>Hello world!</h1>",
       "category_id":2,
       "assignees": [12, 22]
   }
   ' \
   https://app.tettra.co/api/teams/2/questions


Related 

  • API overview
Previous
API Endpoint: Create Page
Next
API Endpoint: Suggest a New Page
Powered by Tettra