{
  "x402Version": 2,
  "id": 72468,
  "slug": "saylorinnovations-api-text-pii-redact",
  "resource": "https://saylorinnovations.com/api/text/pii-redact",
  "description": "Redact personal data and secrets from text - emails, phones, Luhn-checked cards, IBANs, SSNs, IPs, wallet addresses, API keys, JWTs and private keys",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "redacted": {
        "type": "string",
        "description": "Text with each finding replaced"
      },
      "findings": {
        "type": "number",
        "description": "Issues or observations found"
      },
      "by_type": {
        "type": "object",
        "description": "Counts grouped by type"
      },
      "contains_secrets": {
        "type": "boolean",
        "description": "Contains secrets"
      },
      "risk": {
        "type": "string",
        "description": "Overall exposure level"
      },
      "items": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "start": {
              "description": "Start offset in the original text",
              "type": [
                "number",
                "null"
              ]
            },
            "end": {
              "description": "End offset in the original text",
              "type": [
                "number",
                "null"
              ]
            },
            "preview": {
              "description": "Masked preview of the value",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "description": "Type or kind"
            }
          }
        },
        "description": "List of items"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "redacted",
      "findings",
      "by_type"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "text": "Contact ann@example.com or +1 415-555-0132, card 4111 1111 1111 1111"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "redacted": "Contact [EMAIL] or [PHONE], card [CREDIT_CARD]",
            "findings": 3,
            "by_type": {
              "email": 1,
              "phone": 1,
              "credit_card": 1
            },
            "contains_secrets": false,
            "risk": "low",
            "items": [
              {
                "type": "email",
                "start": 8,
                "end": 23,
                "preview": "an…om"
              },
              {
                "type": "phone",
                "start": 27,
                "end": 42,
                "preview": "+1…32"
              },
              {
                "type": "credit_card",
                "start": 49,
                "end": 68,
                "preview": "41…11"
              }
            ],
            "note": "Pattern-based detection (cards are Luhn-checked, IBANs and SSNs validated). Names, addresses and free-text identifiers are not detected.",
            "source": "Rule-based PII and secret detection on the supplied text"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "Text to scan, up to 8000 characters"
                  }
                },
                "required": [
                  "text"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "redacted": {
                    "type": "string",
                    "description": "Text with each finding replaced"
                  },
                  "findings": {
                    "type": "number",
                    "description": "Issues or observations found"
                  },
                  "by_type": {
                    "type": "object",
                    "description": "Counts grouped by type"
                  },
                  "contains_secrets": {
                    "type": "boolean",
                    "description": "Contains secrets"
                  },
                  "risk": {
                    "type": "string",
                    "description": "Overall exposure level"
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "start": {
                          "description": "Start offset in the original text",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "end": {
                          "description": "End offset in the original text",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "preview": {
                          "description": "Masked preview of the value",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "type": {
                          "description": "Type or kind"
                        }
                      }
                    },
                    "description": "List of items"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "redacted",
                  "findings",
                  "by_type"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "redact personal data from text",
    "find credit card numbers in text",
    "mask emails and phone numbers",
    "detect api keys in a log line",
    "pii scrubber before sending"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.949Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text to scan, up to 8000 characters"
        }
      },
      "required": [
        "text"
      ]
    },
    "exampleResponse": {
      "redacted": "Contact [EMAIL] or [PHONE], card [CREDIT_CARD]",
      "findings": 3,
      "by_type": {
        "email": 1,
        "phone": 1,
        "credit_card": 1
      },
      "contains_secrets": false,
      "risk": "low",
      "items": [
        {
          "type": "email",
          "start": 8,
          "end": 23,
          "preview": "an…om"
        },
        {
          "type": "phone",
          "start": 27,
          "end": 42,
          "preview": "+1…32"
        },
        {
          "type": "credit_card",
          "start": 49,
          "end": 68,
          "preview": "41…11"
        }
      ],
      "note": "Pattern-based detection (cards are Luhn-checked, IBANs and SSNs validated). Names, addresses and free-text identifiers are not detected.",
      "source": "Rule-based PII and secret detection on the supplied text"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "text": "Contact ann@example.com or +1 415-555-0132, card 4111 1111 1111 1111"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "redacted": "Contact [EMAIL] or [PHONE], card [CREDIT_CARD]",
              "findings": 3,
              "by_type": {
                "email": 1,
                "phone": 1,
                "credit_card": 1
              },
              "contains_secrets": false,
              "risk": "low",
              "items": [
                {
                  "type": "email",
                  "start": 8,
                  "end": 23,
                  "preview": "an…om"
                },
                {
                  "type": "phone",
                  "start": 27,
                  "end": 42,
                  "preview": "+1…32"
                },
                {
                  "type": "credit_card",
                  "start": 49,
                  "end": 68,
                  "preview": "41…11"
                }
              ],
              "note": "Pattern-based detection (cards are Luhn-checked, IBANs and SSNs validated). Names, addresses and free-text identifiers are not detected.",
              "source": "Rule-based PII and secret detection on the supplied text"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "Text to scan, up to 8000 characters"
                    }
                  },
                  "required": [
                    "text"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "redacted": {
                      "type": "string",
                      "description": "Text with each finding replaced"
                    },
                    "findings": {
                      "type": "number",
                      "description": "Issues or observations found"
                    },
                    "by_type": {
                      "type": "object",
                      "description": "Counts grouped by type"
                    },
                    "contains_secrets": {
                      "type": "boolean",
                      "description": "Contains secrets"
                    },
                    "risk": {
                      "type": "string",
                      "description": "Overall exposure level"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "description": "Start offset in the original text",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "end": {
                            "description": "End offset in the original text",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "preview": {
                            "description": "Masked preview of the value",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "type": {
                            "description": "Type or kind"
                          }
                        }
                      },
                      "description": "List of items"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "redacted",
                    "findings",
                    "by_type"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/text/pii-redact?text=Contact%20ann%40example.com%20or%20%2B1%20415-555-0132%2C%20card%204111%201111%201111%201111",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "redacted": "string",
    "findings": 0,
    "by_type": {},
    "contains_secrets": true,
    "risk": "string",
    "items": [
      {
        "start": 0,
        "end": 0,
        "preview": "string",
        "type": null
      }
    ],
    "note": "string",
    "source": "string"
  }
}