Skip to content

WebUsageRecord

One metered call an agent’s web tools made: a page of search results, a page read, a direct download, or an image description. Recorded once, when the call succeeds; failed attempts are not charged and are not recorded. These calls also count towards a run’s usage.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
kindWebUsageKindWhat the call was for.
processTypeProcessTypeThe kind of run whose agent made the call.
processIduuidThe run (an interaction or code pipeline run) whose agent made the call.
agentNamestring | nullThe participant (interaction) or pipeline agent that made the call.
agentIduuid | nullThe agent definition that made the call, when the caller is an interaction agent.
providerstringWho served it: WebScrapingAi, Direct, or the image model’s provider.
tierWebProxyTier| nullPages: the proxy tier that succeeded.
creditsintegerThe web provider’s own units (credits) charged for the call; 0 where it charges none.
bytesintegerBytes received (downloads and pages), or the image’s size (descriptions).
hoststring | nullThe host the call was about.
targetstring | nullWhat was asked, for the run’s audit trail: a page’s or file’s URL without its query and fragment (they can carry secrets), or a search’s query (at most 200 characters).
pageinteger | nullSearches: the results page that was read.
durationMsintegerHow long the call took, in milliseconds.
fileIduuid | nullThe file the call produced, in the run’s web-download partition.
modelstring | nullImage descriptions: the model that described the image.
inputTokensintegerImage descriptions: the input tokens the model used. 0 for other calls.
outputTokensintegerImage descriptions: the output tokens the model used. 0 for other calls.
datedatetimeWhen the call was made (UTC).
expireAtdatetimeWhen the record is removed (UTC).
tenantIduuidThe id of the tenant it belongs to.
iduuidThe unique id. Use it in by-id routes and wherever another object refers to this one.
dateCreateddatetimeWhen it was created, in UTC.
dateUpdateddatetimeWhen it was last changed, in UTC.
{
"kind": "Search",
"processType": "App",
"processId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"agentName": "...",
"agentId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"provider": "...",
"tier": "Datacenter",
"credits": 0,
"bytes": 0,
"host": "...",
"target": "...",
"page": 0,
"durationMs": 0,
"fileId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"model": "...",
"inputTokens": 0,
"outputTokens": 0,
"date": "2026-10-26T12:00:00.0000000Z",
"expireAt": "2026-10-26T12:00:00.0000000Z",
"tenantId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"dateCreated": "2026-10-26T12:00:00.0000000Z",
"dateUpdated": "2026-10-26T12:00:00.0000000Z"
}