Admin API for read-time masking to hide or transform parts of traced data (spans and traces) as they are returned by the read APIs and UI. All requests require an accessKey and secretKey header pair; see the Authentication section for how to generate these.

Server
https://{host}/aio/api/v1/private/aio
Server Variables

API access key generated from the ADOC UI. Both accessKey and secretKey are required on every request. To generate a key pair, see API Keys.

Fields
KeyIn
accessKeyHeader

API secret key generated from the ADOC UI, paired with accessKey. To generate a key pair, see API Keys.

Fields
KeyIn
secretKeyHeader

Masking Rules

Create, list, update, and delete read-time masking rules for spans and traces.

List Masking Rules

List all rules in the workspace (enabled and disabled).

Auth
GET /masking-rules
Copy
Responses
200

A list of masking rules.

arrayarray
namestring

Unique, descriptive name for the rule.

entityKindstring

Type of entity the rule applies to.

Enum: SPAN,TRACE

actionstring

DROP_AND_REWIRE removes matching entities and reconnects the trace around them. REDACT replaces matched field content in place.

Enum: DROP_AND_REWIRE,REDACT

filtersarray[object]

Conditions that determine which entities the rule matches.

fieldstring

Field on the entity to filter on.

operatorstring

Comparison operator, for example "=".

valuestring

Value to compare the field against.

patchesarray[object]

Field-level redaction patches. Required when action is REDACT; empty for DROP_AND_REWIRE.

fieldstring

Field to patch, for example INPUT or OUTPUT.

jsonPathstring

JSONPath expression identifying the portion of the field to patch.

idstring

Unique identifier of the rule.

enabledboolean

Whether the rule is currently active.

401

The accessKey/secretKey pair is missing or invalid.

Response
Copy

Create Masking Rule

Create a new masking rule that either drops matching spans, rewires the trace around them, or redacts specific fields within matching entities.

Auth
Request Body
objectobject
namestring

Unique, descriptive name for the rule.

entityKindstring

Type of entity the rule applies to.

Enum: SPAN,TRACE

actionstring

DROP_AND_REWIRE removes matching entities and reconnects the trace around them. REDACT replaces matched field content in place.

Enum: DROP_AND_REWIRE,REDACT

filtersarray[object]

Conditions that determine which entities the rule matches.

fieldstring

Field on the entity to filter on.

operatorstring

Comparison operator, for example "=".

valuestring

Value to compare the field against.

patchesarray[object]

Field-level redaction patches. Required when action is REDACT; empty for DROP_AND_REWIRE.

fieldstring

Field to patch, for example INPUT or OUTPUT.

jsonPathstring

JSONPath expression identifying the portion of the field to patch.

POST /masking-rules
Copy
Responses
201

The masking rule was created.

objectobject
namestring

Unique, descriptive name for the rule.

entityKindstring

Type of entity the rule applies to.

Enum: SPAN,TRACE

actionstring

DROP_AND_REWIRE removes matching entities and reconnects the trace around them. REDACT replaces matched field content in place.

Enum: DROP_AND_REWIRE,REDACT

filtersarray[object]

Conditions that determine which entities the rule matches.

fieldstring

Field on the entity to filter on.

operatorstring

Comparison operator, for example "=".

valuestring

Value to compare the field against.

patchesarray[object]

Field-level redaction patches. Required when action is REDACT; empty for DROP_AND_REWIRE.

fieldstring

Field to patch, for example INPUT or OUTPUT.

jsonPathstring

JSONPath expression identifying the portion of the field to patch.

idstring

Unique identifier of the rule.

enabledboolean

Whether the rule is currently active.

400

The request body was invalid.

401

The accessKey/secretKey pair is missing or invalid.

Response
Copy

Toggle Rule Status (Enable/Disable)

Enable or disable an existing masking rule without deleting it.

Auth
Request Body
objectobject
enabledboolean

Whether the rule should be active.

PATCH /masking-rules/{ruleId}
Copy
Responses
200

The updated masking rule.

objectobject
namestring

Unique, descriptive name for the rule.

entityKindstring

Type of entity the rule applies to.

Enum: SPAN,TRACE

actionstring

DROP_AND_REWIRE removes matching entities and reconnects the trace around them. REDACT replaces matched field content in place.

Enum: DROP_AND_REWIRE,REDACT

filtersarray[object]

Conditions that determine which entities the rule matches.

fieldstring

Field on the entity to filter on.

operatorstring

Comparison operator, for example "=".

valuestring

Value to compare the field against.

patchesarray[object]

Field-level redaction patches. Required when action is REDACT; empty for DROP_AND_REWIRE.

fieldstring

Field to patch, for example INPUT or OUTPUT.

jsonPathstring

JSONPath expression identifying the portion of the field to patch.

idstring

Unique identifier of the rule.

enabledboolean

Whether the rule is currently active.

401

The accessKey/secretKey pair is missing or invalid.

404

No rule exists with the given ruleId.

Response
Copy

Delete Masking Rule

Delete a rule permanently from the workspace.

Auth
DELETE /masking-rules/{ruleId}
Copy
Responses
204

The rule was deleted.

No response body
401

The accessKey/secretKey pair is missing or invalid.

404

No rule exists with the given ruleId.

Response
Copy