Delete a package
Soft-deletes a package on a deal. Works on a template deal as well as a live deal.
Requires the api_deals_create scope.
Authorization
bearerAuth Bearer token using a Clai API key secret (clai_live_*).
In: header
Path Parameters
| Name | Type | Description |
|---|---|---|
orgIdrequired | string | Organization ID the key is operating in |
dealIdrequired | string | Deal ID that owns the package Format uuid |
packageIdrequired | string | Package ID Format uuid |
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://app.goclai.com/api/v1/orgs/org_2abc123/deals/550e8400-e29b-41d4-a716-446655440010/packages/550e8400-e29b-41d4-a716-446655440011"{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}PATCHUpdate a package
Updates package fields (name only in v1). Set deal-level fields such as transactionType or amount when creating the deal with createDeal; updatePackage does not change them. Works on a template deal as well as a live deal; the response then includes isTemplate=true. Requires the `api_deals_create` scope.
GETList package participants
Returns the roster, send readiness, fieldCount, and prepareUrl. Each item includes needsContact when contact details are still required. Works on a template deal as well as a live deal; the response then includes isTemplate=true. Requires one of `api_deals_list` or `api_deals_create` or `api_deals_send`.