Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get latest invocations

Get the latest invocations for a specific webhook. The authenticated user must be an administrator to call this resource.

GET/rest/api/webhooks/{webhookId}/latest
Path parameters
webhookIdstringrequired

id of the webhook

Query parameters
outcomesstring

the outcome to filter for. Can be SUCCESS, FAILURE, ERROR. None specified means that the all will be considered.

eventstring

the string id of a specific event to retrieve the last invocation for.

outcomestring[]
Responses
200

returns a webhook invocation dataset.

resultDetailedInvocationResult
Show properties
descriptionstring
outcomestring
Allowed:ERRORFAILURESUCCESS
requestDetailedInvocationRequest
Show properties
headersobject
bodystring
methodstring
Allowed:GETPOSTPUTDELETEOPTIONSHEAD
urlstring
finishstring<date-time>
eventScopeWebhookScope
Show properties
idstring
min length 0 · max length 255
typestring
min length 0 · max length 255
idstring
durationobject
Show properties
secondsinteger<int64>
zeroboolean
nanointeger<int32>
negativeboolean
unitsobject[]
Show properties
Array of object
durationEstimatedboolean
durationobject
Show properties
secondsinteger<int64>
zeroboolean
nanointeger<int32>
negativeboolean
timeBasedboolean
dateBasedboolean
eventWebhookEvent
Show properties
idstring
i18nKeystring
startstring<date-time>
401

returned if the currently authenticated user has insufficient permissions to get webhook.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

returned if the webhook does not exist.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/webhooks/string/latest' \
  -H 'Accept: application/json'
Response
{
  "result": {
    "description": "string",
    "outcome": "ERROR"
  },
  "request": {
    "headers": {},
    "body": "string",
    "method": "GET",
    "url": "string"
  },
  "finish": "2019-08-24T14:15:22Z",
  "eventScope": {
    "id": "string",
    "type": "string"
  },
  "id": "string",
  "duration": {
    "seconds": 0,
    "zero": true,
    "nano": 0,
    "negative": true,
    "units": [
      {
        "durationEstimated": true,
        "duration": {
          "seconds": 0,
          "zero": true,
          "nano": 0,
          "negative": true
        },
        "timeBased": true,
        "dateBased": true
      }
    ]
  },
  "event": {
    "id": "string",
    "i18nKey": "string"
  },
  "start": "2019-08-24T14:15:22Z"
}

Was this page helpful?