List deliveries
An integration's delivery log, for repositories you can see (owners and admins)
GET /api/v1/integrations/{integration}/deliveries
Personal token · webhooks:manage
Example request
Link to this section# Set your token and resource IDs first.
API_BASE_URL="https://app.theseus.dev/api/v1"
curl --fail-with-body --request GET \
-H "Authorization: Bearer ${THESEUS_API_TOKEN:?}" \
"${API_BASE_URL}/integrations/${INTEGRATION_ID:?}/deliveries"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
integration required | path | string | Pattern |
limit | query | integer | How many items to return, from 1 to 100 Default |
cursor | query | string | A previous page's next_cursor, with the same filtersMinimum length |
Responses
Link to this sectionDeliveries, newest event first
Response fields
Content type application/json
dataarray of Delivery requireddata fields
idstring requiredThe delivery,
dlv_…integration_idstring requiredevent_idstring requiredThe same for every attempt and resend
event_typestring requiredrepositoryIntegrationRepository requiredrepository fields
idstring requiredfull_namestring required
testboolean requiredAlways false here: test events are not listed
statusstring requiredNew statuses may be added; tolerate one you do not know
One of
pending,succeeded,failed,revoked,expired,skippedlast_errorstring or null requiredattemptsarray of DeliveryAttempt requiredattempts fields
attemptinteger requiredresendboolean requiredstarted_atstring (date-time) requiredoutcomestring requiredOne of
succeeded,retrying,failed,revokedstatus_codeinteger or null requiredresponse_bodystring or null requiredThe start of an HTTPS endpoint's answer, at most 1 KB
errorstring or null required
created_atstring (date-time) requiredupdated_atstring (date-time) required
next_cursorstring or null requiredhas_moreboolean required
Example responses
Link to this sectionDeliveries
Illustrative response · selected fields
{
"data": [
{
"id": "dlv_EXAMPLE",
"integration_id": "int_EXAMPLE",
"event_id": "evt_EXAMPLE",
"event_type": "guide.ready",
"repository": {
"id": "rep_EXAMPLE",
"full_name": "example/project"
},
"test": false,
"status": "succeeded",
"last_error": null,
"attempts": [
{
"attempt": 1,
"resend": false,
"outcome": "succeeded",
"status_code": 204,
"error": null
}
]
}
],
"next_cursor": null,
"has_more": false
}Errors
Link to this section400 · The request is not valid
401 · A valid bearer token is required
403 · The credential's scopes do not allow this
404 · Not found
426 · Upgrade the CLI: run theseus update
429 · Too many requests
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
500 · Theseus could not complete the request; retrying will not help
503 · Theseus is unavailable; retry the same request
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
Error response fields
Content type application/problem+json
typestring (uri) requiredIdentifies the problem type; branch on
codeinsteadtitlestring requiredstatusinteger requireddetailstringcodestring requiredWhy the request failed. New codes may be added: treat an unknown one by its status
One of
invalid_request,unauthenticated,not_in_plan,insufficient_scope,admission_required,not_found,ambiguous,conflict,rate_limited,internal_error,unavailable,search_authorization_pending,search_unavailable,cli_upgrade_requiredrequest_idstring requiredQuote this when reporting the problem
errorsarray of FieldErrorWith
invalid_request: what is wrong with each fielderrors fields
pathstring requiredWhere in the request, as dotted segments
messagestring required
required_scopestringWith
insufficient_scope: the scope the operation needsnextstringRecovery action, such as theseus update
candidatesarray of CandidateWith
ambiguous: what the request could mean; ask whichcandidates fields
idstring requiredpathstring requiredkindstring requiredtitlestring requiredurlstring (uri) required