What is stored

For arlanix/api-monitor 1.0.1

What is stored

A retained log keeps time, protocol, method, path, route, addresses, user agent, store and user identifiers, HTTP status, duration and error flag, plus sanitised query details, selected headers and available request and response bodies.

Cart shows the full guest cart ID; IP and Forwarded IP need care behind proxies. See the screen reference for their meaning and displayed identities.

Removed content

API Monitor excludes authorization headers, cookies and unknown custom headers. REST and SOAP query parameter values are kept and cleaned like bodies; see the sanitisation rules for limits and exclusions. Credentials and payment secrets are masked in recognised locations. Sensitive endpoints omit bodies; see the path rules for what stays in Path.

Supported JSON and XML bodies are sanitised before storage. Saved content can show these replacements:

  • [removed] replaces a sensitive value.
  • "REMOVED" or REMOVED replaces GraphQL text or enum values; 0 replaces numbers.
  • [depth limit] marks deeply nested content.
  • [unparseable GraphQL omitted] marks an unreadable query.
  • Request errors show GraphQL request error [removed]; variable errors show Variable "$<name>" got invalid value [removed]. Other messages keep their text with quoted values masked, but single-quoted values without a closing quote and unquoted values can remain. GraphQL error [removed] appears if masking fails.

An omitted body shows Not stored: with a reason: Body exceeds configured limit, Scalar body, Unsupported or malformed body, Sensitive endpoint or GraphQL operation not parsed. See Sanitisation for rules and content states for empty or shortened content.

Personal data in saved bodies

Names, addresses, phone numbers and email addresses can remain in saved bodies. Saved bodies keep cart IDs; see the sanitisation rules. Payment request bodies keep the payer's address and email. These bodies are visible only with View API Bodies and are deleted when logs expire. Custom secrets can remain too. Sanitisation does not make a log anonymous.

The full guest cart ID in Path and Cart lets anyone with API Request Logs use that guest cart through the public REST API. Grant that permission only to staff who should have this access.

Personal metadata, including IP, Forwarded IP, User Agent and the user ID, stays until retention cleanup removes the request.

Review integration payloads before granting View API Bodies. Use Additional sensitive field names, for example firstname,lastname,street,telephone,postcode,email. This also covers values in custom attributes and search filters. Matching uses part of the name: email also matches customer_email. Short words can match unintended fields. Changes affect future captures only; see sanitisation rules.

Customer deletion leaves log content. Include API logs in data-deletion procedures; agree retention with those responsible for store data. Review copied content before sharing it.

Capture boundaries

Requests answered by a CDN, rejected before Magento API dispatch or lost when the process dies can leave no record. Storage failures leave no fallback body copy. See Capture and sanitisation.