Skip to main content

API Testing

API Testing lets you send de-identification requests from the dashboard before you integrate Custodian Labs into an application.

Use this page to confirm that:

  • Your API key works.
  • Your endpoint is reachable.
  • Your selected privacy settings return the expected result.
  • Text and file de-identification behave as expected.

Open it here:

Open API Testing

Prerequisites

Before using API Testing, make sure you have:

  • A logged-in Custodian Labs account.
  • An active plan.
  • At least one generated API key.

If no API key appears in the selector, go to API Key Management or Managing Subscriptions.

Simple Mode

Simple mode is for quick browser-based testing without writing code.

Use Simple mode when you want to:

  • Paste text and see a protected result.
  • Upload one supported file.
  • Choose common PII categories from the UI.
  • Switch between transformation behavior without editing JSON.

Simple mode supports:

  • Text input.
  • File upload.
  • API key selection.
  • PII category selection.
  • Masking type selection.
  • Results preview.
  • Download output for supported file responses.

Advanced Mode

Advanced mode is for users who want to test a specific request shape.

Use Advanced mode when you want to:

  • Enter a specific API endpoint.
  • Edit the JSON request body.
  • Test a custom payload.
  • Inspect the raw response.

This mode is useful when you are preparing an integration and want the dashboard request to match your application request more closely.

Test Text

To test text de-identification:

  1. Open API Testing.
  2. Select an API key.
  3. Choose text input.
  4. Paste sample text that contains sensitive data.
  5. Choose what to protect.
  6. Choose how to handle the detected data.
  7. Send the request.
  8. Review the result.

Example test text:

Patient Maria Chen called from maria.chen@example.com on 415-555-0198. She lives at 24 Market Street, San Francisco.

Test a File

To test file de-identification:

  1. Open API Testing.
  2. Select an API key.
  3. Choose file upload.
  4. Upload one supported file.
  5. Choose the PII categories and transformation behavior.
  6. Send the request.
  7. Download or inspect the returned result.

Supported file types include:

  • .csv
  • .doc
  • .docx
  • .pdf
  • .txt

For endpoint-level details, see File Endpoints.

Privacy Settings

API Testing exposes the same high-level privacy choices used by the API.

Common options include:

  • Person
  • Age
  • Location / Address
  • Date
  • Account / ID Number
  • Credit Card
  • Phone Number
  • Email Address
  • All PII

For a fuller list of detectable data types, see Supported Entities.

Transformation Behavior

The dashboard may let you choose how detected data is handled.

For example:

  • transform uses Custodian Labs' proprietary de-identification algorithm.
  • redact removes or masks sensitive values more directly.

For conceptual differences, see Transform and Redact / Masking / Placeholder.

Common Issues

If the request fails:

  • Confirm an API key is selected.
  • Confirm the API key is active.
  • Confirm your plan has remaining credits and requests.
  • Confirm the text endpoint is configured if using text testing.
  • Confirm the uploaded file type is supported.
  • Confirm the request body is valid JSON in Advanced mode.

For API-level errors, see Error Responses.

Examples

Dashboard API Testing demo