Endpoints
The Endpoints field is an allow-list of API paths. Enter one per line, for example:
/rest/api/3/issue
/rest/api/3/search/jql
A blank field means every endpoint is allowed. The key list then shows All endpoints allowed.
Entries must start with /, and must be the path of the REST API as you would put it in the request's url (Confluence paths begin with /wiki).
The query string of a request (?a=b) is never part of the path comparison. How a path is matched against your entries differs between the two apps.
Jira
An entry matches the path itself and everything below it, but only on a path-segment boundary.
| Entry | Request path | Allowed? |
|---|---|---|
/rest/api/3/search | /rest/api/3/search | ✅ |
/rest/api/3/search | /rest/api/3/search/jql | ✅ |
/rest/api/3/search | /rest/api/3/searchfoo | ❌ |
/rest/api/3/issue | /rest/api/3/issue/DEV-1/comment | ✅ |
/rest/api/3/issue/ | /rest/api/3/issue | ✅ (a trailing slash is ignored) |
Placeholders
Use {name} for one path segment. A placeholder entry must match the whole path, so it does not allow sub-paths. The name is only a label; a placeholder matches letters, digits, _ and -.
| Entry | Request path | Allowed? |
|---|---|---|
/rest/api/3/issue/{key}/comment | /rest/api/3/issue/DEV-1/comment | ✅ |
/rest/api/3/issue/{key}/comment | /rest/api/3/issue/DEV-1/comment/10001 | ❌ |
/rest/api/3/issue/{key}/comment | /rest/api/3/issue/DEV-1/worklog | ❌ |
Rejected paths
For safety, requests with these paths are always rejected, whatever the key allows: dot segments (., ..), empty segments (//), backslashes, #, control characters, and the encoded sequences %2e, %2f, %5c, %00 and %25. This prevents escaping an allowed path with something like /rest/api/3/issue/../../project.
Entries are checked when you save
The app rejects the key, with an explanation, if an entry does not start with /, contains #, \ or control characters, or is a pinned entry with a problem. Blank lines are ignored and entries are trimmed.
Confluence
An entry must match the entire path. There is no sub-path matching, so every endpoint you want to allow needs its own line.
| Entry | Request path | Allowed? |
|---|---|---|
/wiki/rest/api/content | /wiki/rest/api/content | ✅ |
/wiki/rest/api/content | /wiki/rest/api/content/12345 | ❌ |
/wiki/rest/api/content/{id} | /wiki/rest/api/content/12345 | ✅ |
/wiki/rest/api/content/{id} | /wiki/rest/api/content/12345/child | ❌ |
{name}stands for one or more letters, digits or underscores (\w+).- Matching is not case-sensitive.
- Entries are treated as patterns, so write plain paths and
{placeholders}, and do not put characters like.,*,(or?in them. - Query strings in entries are not supported. Do not add
?...to an entry; the request's query string is ignored when matching. - Make sure there are no stray spaces at the end of a line.
Jira allows sub-paths automatically and checks for path tricks; Confluence requires an exact path per line and does not. If you move a restriction between the two, rewrite it.
Examples
Jira: a key that reads issues and searches
Methods: GET
/rest/api/3/issue
/rest/api/3/search/jql
Jira: a key that only adds comments
Methods: POST
/rest/api/3/issue/{key}/comment
Confluence: a key that reads pages and their attachments
Methods: GET
/wiki/rest/api/content
/wiki/rest/api/content/{id}
/wiki/rest/api/content/{id}/child/attachment
Confluence: CQL search only
Methods: GET
/wiki/rest/api/search