Docs

Pacts

Delete a draft

Delete a pact that was never sent. A sent pact is voided instead, so its record stays.

DELETE/v1/pacts/{uid}

Authorization

Authorizationstringheaderrequired
Bearer followed by your API key: Bearer sgk_…. The key also works in an X-Api-Key header. See Authentication.

Path parameters

uidstringpathrequired
The pact's 8-character id. Not case-sensitive.

Response

204 No ContentDeleted. There is no body.

Errors

StatusWhen
401 UnauthorizedThe API key is missing, wrong or revoked.
403 ForbiddenThe account's plan does not include API access (Pro and Business do).
404 Not FoundNo pact with that id belongs to your account.
409 ConflictThe pact is not a draft.

Every error body is { "error": "message" }. See Errors.