Skip to content

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
Shell
# 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"
NameInTypeDescription
delivery requiredpathstring

Pattern ^dlv_[0-9A-Za-z]+$

The delivery, waiting for its first new attempt

Response fields

Content type application/json

  • id string required

    The delivery, dlv_…

  • integration_id string required

  • event_id string required

    The same for every attempt and resend

  • event_type string required

  • repository IntegrationRepository required

    repository fields
    • id string required

    • full_name string required

  • test boolean required

    Always false here: test events are not listed

  • status string required

    New statuses may be added; tolerate one you do not know

    One of pending, succeeded, failed, revoked, expired, skipped

  • last_error string or null required

  • attempts array of DeliveryAttempt required

    attempts fields
    • attempt integer required

    • resend boolean required

    • started_at string (date-time) required

    • outcome string required

      One of succeeded, retrying, failed, revoked

    • status_code integer or null required

    • response_body string or null required

      The start of an HTTPS endpoint's answer, at most 1 KB

    • error string or null required

  • created_at string (date-time) required

  • updated_at string (date-time) required

Example responses

Link to this section

Delivery 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": []
}
400 · The request is not valid

Error response fields

401 · A valid bearer token is required

Error response fields

402 · The workspace's plan does not include this

Error response fields

403 · The credential's scopes do not allow this

Error response fields

404 · Not found

Error response fields

426 · Upgrade the CLI: run theseus update

Error response fields

429 · Too many requests

Headers

  • Retry-After integer

    Seconds to wait before the next request, when known

Error response fields

500 · Theseus could not complete the request; retrying will not help

Error response fields

503 · Theseus is unavailable; retry the same request

Headers

  • Retry-After integer

    Seconds to wait before the next request, when known

Error response fields

Error response fields

Content type application/problem+json

  • type string (uri) required

    Identifies the problem type; branch on code instead

  • title string required

  • status integer required

  • detail string

  • code string required

    Why 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_required

  • request_id string required

    Quote this when reporting the problem

  • errors array of FieldError

    With invalid_request: what is wrong with each field

    errors fields
    • path string required

      Where in the request, as dotted segments

    • message string required

  • required_scope string

    With insufficient_scope: the scope the operation needs

  • next string

    Recovery action, such as theseus update

  • candidates array of Candidate

    With ambiguous: what the request could mean; ask which

    candidates fields
    • id string required

    • path string required

    • kind string required

    • title string required

    • url string (uri) required