Skip to content

B2B Leads API Debugging: Logs, Payloads and Field Mapping

Debug a B2B lead API pipeline by tracing requests, inspecting responses and checking destination field maps.

Dievio Team · Growth Systems · September 27, 2026 · 4 min read

An investigator follows a bright record thread from a request envelope through a mapping joint to a destination, exposing the point to inspect.

Key points

  • Capture a small case with an explicit expected operation.
  • Trace source responses through transformation and destination state.
  • Verify recovery and reconcile affected jobs after fixing the cause.

Debug a lead API integration by finding the first boundary where the observed result differs from the intended one. A successful HTTP response, a useful record and a completed CRM update are three separate outcomes.

Capture a small reproducible case before changing filters, credentials or retry settings. This workflow is for troubleshooting an existing integration; use the testing guide when building fixtures and initial contract checks.

Write down the expected operation

Record the endpoint, method, audience, page state and expected destination action. State the failure in observable terms: rejected credential, empty result array, unexpected field, repeated record or missing destination write.

A description such as “enrichment is broken” hides several possibilities. The request may be using an unsupported input, the source may have no available field, or a CRM mapping may have discarded the value.

  • What input does the documented operation accept?
  • What exact response or outcome was expected?
  • What actually happened, and at which stage?
  • When did the behavior first change?

Check the request at the application boundary

For Dievio public search, confirm POST https://dievio.com/api/public/search, a JSON body and the bearer API key held on the backend. Verify the deployed configuration without exposing its value.

Use supported filter names and value formats. Numeric pagination uses _page and _per_page; max_results bounds the job. Do not copy a generic cursor or enrichment example into this route and assume the server interprets it as intended.

The filter guide covers audience design. For a suspected field-name error, compare the actual serialized request with the current API documentation, not only the object shown in your code editor.

Inspect the response before the mapping layer

Questions to ask before blaming the destination
ObservationCheck
Non-success HTTP statusStatus, content type and redacted response message
Success but no recordsAudience filters, available coverage and stop state
Record present, field missingActual field availability, nulls and requested operation
Unexpected page behaviorFilters, requested versus effective size and stored checkpoint
Repeated recordsRepeated source requests, changing results and identity rules

The public search record array is preview_data. Inspect it before transformation. A field that is absent in the source cannot be recovered by renaming a destination column.

Use the error reference for current public-search failures. Do not require an invented nested error code or request identifier in order to log a useful diagnosis.

Dievio

Your workflow. Powered by Dievio.

Bring B2B contact search and LinkedIn enrichment into the tools you already use.

Explore Dievio API

Search contacts · Enrich profiles · Export results

Dievio APIExample
POST /api/public/search{ "job_titles": ["Founder"], "max_results": 10 }
Contacts ready for your workflow

Reduce the case without hiding the failure

  1. Start from the saved failing request definition.
  2. Use a fixture to reproduce parser, mapping or validation failures without another retrieval.
  3. When a live contract test is needed, choose a small explicit result cap.
  4. Change one request variable at a time and record the result.
  5. Retain both the original observation and the reduced case.

Trace the record through transformation

Compare the saved source value, transformed internal value and destination payload. Check type conversion, empty-string handling, null overwrite rules and field ownership. A normalization rule can silently erase a usable value if it assumes a format the source does not guarantee.

Keep identity review conservative. A similar name and company do not always identify the same person. The normalization workflow and field-mapping guide address those stages separately.

Inspect destination acceptance and final state

Capture the destination's documented response and check whether it represents completed work or queued processing. Verify the target record under the expected matching rule instead of assuming an accepted request created the intended field update.

If retrieval succeeded and was stored, debug the destination from that saved response. Repeating the source search can add cost and change the evidence without fixing the original mapping error.

Close the investigation with a reproducible finding

Record the cause, affected jobs, correction and the case that now verifies the intended behavior. Include safe attempt references and timestamps for escalation, with credentials and unnecessary contact details removed.

Then check the recovery path: queued jobs, unresolved records and previously repeated writes may still need reconciliation. A corrected code path does not by itself repair every earlier delivery.

Keep reading

Build your first list.

100 free credits. No credit card required.

Start free