DELETE /shipments/{id}/share

Revoke the public tracking link

Revoke that page, so the link stops resolving.

The link stops resolving on the very next request. The record of who published it and when is kept, and revoking does not stop you minting a fresh link later. Idempotent and deliberately mute about which case it hit: already revoked, never shared and revoked just now all answer the same, because the alternative tells a caller whether a link existed.

Request

DELETE https://traqocontainer.com/api/v1/shipments/{id}/share

Authentication.

Your API key as a Bearer token: Authorization: Bearer YOUR_API_KEY.

Rate limit.Each API key gets 120 requests per minute by default; your key's own budget comes back in the X-RateLimit-* headers.Limits by plan.

Parameters

NameInTypeRequiredDescription
idpathstringYes

The shipment id (the name field from /shipments) OR the container / bill-of-lading number you track it by, e.g. HAMU2423388. Either works; the reference is the one a human will recognise in a support conversation.

Example request

curl -X DELETE "https://traqocontainer.com/api/v1/shipments/MSCU1234567/share" \
  -H "Authorization: Bearer YOUR_API_KEY"

Run it in the sandbox — no key, no account: the same request answers at https://traqocontainer.com/api/v1/sandbox/shipments/{id}/share with a schema-identical reply.

Responses

Example 200 body:

{
  "success": true,
  "data": {
    "revoked": true
  }
}
StatusMeaning
200

No live link remains for this shipment.

400

Bad request — check required parameters.

401

Invalid or missing API key.

403

Developer mode not enabled, or the feature is not on your plan.

404

Resource not found.

429

Rate limit exceeded — see the Retry-After header. The body names the plan the limit was computed from (plan, always the ORGANISATION’s plan, not the row your key hangs off) and what would raise it: upgrade with next_plan and next_limit_per_min, or contactUrl when there is no plan above yours. Exactly one of the two is present.

Error bodies and retry advice: Errors.