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 pagetitle
- required - the title of the pagebody
- required - the body of the page formatted as HTMLcategory_id
- optional - the category to publish the page tosubcategory_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