Find webhooks. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
integer
array<string>
boolean
returns a list of webhooks.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/webhooks' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"results": [
{
"name": "<string>",
"configuration": {},
"url": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"events": [
"<string>"
],
"scopeType": "<string>",
"active": true,
"sslVerificationRequired": true
}
],
"totalCount": 2154,
"start": 25,
"limit": 25,
"size": 25,
"_links": {
"base": "http://localhost:8085/confluence",
"context": "confluence",
"self": "http://localhost:8085/rest/api/latest/..?limit=25&start=25",
"next": "http://localhost:8085/rest/api/latest/..?limit=25&start=50",
"prev": "http://localhost:8085/rest/api/latest/..?limit=25&start=0"
}
}Create a webhook via the URL. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
the webhook to be created.
string
object
string
RestWebhookCredentials
object
array<string>
string
boolean
boolean
returns a created webhook.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
curl --request POST \
--url 'http://{baseurl}/confluence/rest/api/webhooks' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"configuration": {},
"url": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"statistics": {},
"events": [
"<string>"
],
"scopeType": "<string>",
"active": true,
"sslVerificationRequired": true
}'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"name": "<string>",
"id": 2154,
"scope": {
"id": "<string>",
"type": "<string>"
},
"active": true,
"configuration": {},
"url": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"events": [
{
"id": "<string>",
"i18nKey": "<string>"
}
],
"createdDate": "<string>",
"updatedDate": "<string>",
"sslVerificationRequired": true
}Get a webhook by id. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredboolean
returns a webhook.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/webhooks/{webhookId}' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"name": "<string>",
"configuration": {},
"url": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"events": [
"<string>"
],
"scopeType": "<string>",
"active": true,
"sslVerificationRequired": true
}Update an existing webhook. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredthe representation of the updated values for the webhook
string
object
string
RestWebhookCredentials
object
array<string>
string
boolean
boolean
returns a webhook.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/webhooks/{webhookId}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"configuration": {},
"url": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"statistics": {},
"events": [
"<string>"
],
"scopeType": "<string>",
"active": true,
"sslVerificationRequired": true
}'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"name": "<string>",
"configuration": {},
"url": "<string>",
"credentials": {
"username": "<string>",
"password": "<string>"
},
"events": [
"<string>"
],
"scopeType": "<string>",
"active": true,
"sslVerificationRequired": true
}Delete a webhook via the URL. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredreturned if deleted successfully.
1
2
curl --request DELETE \
--url 'http://{baseurl}/confluence/rest/api/webhooks/{webhookId}'Get the latest invocations for a specific webhook. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
string
array<string>
returns a webhook invocation dataset.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/webhooks/{webhookId}/latest' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"result": {
"description": "<string>",
"outcome": "ERROR"
},
"request": {
"headers": {},
"body": "<string>",
"method": "GET",
"url": "<string>"
},
"id": "<string>",
"duration": {
"seconds": 2154,
"zero": true,
"nano": 2154,
"negative": true,
"positive": true,
"units": [
{
"durationEstimated": true,
"duration": {
"seconds": 2154,
"zero": true,
"nano": 2154,
"negative": true,
"positive": true
},
"timeBased": true,
"dateBased": true
}
]
},
"event": {
"id": "<string>",
"i18nKey": "<string>"
},
"eventScope": {
"id": "<string>",
"type": "<string>"
},
"finish": "<string>",
"start": "<string>"
}Get the statistics for a specific webhook. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
returns a webhook invocation dataset.
RestInvocationHistory
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/webhooks/{webhookId}/statistics' \
--header 'Accept: application/json'Get the statistics summary for a specific webhook. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredreturns a webhook invocation dataset.
RestInvocationHistory
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/webhooks/{webhookId}/statistics/summary' \
--header 'Accept: application/json'Test connectivity to a specific endpoint. The authenticated user must be an administrator to call this resource.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredreturns a webhook.
any
1
2
3
curl --request POST \
--url 'http://{baseurl}/confluence/rest/api/webhooks/test?url={url}' \
--header 'Accept: application/json'Rate this page: