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 Page

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


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


HTTP Method: POST


Arguments: 

  • api_key - required - your API key; this determines the author of the page  
  • title - required - the title of the page 
  • body - required - the body of the page formatted as HTML  
  • category_id - optional - the category to publish the page to
  • subcategory_id - optional - the subcategory to publish the page to

 Example:

curl -X POST \
   -H 'Content-Type: application/json' \
   --data \
   '
   {
       "api_key":"xxxxxxxxxxxxxxxxxx1234567890",
       "title":"My Awesome Page",
       "body":"<h1>Hello World!</h1>"
   }
   ' \
   https://app.tettra.co/api/teams/2/pages


Related

  • API overview
Previous
API Endpoint: Search
Next
API Endpoint: Create a Question
Powered by Tettra