production, ci-cd-pipeline, staging)
⚠️ Security Warning: Never commit tokens to version control or expose them in client-side code.
Your unique API endpoint URL is displayed in the API Token Management page under "API Documentation" section.
Example:
https://yamuno-test.atlassian.net/wiki/apps/ab418ef5-23d6-40b6-bfae-9a9a3c977f32/b2653bbd-8dc5-4398-baf5-bdf02c455308/webtrigger
curl -X POST "$CONFLUENCE_API_ENDPOINT" \
-H "Authorization: Bearer $CONFLUENCE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"spaceId": "DOCS",
"parentId": "123456789",
"pageTitle": "My First API Page",
"content": "# Hello World\n\nThis is my first API-created page!\n\n## Features\n\n- Easy to use\n- Fast deployment\n- Automatic conversion",
"overwrite": false
}'
Success Response:
{
"body": "Success: Page created successfully"
}