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 tosubcategory_id
- optional - the subcategory to publish the page toExample:
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