Skip to content
LeadMCPDocs

The envelope

Every success answer has the same shape.

The success envelope. Every success response carries it.

Envelope fields

okbooleanrequired

True on every success response.

request_idstringrequired

The id of this request. Send the request_id to support@leadmcp.ai.

releasestringrequired

The build id that served this response.

dataanyoptional

The payload of the route. The shape depends on the route.

pagePageoptional

The paging block. Present on a paged route.

Show child attributes

returnedintegerrequired

The number of rows in this page.

limitintegerrequired

The page size the request asked for.

totalinteger or nullrequired

The total number of matching rows, or null when the count did not finish inside its budget.

next_cursorstring or nullrequired

The cursor for the next page, or null on the last page.

quotaQuotarequired

The quota block. Every response carries it, one shape for each plan, told apart by unlimited. Field names are frozen.

Show child attributes

FreeQuotaFreeQuotaoptional

The free plan's quota block: a one-time grant of 1,000 contact credits for the life of the account.

Show child attributes

planstringrequired

The plan slug this account is on.

contact_credits_usedintegerrequired

The contact credits this request spent. A count, a schema read or a miss spends zero.

unlimitedbooleanrequired

Always false on the free plan.

grantedintegerrequired

The one-time grant of the free plan, for the life of the account. It does not reset.

usedintegerrequired

The contact credits the account spent, in total, this request included.

remainingintegerrequired

The contact credits left of the grant, never below zero.

UnlimitedQuotaUnlimitedQuotaoptional

The paid plan's quota block: contact credits are unlimited, and the block names the usage only.

Show child attributes

planstringrequired

The plan slug this account is on.

contact_credits_usedintegerrequired

The contact credits this request spent. A count, a schema read or a miss spends zero.

unlimitedbooleanrequired

Always true on the paid plan.

used_this_monthintegerrequired

The contact credits spent in the current billing month, this request included. A paid plan's month starts on its billing date each month; without a subscription it is the UTC calendar month.

used_todayintegerrequired

The contact credits spent in the current UTC day, this request included.

resets_atstringrequired

The RFC 3339 UTC time at which used_this_month starts again at zero: the next billing date, or the start of the next UTC month without a subscription.

warningsarray of Warningrequired

Non fatal notes about this response. Empty on a clean call.

Show child attributes

codeenumrequired

The warning code.

count_unavailableno_rowsexport_truncatedduplicate_work_emailduplicate_linkedinoff_domaindeprecatedmax_followers_missing

messagestringrequired

One sentence a developer can read.

hintstringoptional

The suggested next action, for example to remove one key and count again.

keys_appliedarray of stringoptional

On no_rows, the filter keys that were applied. On off_domain, the inputs we hold at another employer.

resets_atstringoptional

On export_truncated, present only when a contact credit cap cut the job: the RFC 3339 UTC time at which the cap that cut the job resets. On the free plan the pool never resets, and the field is 9999-12-31T23:59:59.000Z; the hint then says the pool is spent and points to the upgrade. get_export can also return export_truncated, with no resets_at, when max_rows_per_company kept fewer rows than rows_to_export; only exported rows are charged.

page

The paging block. Present on a paged route.

returnedintegerrequired

The number of rows in this page.

limitintegerrequired

The page size the request asked for.

totalinteger or nullrequired

The total number of matching rows, or null when the count did not finish inside its budget.

next_cursorstring or nullrequired

The cursor for the next page, or null on the last page.

quota

The quota block. Every response carries it, one shape for each plan, told apart by `unlimited`. Field names are frozen.

FreeQuotaFreeQuotaoptional

The free plan's quota block: a one-time grant of 1,000 contact credits for the life of the account.

Show child attributes

planstringrequired

The plan slug this account is on.

contact_credits_usedintegerrequired

The contact credits this request spent. A count, a schema read or a miss spends zero.

unlimitedbooleanrequired

Always false on the free plan.

grantedintegerrequired

The one-time grant of the free plan, for the life of the account. It does not reset.

usedintegerrequired

The contact credits the account spent, in total, this request included.

remainingintegerrequired

The contact credits left of the grant, never below zero.

UnlimitedQuotaUnlimitedQuotaoptional

The paid plan's quota block: contact credits are unlimited, and the block names the usage only.

Show child attributes

planstringrequired

The plan slug this account is on.

contact_credits_usedintegerrequired

The contact credits this request spent. A count, a schema read or a miss spends zero.

unlimitedbooleanrequired

Always true on the paid plan.

used_this_monthintegerrequired

The contact credits spent in the current billing month, this request included. A paid plan's month starts on its billing date each month; without a subscription it is the UTC calendar month.

used_todayintegerrequired

The contact credits spent in the current UTC day, this request included.

resets_atstringrequired

The RFC 3339 UTC time at which used_this_month starts again at zero: the next billing date, or the start of the next UTC month without a subscription.

warnings

One non fatal note on a successful response.

codeenumrequired

The warning code.

count_unavailableno_rowsexport_truncatedduplicate_work_emailduplicate_linkedinoff_domaindeprecatedmax_followers_missing

messagestringrequired

One sentence a developer can read.

hintstringoptional

The suggested next action, for example to remove one key and count again.

keys_appliedarray of stringoptional

On no_rows, the filter keys that were applied. On off_domain, the inputs we hold at another employer.

resets_atstringoptional

On export_truncated, present only when a contact credit cap cut the job: the RFC 3339 UTC time at which the cap that cut the job resets. On the free plan the pool never resets, and the field is 9999-12-31T23:59:59.000Z; the hint then says the pool is spent and points to the upgrade. get_export can also return export_truncated, with no resets_at, when max_rows_per_company kept fewer rows than rows_to_export; only exported rows are charged.

The codes are listed on Errors and warnings.