Skip to content

External REST API

AutoPage provides a REST API that allows you to trigger rules from external systems such as CI/CD pipelines, scripts, or third-party tools.


The External REST API allows you to trigger a specific AutoPage rule for a given Jira issue by providing the rule ID and the issue ID.


Each rule can generate its own API key for authentication. The API key is a cryptographically secure, base64-encoded token.

  1. Open the rule configuration in Jira.
  2. Enable the Incoming Webhook trigger.
  3. The API key and endpoint URL are displayed in the trigger configuration.

All API requests must include the API key in the x-autopage-api-key HTTP header:

x-autopage-api-key: <your-api-key>

Requests without a valid API key will receive a 403 Forbidden response.


Triggers a specific rule for a specific Jira issue.

URL Format:

{webTriggerUrl}?method=triggerRule&ruleId={ruleId}&issueId={issueId}
ParameterDescription
webTriggerUrlThe base URL displayed in the rule’s webhook trigger configuration.
ruleIdThe ID of the AutoPage rule to trigger.
issueIdThe Jira issue ID or key (e.g., PROJ-123 or 10001).

Terminal window
curl -X POST "{webTriggerUrl}?method=triggerRule&ruleId=abc123&issueId=PROJ-42" \
-H "x-autopage-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

AutoPage integrates directly with Jira Automation via the webhook trigger. This allows you to leverage Jira Automation’s powerful rule engine for advanced trigger conditions like “Version released”, “Sprint finished”, or “Pull request approved”.

You can trigger AutoPage from your CI/CD pipeline to generate or update documentation pages when code is deployed:

  1. Store the API key as a secret in your CI/CD system.
  2. Add a pipeline step that calls the AutoPage API with the relevant issue ID.
  3. The Confluence page will be created or updated based on the rule configuration.

Any system capable of making HTTP requests can trigger AutoPage rules. Use the endpoint URL and API key as described above.