Lead360Support

Response contracts and data handling

Validate Lead360 REST and MCP response envelopes, distinguish protocol errors from tool errors, minimize returned customer data, and keep authenticated responses out of shared caches and unsafe logs.

How this fits into Lead360Explore the Lead360 platformConnect API and MCP access with the agency, tenant, scope, and risk model.
Lead360 workflow mapResponse contracts and data handling
  1. 01

    REST response envelopes

  2. 02

    MCP response envelopes

  3. 03

    Cache and log controls

  4. 04

    Downstream data responsibilities

A visual sequence for completing Response contracts and data handling in the intended Lead360 business context.

REST response envelopes

Status returns authentication and tenant metadata. Operation search returns operations, count, location identifier, and public key identifier. Operation description returns one typed contract. Direct execution returns the operation key, credential location, direct_read execution mode, and a structured result from the reviewed tenant adapter.

Error responses place a stable code and message inside the HTTP detail object. Clients should branch on the HTTP status and structured code, not on a full English message that may improve over time.

MCP response envelopes

Successful JSON-RPC responses contain jsonrpc, the matching request id, and result. Protocol failures contain an error object. A tools/call request can return a valid JSON-RPC result where the MCP tool payload has isError true, textual content, and a structuredContent error code and message.

Preserve request IDs in the client for correlation, but do not use customer identifiers or secret values as request IDs. Validate that a response ID matches the outstanding request before processing the result.

Cache and log controls

  • Authenticated responses use Cache-Control: no-store, max-age=0.
  • Do not place private responses in a shared CDN, browser cache, analytics event, or public error page.
  • Redact Authorization headers before logs, traces, and support exports.
  • Log operation keys and error codes instead of complete customer records.
  • Restrict diagnostic access and apply a short operational retention period.
  • Remove temporary debug logging immediately after the issue is resolved.

Downstream data responsibilities

A successful API response does not make every downstream use lawful or appropriate. The customer controls why the integration retrieves data, which destination receives it, who can access it, how long it remains, whether consent or notice is required, and how access, correction, export, suppression, legal hold, and deletion requests are completed.

Use field allowlists, encryption, access logging, regional and vendor review, retention enforcement, and deletion verification appropriate to the data. Avoid using API or MCP results for medical, legal, financial, employment, housing, credit, or other consequential decisions without the safeguards and human review required by applicable law.

Validate result shape and meaning

Check that the result is an object and that required fields have the documented types before updating a downstream system. Treat missing optional fields as unknown, not false or zero. Preserve source timestamps and identifiers needed for reconciliation, but do not store extra fields simply because they were returned.

A successful transport response does not guarantee that the source record is complete, current, or suitable for a business decision. Compare relevant timestamps, handle duplicates, identify partial pages or limits, and require human review when a missing or stale value could affect a person.

Frequently asked questions

Can I cache operation metadata?

Public display metadata may be cached briefly, but refresh it after token, scope, service, registry, or version changes. Do not cache authenticated customer results in shared systems.

Why can tools/call return isError inside an HTTP 200 response?

The JSON-RPC exchange succeeded while the requested tool operation failed validation, policy, approval, scope, or execution checks.

Who controls retention of exported API data?

The Lead360 customer and integration owner must define and enforce an appropriate purpose, destination, access, retention, and deletion process.

Continue with Lead360

Use this workflow in Lead360

Put this guide into practice with a 14-day free trial of Lead360 Pro early access, or continue learning through the related collection.

Try Early AccessLearn more about Developer Platform