Withdraw the training choice only

DELETE/api/v1/mailbox/ai/consent/training
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Turns off use of this mailbox's requests for model improvement while leaving the assistant itself consented. Idempotent.

Errors

Status When
401 No token, or the session expired or was signed out. Sign in again with POST /mailbox-auth/login.
403 The account has a temporary password: until POST /security/password succeeds, every other call answers this with error_code: password_change_required.

Request

DELETE/api/v1/mailbox/ai/consent/training
curl -X DELETE 'https://courier.mailyte.com/api/v1/mailbox/ai/consent/training' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'

Response

Successful Response

  • dataobject
    • document_urlstring
    • consent_idstring
200application/json
{
  "type": "success",
  "msg": "Training consent withdrawn",
  "data": {
    "document_url": "/api/v1/mailbox/ai/consent/01JABE/document",
    "consent_id": "01JABE"
  }
}

Returned inside the standard envelope.

Errors

StatusWhen
401No token, or the session expired or was signed out. Sign in again with `POST /mailbox-auth/login`.
403The account has a temporary password: until `POST /security/password` succeeds, every other call answers this with `error_code: password_change_required`.

Every status, with what causes it and what to do, is on the error reference.