AI consent history

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

Every consent decision, newest first.

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

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

Response

Successful Response

  • dataarray<object>
    • idstring
    • actionstring

      What was decided, e.g. accepted or withdrawn.

    • actorstring
    • atstring
    • terms_versionstring or null
    • included_trainingboolean
    • document_urlstring
200application/json
{
  "type": "success",
  "msg": "Consent history",
  "data": [
    {
      "id": "01JABC",
      "action": "accepted",
      "actor": "ada@yourdomain.com",
      "at": "2026-10-02T08:30:00+00:00",
      "terms_version": "2026-09",
      "included_training": false,
      "document_url": "/api/v1/mailbox/ai/consent/01JABC/document"
    }
  ]
}

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.