Endpoint
Your unique API endpoint URL is displayed in the API Token Management page under “API Documentation” section.Request Format
HTTP Method
Headers
Request Body
Required Fields
| Field | Type | Description |
|---|---|---|
| spaceId | string | The ID or key of the Confluence space |
| parentId | string | The ID of the parent page |
| pageTitle | string | The title of the page to create/update |
| content | string | Markdown content to import |
Optional Fields
| Field | Type | Default | Description |
|---|---|---|---|
| overwrite | boolean | false | If true, updates existing page with same title and parent. If false, returns error if page exists |
Example Request Body
Response Codes
Success Responses
| Status Code | Response Key | Description |
|---|---|---|
| 201 | created | Page created successfully |
| 200 | updated | Page updated successfully (when overwrite is true) |
Error Responses
| Status Code | Response Key | Description | Solution |
|---|---|---|---|
| 400 | bad-request | Missing required fields or invalid format | Verify all required fields are present and valid |
| 400 | already-exists | Page with same title exists (when overwrite is false) | Set overwrite to true or use different title |
| 401 | unauthorized | Missing or invalid token | Check Authorization header format |
| 402 | license-expired | License inactive when token created | Contact admin to renew license |
| 403 | forbidden | Token expired | Create a new token |
| 404 | not-found | Parent page or space not found | Verify spaceId and parentId are correct |
| 500 | internal-error | Server error | Retry request, contact support if persists |
Finding Space and Page IDs
- Open Markdown Importer for Confluence in your Confluence instance
- Use the Space selector dropdown - the space ID will be visible when you select a space
- Use the Page selector dropdown to choose a parent page - the page ID will be displayed in the selection
Related Documentation
- Limitations - API usage limits and constraints
- Examples - Code samples in multiple languages
- Troubleshooting - Common issues and solutions
- Best Practices - Production recommendations
