Resend a delivery
Send a delivery again under the same event ID (owners and admins)
POST /api/v1/deliveries/{delivery}/resend
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 POST \
-H "Authorization: Bearer ${THESEUS_API_TOKEN:?}" \
"${API_BASE_URL}/deliveries/${DELIVERY_ID:?}/resend"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
delivery required | path | string | Pattern |
Responses
Link to this sectionThe delivery, waiting for its first new attempt
Response fields
Content type application/json
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
Example responses
Link to this sectionDelivery queued again
Illustrative response · selected fields
{
"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": "pending",
"last_error": null,
"attempts": []
}Errors
Link to this section400 · The request is not valid
401 · A valid bearer token is required
402 · The workspace's plan does not include this
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