「J. Antunes」の回答は正しいですが、 APIや pageId などを見つけるのに時間がかかりました。
ステップ 1: Confluence で API トークンを生成します。
合流ページで、[設定] に移動し、[パスワード] をクリックします。「API トークンの作成と管理」をクリックして、トークンを取得します。{トークン}

ステップ 2: 子ページを作成する親ページを見つける
親ページ ID の取得に移動し、 {親ページ ID}を見つけます。
ステップ 3: スペース キーを取得する
合流点で、スペース設定に移動し、記載されているスペース キーを見つけます。{スペースキー}

ステップ 4: コードの作成を開始する
import requests
import json
from requests.auth import HTTPBasicAuth
# set auth token and get the basic auth code
auth_token = "{TOKEN}"
basic_auth = HTTPBasicAuth('{email you use to log in}', auth_token)
# Set the title and content of the page to create
page_title = 'My New Page'
page_html = '<p>This page was created with Python!</p>'
parent_page_id = {Parent Page ID}
space_key = '{SPACE KEY}'
# get the confluence home page url for your organization {confluence_home_page}
url = '{confluence_home_page}/rest/api/content/'
# Request Headers
headers = {
'Content-Type': 'application/json;charset=iso-8859-1',
}
# Request body
data = {
'type': 'page',
'title': page_title,
'ancestors': [{'id':parent_page_id}],
'space': {'key':space_key},
'body': {
'storage':{
'value': page_html,
'representation':'storage',
}
}
}
# We're ready to call the api
try:
r = requests.post(url=url, data=json.dumps(data), headers=headers, auth=basic_auth)
# Consider any status other than 2xx an error
if not r.status_code // 100 == 2:
print("Error: Unexpected response {}".format(r))
else:
print('Page Created!')
except requests.exceptions.RequestException as e:
# A serious problem happened, like an SSLError or InvalidURL
print("Error: {}".format(e))