URL paths

/v1/charges/90421 and /v1/charges/90422 are the same endpoint, so the SDK turns the path into a template before it fingerprints anything. This happens in your process: a segment that becomes {id} is never sent.

Automatic ID grouping

Each segment is judged on its own. A segment becomes {id} when it is entirely digits, shaped like a UUID, or 16 or more hexadecimal characters. Every other segment is sent as written: /users/jane-doe stays /users/jane-doe, and a prefixed identifier like ch_3Nk9Qb does not collapse on its own.

This is the project setting Group IDs in paths automatically, on by default. Some APIs use numbers as route words, so /reports/2024 becomes /reports/{id} and every year lands in one request type. If that is wrong for your API, an org admin can turn the setting off on the Request Types page. With it off, only your own patterns group paths, and every other path, including /orders/123, is sent as written. Both SDKs and replay read the setting from your project, so capture and replay always agree. Running SDKs pick up a change at their next rules sync, within 60 seconds by default.

Everything else is sent as written

A path segment is part of the request line, not a body value, so it is not masked. An endpoint shaped like /users/ana@example.com sends the address to Stubsmith, and nothing on the server catches it, because Stubsmith does not scan captures for personal data. Keep personal data out of paths, or set a pattern for every route that carries it.

Setting a pattern

Open the request type in the dashboard and set its pattern, for example /users/{username}/orders. A segment written as {name} is a wildcard. A pattern takes precedence over automatic grouping. When several patterns match a path, only those with the same number of segments count, and the one with the most literal segments wins, ties broken alphabetically.

  • Running SDKs pick up the pattern at their next rules sync, within 60 seconds by default. Until then, those requests arrive with the segment as written, and are stored under the pattern.
  • The request types it matches are folded into one, and the raw values in its wildcard segments are removed from Stubsmith's database.
  • A kept body field or header that contains the URL, such as a Location header, still holds it. A pattern covers the request path only.
  • Database backups keep the old values until they expire, after 3 days.

Pattern suggestions

Automatic grouping cannot recognise slugs or short codes. When many request types differ only in one path segment (20 by default), the Request Types page suggests a pattern with that segment as a wildcard, and shows how many request types it folds and a few example values. The suggestion comes from the shape of your traffic, never from what a value looks like. An org admin can accept it, which sets the pattern as above, or dismiss it, so the same pattern is not suggested again. Nothing changes until you accept. The values that produced the suggestion have already reached Stubsmith; accepting removes them.

One more consequence worth planning for: the digest covers the request's key-paths and query-parameter names, so an optional field that is present in one request and absent in the next produces two fingerprints. An endpoint with five optional filters can produce many shapes, which is worth knowing on Free, where the cap is 50. If you are near the cap, approve the shapes you care about and check the fingerprint list for near-duplicates that differ only by an optional parameter.