This endpoint registers credit consumption in one of two modes:
Tokens: send provider, modelName and the token counts. The credit cost is calculated from the model’s pricing.
Direct amount: send amount and amountType to charge work that is not measured in tokens (a third-party API call, a fixed-price action, etc.). 1 credit = 1 USD.
Never mix both modes in the same request.Use Cases:
Track AI agent interactions and their associated costs
Bill custom integrations that use AI models
Monitor and control credit spending per agent or feature
Implement usage-based billing for your organization
This endpoint requires a valid subscription or sufficient credit balance. The request will fail if the organization has exceeded its usage limits.
Body
string
Required unless amount is sent. The AI model provider. Accepted values:
azure
azure-2
azure-oss
openai-responses
gemini
gemini-vertex
deepseek
openrouter
bedrock(deprecated)
string
Required unless amount is sent. The specific model name used for the request. The provider + modelName pair must match this table exactly — an unknown pair is rejected with 400 and no event is recorded. Available models per provider:
The number of input tokens consumed in the request. Must be a non-negative integer.
integer
default:"0"
The number of output tokens generated in the response. Must be a non-negative integer.
integer
Optional multiplier for credit calculation (between 1 and 10). Useful for premium features or custom pricing tiers. Not allowed with amountType: "price".
number
Direct amount to charge, instead of tokens. A JSON number or a plain decimal string ("0.5"), greater than 0, lower than 1,000,000,000 and with at most 6 decimals. Values with more decimals are rejected with 400, never rounded: round float results (for example 0.30000000000000004) to 6 decimals before sending. Cannot be combined with inputTokens, outputTokens or cachedInputTokens. When sent, provider and modelName are optional free text (for example "provider": "twilio") and are not checked against the pricing table.
string
Required when amount is sent. Accepted values:
cost: amount is what the work cost. The organization’s billing coefficient is applied, the same way it is for tokens.
price: amount is the final price. Exactly that many credits are charged, with no coefficient.
string
Optional, 1 to 255 characters, unique per organization. If a request arrives with a key that was already used, the original event is returned with duplicate: true and nothing is charged again. Use it to retry safely after a timeout. The body of the retry is not compared with the original: a reused key always returns the original event, even if the new body is different.
string
default:"agent_run"
The feature or action that triggered this credit spend (e.g., agent_run, chat_completion, embedding).
string
Optional. The ID of the agent associated with this usage. Useful for per-agent analytics and billing.
object
Optional. Additional metadata to associate with this credit event. Can include any custom fields for tracking purposes.
Response
boolean
Indicates whether the credit spend was successfully recorded.
string
The ID of the organization that was charged.
string
A unique identifier for this credit spend event. Useful for auditing and reconciliation.
string
How the consumption was expressed: tokens or amount.
boolean
true when the request reused an idempotencyKey and the original event was returned without charging again.
object
Hide Toggle object
number
The actual number of credits charged for this event.
number
The number of credits the event should have charged. It is greater than charged when the balance did not cover it all. On a duplicate it equals charged.
object
Always present for tokens. For amount, only present when provider or modelName was sent.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Laburen Documentacion","colors":{"primary":"#2DFD8E","light":"#177F47","dark":"#2DFD8E"},"logo":{"light":"https://mintcdn.com/chatsappaicom/X5lst3Tqt1FgRzc5/logo/light.png?fit=max\u0026auto=format\u0026n=X5lst3Tqt1FgRzc5\u0026q=85\u0026s=36f7a5dd80146c505715bd5f7132b1bf","dark":"https://mintcdn.com/chatsappaicom/X5lst3Tqt1FgRzc5/logo/dark.png?fit=max\u0026auto=format\u0026n=X5lst3Tqt1FgRzc5\u0026q=85\u0026s=8d61eaddbeb3e5716a96d68ed804489f"},"favicon":"https://mintcdn.com/chatsappaicom/X5lst3Tqt1FgRzc5/favicon.png?fit=max\u0026auto=format\u0026n=X5lst3Tqt1FgRzc5\u0026q=85\u0026s=f49884435529f5e7248021e2eacee209","navbar":{"primary":{"type":"button","label":"Inicia ahora","href":"https://Laburen.com/"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chatsappaicom","hasAudioNarration":false,"actualSubdomain":"chatsappaicom","customDomains":["docs.laburen.com"],"gitSource":{"type":"github","owner":"laburen","repo":"laburen-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6aeb6658edeafab81dc5bfcd","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Agentes","count":32},{"language":"default","tag":"API","count":18},{"language":"default","tag":"Endpoints","count":17},{"language":"default","tag":"Integraciones","count":10},{"language":"default","tag":"Annotations","count":8},{"language":"default","tag":"Documentation","count":8},{"language":"default","tag":"Herramientas","count":6},{"language":"default","tag":"Privacidad","count":5},{"language":"default","tag":"🚀 Instalalo en","count":4},{"language":"default","tag":"Vision General","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/usage/increment-agent-queries","slug":"/api-reference/endpoint/usage/increment-agent-queries","pageMetadata":{"title":"Usage - Increment Agent Queries","api":"POST https://dashboard.laburen.com/api/usage/increment-agent-queries","description":"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.","authMethod":"bearer","href":"/api-reference/endpoint/usage/increment-agent-queries"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint registers credit consumption in one of two modes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tokens:`}),` send `,_jsx(_components.code,{children:`provider`}),`, `,_jsx(_components.code,{children:`modelName`}),` and the token counts. The credit cost is calculated from the model’s pricing.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Direct amount:`}),` send `,_jsx(_components.code,{children:`amount`}),` and `,_jsx(_components.code,{children:`amountType`}),` to charge work that is not measured in tokens (a third-party API call, a fixed-price action, etc.). 1 credit = 1 USD.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Never mix both modes in the same request.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use Cases:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Track AI agent interactions and their associated costs`}),`\n`,_jsx(_components.li,{children:`Bill custom integrations that use AI models`}),`\n`,_jsx(_components.li,{children:`Monitor and control credit spending per agent or feature`}),`\n`,_jsx(_components.li,{children:`Implement usage-based billing for your organization`}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`This endpoint requires a valid subscription or sufficient credit balance. The request will fail if the organization has exceeded its usage limits.`})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsxs(ParamField,{body:`provider`,type:`string`,id:`param-provider`,children:[_jsxs(_components.p,{children:[`Required unless `,_jsx(_components.code,{children:`amount`}),` is sent. The AI model provider. Accepted values:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`azure`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`azure-2`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`azure-oss`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`openai-responses`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`gemini`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`gemini-vertex`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`deepseek`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`openrouter`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bedrock`}),` `,_jsx(_components.em,{children:`(deprecated)`})]}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`modelName`,type:`string`,id:`param-model-name`,children:[_jsxs(_components.p,{children:[`Required unless `,_jsx(_components.code,{children:`amount`}),` is sent. The specific model name used for the request. The `,_jsx(_components.code,{children:`provider`}),` + `,_jsx(_components.code,{children:`modelName`}),` pair must match this table exactly — an unknown pair is rejected with `,_jsx(_components.strong,{children:`400`}),` and no event is recorded. Available models per provider:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Provider`}),_jsx(_components.th,{children:`Available Models`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`azure`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-4o-mini`}),`, `,_jsx(_components.code,{children:`gpt-4o`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`azure-2`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-4.1-nano`}),`, `,_jsx(_components.code,{children:`gpt-4.1-mini`}),`, `,_jsx(_components.code,{children:`gpt-4.1`}),`, `,_jsx(_components.code,{children:`gpt-5-nano`}),`, `,_jsx(_components.code,{children:`gpt-5-mini`}),`, `,_jsx(_components.code,{children:`gpt-5-chat`}),`, `,_jsx(_components.code,{children:`gpt-5`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`azure-oss`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-5.6-sol`}),`, `,_jsx(_components.code,{children:`gpt-5.6-terra`}),`, `,_jsx(_components.code,{children:`gpt-5.6-luna`}),`, `,_jsx(_components.code,{children:`gpt-5.5`}),`, `,_jsx(_components.code,{children:`gpt-5.4`}),`, `,_jsx(_components.code,{children:`gpt-5.4-mini`}),`, `,_jsx(_components.code,{children:`gpt-5.4-nano`}),`, `,_jsx(_components.code,{children:`DeepSeek-V4-Pro`}),`, `,_jsx(_components.code,{children:`DeepSeek-V4-Flash`}),`, `,_jsx(_components.code,{children:`DeepSeek-V3.2`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`openai-responses`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-4.1`}),`, `,_jsx(_components.code,{children:`gpt-4.1-mini`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gemini`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gemini-2.0-flash`}),`, `,_jsx(_components.code,{children:`gemini-2.0-flash-exp`}),`, `,_jsx(_components.code,{children:`gemini-2.5-flash`}),`, `,_jsx(_components.code,{children:`gemini-2.5-pro`}),`, `,_jsx(_components.code,{children:`gemini-3-pro`}),`, `,_jsx(_components.code,{children:`gemini-3.1-pro`}),`, `,_jsx(_components.code,{children:`gemini-3-flash`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gemini-vertex`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gemini-3.8-flash`}),`, `,_jsx(_components.code,{children:`gemini-3.5-flash-lite`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deepseek`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DeepSeek-V3.2-thinking`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`openrouter`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`glm-5.2`}),`, `,_jsx(_components.code,{children:`glm-5.3`}),`, `,_jsx(_components.code,{children:`glm-5.3-flash`}),`, `,_jsx(_components.code,{children:`claude-sonnet-5`}),`, `,_jsx(_components.code,{children:`claude-opus-5.5`}),`, `,_jsx(_components.code,{children:`gpt-6-astra`}),`, `,_jsx(_components.code,{children:`gpt-6-sol`}),`, `,_jsx(_components.code,{children:`gpt-6-luna`}),`, `,_jsx(_components.code,{children:`grok-4.7`}),`, `,_jsx(_components.code,{children:`grok-4.6`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`bedrock`}),` `,_jsx(_components.em,{children:`(deprecated)`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`claude-4-sonnet`}),`, `,_jsx(_components.code,{children:`claude-sonnet-4-6`}),`, `,_jsx(_components.code,{children:`claude-opus-4-6`}),`, `,_jsx(_components.code,{children:`claude-opus-4-7`})]})]})]})]})]}),`\n`,_jsx(ParamField,{body:`inputTokens`,type:`integer`,default:`0`,id:`param-input-tokens`,children:_jsx(_components.p,{children:`The number of input tokens consumed in the request. Must be a non-negative integer.`})}),`\n`,_jsx(ParamField,{body:`outputTokens`,type:`integer`,default:`0`,id:`param-output-tokens`,children:_jsx(_components.p,{children:`The number of output tokens generated in the response. Must be a non-negative integer.`})}),`\n`,_jsx(ParamField,{body:`coefficient`,type:`integer`,id:`param-coefficient`,children:_jsxs(_components.p,{children:[`Optional multiplier for credit calculation (between 1 and 10). Useful for premium features or custom pricing tiers. Not allowed with `,_jsx(_components.code,{children:`amountType: \"price\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsxs(_components.p,{children:[`Direct amount to charge, instead of tokens. A JSON number or a plain decimal string (`,_jsx(_components.code,{children:`\"0.5\"`}),`), greater than 0, lower than 1,000,000,000 and with at most 6 decimals. Values with more decimals are rejected with 400, never rounded: round float results (for example `,_jsx(_components.code,{children:`0.30000000000000004`}),`) to 6 decimals before sending. Cannot be combined with `,_jsx(_components.code,{children:`inputTokens`}),`, `,_jsx(_components.code,{children:`outputTokens`}),` or `,_jsx(_components.code,{children:`cachedInputTokens`}),`. When sent, `,_jsx(_components.code,{children:`provider`}),` and `,_jsx(_components.code,{children:`modelName`}),` are optional free text (for example `,_jsx(_components.code,{children:`\"provider\": \"twilio\"`}),`) and are not checked against the pricing table.`]})}),`\n`,_jsxs(ParamField,{body:`amountType`,type:`string`,id:`param-amount-type`,children:[_jsxs(_components.p,{children:[`Required when `,_jsx(_components.code,{children:`amount`}),` is sent. Accepted values:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cost`}),`: `,_jsx(_components.code,{children:`amount`}),` is what the work cost. The organization’s billing coefficient is applied, the same way it is for tokens.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`price`}),`: `,_jsx(_components.code,{children:`amount`}),` is the final price. Exactly that many credits are charged, with no coefficient.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`idempotencyKey`,type:`string`,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`Optional, 1 to 255 characters, unique per organization. If a request arrives with a key that was already used, the original event is returned with `,_jsx(_components.code,{children:`duplicate: true`}),` and nothing is charged again. Use it to retry safely after a timeout. The body of the retry is not compared with the original: a reused key always returns the original event, even if the new body is different.`]})}),`\n`,_jsx(ParamField,{body:`feature`,type:`string`,default:`agent_run`,id:`param-feature`,children:_jsxs(_components.p,{children:[`The feature or action that triggered this credit spend (e.g., `,_jsx(_components.code,{children:`agent_run`}),`, `,_jsx(_components.code,{children:`chat_completion`}),`, `,_jsx(_components.code,{children:`embedding`}),`).`]})}),`\n`,_jsx(ParamField,{body:`agentId`,type:`string`,id:`param-agent-id`,children:_jsx(_components.p,{children:`Optional. The ID of the agent associated with this usage. Useful for per-agent analytics and billing.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Optional. Additional metadata to associate with this credit event. Can include any custom fields for tracking purposes.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates whether the credit spend was successfully recorded.`})}),`\n`,_jsx(ResponseField,{name:`organizationId`,type:`string`,id:`param-organization-id`,children:_jsx(_components.p,{children:`The ID of the organization that was charged.`})}),`\n`,_jsx(ResponseField,{name:`eventId`,type:`string`,id:`param-event-id`,children:_jsx(_components.p,{children:`A unique identifier for this credit spend event. Useful for auditing and reconciliation.`})}),`\n`,_jsx(ResponseField,{name:`unitType`,type:`string`,id:`param-unit-type`,children:_jsxs(_components.p,{children:[`How the consumption was expressed: `,_jsx(_components.code,{children:`tokens`}),` or `,_jsx(_components.code,{children:`amount`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`duplicate`,type:`boolean`,id:`param-duplicate`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the request reused an `,_jsx(_components.code,{children:`idempotencyKey`}),` and the original event was returned without charging again.`]})}),`\n`,_jsx(ResponseField,{name:`credits`,type:`object`,id:`param-credits`,children:_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`charged`,type:`number`,id:`param-charged`,children:_jsx(_components.p,{children:`The actual number of credits charged for this event.`})}),_jsx(ResponseField,{name:`requested`,type:`number`,id:`param-requested`,children:_jsxs(_components.p,{children:[`The number of credits the event should have charged. It is greater than `,_jsx(_components.code,{children:`charged`}),` when the balance did not cover it all. On a duplicate it equals `,_jsx(_components.code,{children:`charged`}),`.`]})})]})}),`\n`,_jsxs(ResponseField,{name:`model`,type:`object`,id:`param-model`,children:[_jsxs(_components.p,{children:[`Always present for `,_jsx(_components.code,{children:`tokens`}),`. For `,_jsx(_components.code,{children:`amount`}),`, only present when `,_jsx(_components.code,{children:`provider`}),` or `,_jsx(_components.code,{children:`modelName`}),` was sent.`]}),_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`provider`,type:`string`,id:`param-provider-1`,children:_jsx(_components.p,{children:`The AI provider used.`})}),_jsx(ResponseField,{name:`modelName`,type:`string`,id:`param-model-name-1`,children:_jsx(_components.p,{children:`The model name used.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`tokens`,type:`object`,id:`param-tokens`,children:[_jsxs(_components.p,{children:[`Only for `,_jsx(_components.code,{children:`unitType = \"tokens\"`}),`.`]}),_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`inputTokens`,type:`integer`,id:`param-input-tokens-1`,children:_jsx(_components.p,{children:`The input tokens recorded.`})}),_jsx(ResponseField,{name:`outputTokens`,type:`integer`,id:`param-output-tokens-1`,children:_jsx(_components.p,{children:`The output tokens recorded.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`amount`,type:`object`,id:`param-amount-1`,children:[_jsxs(_components.p,{children:[`Only for `,_jsx(_components.code,{children:`unitType = \"amount\"`}),`.`]}),_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`value`,type:`number`,id:`param-value`,children:_jsx(_components.p,{children:`The amount that was sent.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`cost`}),` or `,_jsx(_components.code,{children:`price`}),`, as sent in `,_jsx(_components.code,{children:`amountType`}),`.`]})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Usage - Increment Agent Queries","api":"POST https://dashboard.laburen.com/api/usage/increment-agent-queries","description":"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.","authMethod":"bearer","href":"/api-reference/endpoint/usage/increment-agent-queries"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint registers credit consumption in one of two modes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tokens:`}),` send `,_jsx(_components.code,{children:`provider`}),`, `,_jsx(_components.code,{children:`modelName`}),` and the token counts. The credit cost is calculated from the model’s pricing.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Direct amount:`}),` send `,_jsx(_components.code,{children:`amount`}),` and `,_jsx(_components.code,{children:`amountType`}),` to charge work that is not measured in tokens (a third-party API call, a fixed-price action, etc.). 1 credit = 1 USD.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Never mix both modes in the same request.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use Cases:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Track AI agent interactions and their associated costs`}),`\n`,_jsx(_components.li,{children:`Bill custom integrations that use AI models`}),`\n`,_jsx(_components.li,{children:`Monitor and control credit spending per agent or feature`}),`\n`,_jsx(_components.li,{children:`Implement usage-based billing for your organization`}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`This endpoint requires a valid subscription or sufficient credit balance. The request will fail if the organization has exceeded its usage limits.`})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsxs(ParamField,{body:`provider`,type:`string`,id:`param-provider`,children:[_jsxs(_components.p,{children:[`Required unless `,_jsx(_components.code,{children:`amount`}),` is sent. The AI model provider. Accepted values:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`azure`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`azure-2`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`azure-oss`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`openai-responses`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`gemini`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`gemini-vertex`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`deepseek`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`openrouter`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bedrock`}),` `,_jsx(_components.em,{children:`(deprecated)`})]}),`\n`]})]}),`\n`,_jsxs(ParamField,{body:`modelName`,type:`string`,id:`param-model-name`,children:[_jsxs(_components.p,{children:[`Required unless `,_jsx(_components.code,{children:`amount`}),` is sent. The specific model name used for the request. The `,_jsx(_components.code,{children:`provider`}),` + `,_jsx(_components.code,{children:`modelName`}),` pair must match this table exactly — an unknown pair is rejected with `,_jsx(_components.strong,{children:`400`}),` and no event is recorded. Available models per provider:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Provider`}),_jsx(_components.th,{children:`Available Models`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`azure`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-4o-mini`}),`, `,_jsx(_components.code,{children:`gpt-4o`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`azure-2`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-4.1-nano`}),`, `,_jsx(_components.code,{children:`gpt-4.1-mini`}),`, `,_jsx(_components.code,{children:`gpt-4.1`}),`, `,_jsx(_components.code,{children:`gpt-5-nano`}),`, `,_jsx(_components.code,{children:`gpt-5-mini`}),`, `,_jsx(_components.code,{children:`gpt-5-chat`}),`, `,_jsx(_components.code,{children:`gpt-5`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`azure-oss`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-5.6-sol`}),`, `,_jsx(_components.code,{children:`gpt-5.6-terra`}),`, `,_jsx(_components.code,{children:`gpt-5.6-luna`}),`, `,_jsx(_components.code,{children:`gpt-5.5`}),`, `,_jsx(_components.code,{children:`gpt-5.4`}),`, `,_jsx(_components.code,{children:`gpt-5.4-mini`}),`, `,_jsx(_components.code,{children:`gpt-5.4-nano`}),`, `,_jsx(_components.code,{children:`DeepSeek-V4-Pro`}),`, `,_jsx(_components.code,{children:`DeepSeek-V4-Flash`}),`, `,_jsx(_components.code,{children:`DeepSeek-V3.2`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`openai-responses`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gpt-4.1`}),`, `,_jsx(_components.code,{children:`gpt-4.1-mini`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gemini`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gemini-2.0-flash`}),`, `,_jsx(_components.code,{children:`gemini-2.0-flash-exp`}),`, `,_jsx(_components.code,{children:`gemini-2.5-flash`}),`, `,_jsx(_components.code,{children:`gemini-2.5-pro`}),`, `,_jsx(_components.code,{children:`gemini-3-pro`}),`, `,_jsx(_components.code,{children:`gemini-3.1-pro`}),`, `,_jsx(_components.code,{children:`gemini-3-flash`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gemini-vertex`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gemini-3.8-flash`}),`, `,_jsx(_components.code,{children:`gemini-3.5-flash-lite`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deepseek`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DeepSeek-V3.2-thinking`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`openrouter`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`glm-5.2`}),`, `,_jsx(_components.code,{children:`glm-5.3`}),`, `,_jsx(_components.code,{children:`glm-5.3-flash`}),`, `,_jsx(_components.code,{children:`claude-sonnet-5`}),`, `,_jsx(_components.code,{children:`claude-opus-5.5`}),`, `,_jsx(_components.code,{children:`gpt-6-astra`}),`, `,_jsx(_components.code,{children:`gpt-6-sol`}),`, `,_jsx(_components.code,{children:`gpt-6-luna`}),`, `,_jsx(_components.code,{children:`grok-4.7`}),`, `,_jsx(_components.code,{children:`grok-4.6`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`bedrock`}),` `,_jsx(_components.em,{children:`(deprecated)`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`claude-4-sonnet`}),`, `,_jsx(_components.code,{children:`claude-sonnet-4-6`}),`, `,_jsx(_components.code,{children:`claude-opus-4-6`}),`, `,_jsx(_components.code,{children:`claude-opus-4-7`})]})]})]})]})]}),`\n`,_jsx(ParamField,{body:`inputTokens`,type:`integer`,default:`0`,id:`param-input-tokens`,children:_jsx(_components.p,{children:`The number of input tokens consumed in the request. Must be a non-negative integer.`})}),`\n`,_jsx(ParamField,{body:`outputTokens`,type:`integer`,default:`0`,id:`param-output-tokens`,children:_jsx(_components.p,{children:`The number of output tokens generated in the response. Must be a non-negative integer.`})}),`\n`,_jsx(ParamField,{body:`coefficient`,type:`integer`,id:`param-coefficient`,children:_jsxs(_components.p,{children:[`Optional multiplier for credit calculation (between 1 and 10). Useful for premium features or custom pricing tiers. Not allowed with `,_jsx(_components.code,{children:`amountType: \"price\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsxs(_components.p,{children:[`Direct amount to charge, instead of tokens. A JSON number or a plain decimal string (`,_jsx(_components.code,{children:`\"0.5\"`}),`), greater than 0, lower than 1,000,000,000 and with at most 6 decimals. Values with more decimals are rejected with 400, never rounded: round float results (for example `,_jsx(_components.code,{children:`0.30000000000000004`}),`) to 6 decimals before sending. Cannot be combined with `,_jsx(_components.code,{children:`inputTokens`}),`, `,_jsx(_components.code,{children:`outputTokens`}),` or `,_jsx(_components.code,{children:`cachedInputTokens`}),`. When sent, `,_jsx(_components.code,{children:`provider`}),` and `,_jsx(_components.code,{children:`modelName`}),` are optional free text (for example `,_jsx(_components.code,{children:`\"provider\": \"twilio\"`}),`) and are not checked against the pricing table.`]})}),`\n`,_jsxs(ParamField,{body:`amountType`,type:`string`,id:`param-amount-type`,children:[_jsxs(_components.p,{children:[`Required when `,_jsx(_components.code,{children:`amount`}),` is sent. Accepted values:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cost`}),`: `,_jsx(_components.code,{children:`amount`}),` is what the work cost. The organization’s billing coefficient is applied, the same way it is for tokens.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`price`}),`: `,_jsx(_components.code,{children:`amount`}),` is the final price. Exactly that many credits are charged, with no coefficient.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`idempotencyKey`,type:`string`,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`Optional, 1 to 255 characters, unique per organization. If a request arrives with a key that was already used, the original event is returned with `,_jsx(_components.code,{children:`duplicate: true`}),` and nothing is charged again. Use it to retry safely after a timeout. The body of the retry is not compared with the original: a reused key always returns the original event, even if the new body is different.`]})}),`\n`,_jsx(ParamField,{body:`feature`,type:`string`,default:`agent_run`,id:`param-feature`,children:_jsxs(_components.p,{children:[`The feature or action that triggered this credit spend (e.g., `,_jsx(_components.code,{children:`agent_run`}),`, `,_jsx(_components.code,{children:`chat_completion`}),`, `,_jsx(_components.code,{children:`embedding`}),`).`]})}),`\n`,_jsx(ParamField,{body:`agentId`,type:`string`,id:`param-agent-id`,children:_jsx(_components.p,{children:`Optional. The ID of the agent associated with this usage. Useful for per-agent analytics and billing.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Optional. Additional metadata to associate with this credit event. Can include any custom fields for tracking purposes.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates whether the credit spend was successfully recorded.`})}),`\n`,_jsx(ResponseField,{name:`organizationId`,type:`string`,id:`param-organization-id`,children:_jsx(_components.p,{children:`The ID of the organization that was charged.`})}),`\n`,_jsx(ResponseField,{name:`eventId`,type:`string`,id:`param-event-id`,children:_jsx(_components.p,{children:`A unique identifier for this credit spend event. Useful for auditing and reconciliation.`})}),`\n`,_jsx(ResponseField,{name:`unitType`,type:`string`,id:`param-unit-type`,children:_jsxs(_components.p,{children:[`How the consumption was expressed: `,_jsx(_components.code,{children:`tokens`}),` or `,_jsx(_components.code,{children:`amount`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`duplicate`,type:`boolean`,id:`param-duplicate`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the request reused an `,_jsx(_components.code,{children:`idempotencyKey`}),` and the original event was returned without charging again.`]})}),`\n`,_jsx(ResponseField,{name:`credits`,type:`object`,id:`param-credits`,children:_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`charged`,type:`number`,id:`param-charged`,children:_jsx(_components.p,{children:`The actual number of credits charged for this event.`})}),_jsx(ResponseField,{name:`requested`,type:`number`,id:`param-requested`,children:_jsxs(_components.p,{children:[`The number of credits the event should have charged. It is greater than `,_jsx(_components.code,{children:`charged`}),` when the balance did not cover it all. On a duplicate it equals `,_jsx(_components.code,{children:`charged`}),`.`]})})]})}),`\n`,_jsxs(ResponseField,{name:`model`,type:`object`,id:`param-model`,children:[_jsxs(_components.p,{children:[`Always present for `,_jsx(_components.code,{children:`tokens`}),`. For `,_jsx(_components.code,{children:`amount`}),`, only present when `,_jsx(_components.code,{children:`provider`}),` or `,_jsx(_components.code,{children:`modelName`}),` was sent.`]}),_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`provider`,type:`string`,id:`param-provider-1`,children:_jsx(_components.p,{children:`The AI provider used.`})}),_jsx(ResponseField,{name:`modelName`,type:`string`,id:`param-model-name-1`,children:_jsx(_components.p,{children:`The model name used.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`tokens`,type:`object`,id:`param-tokens`,children:[_jsxs(_components.p,{children:[`Only for `,_jsx(_components.code,{children:`unitType = \"tokens\"`}),`.`]}),_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`inputTokens`,type:`integer`,id:`param-input-tokens-1`,children:_jsx(_components.p,{children:`The input tokens recorded.`})}),_jsx(ResponseField,{name:`outputTokens`,type:`integer`,id:`param-output-tokens-1`,children:_jsx(_components.p,{children:`The output tokens recorded.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`amount`,type:`object`,id:`param-amount-1`,children:[_jsxs(_components.p,{children:[`Only for `,_jsx(_components.code,{children:`unitType = \"amount\"`}),`.`]}),_jsxs(Expandable,{title:`Toggle object`,defaultOpen:true,children:[_jsx(ResponseField,{name:`value`,type:`number`,id:`param-value`,children:_jsx(_components.p,{children:`The amount that was sent.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`cost`}),` or `,_jsx(_components.code,{children:`price`}),`, as sent in `,_jsx(_components.code,{children:`amountType`}),`.`]})})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://dashboard.laburen.com/api/usage/increment-agent-queries'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization: Bearer \u003cAPI_KEY>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data-raw `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"provider\": \"azure-oss\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"modelName\": \"gpt-5.6-sol\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inputTokens\": 1500,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"outputTokens\": 500,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"feature\": \"agent_run\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agentId\": \"clxxxxxxxxxxxxxxxxx\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL (direct amount)`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://dashboard.laburen.com/api/usage/increment-agent-queries'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization: Bearer \u003cAPI_KEY>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data-raw `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 0.5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amountType\": \"price\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"provider\": \"twilio\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"feature\": \"twilio_call\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agentId\": \"clxxxxxxxxxxxxxxxxx\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"idempotencyKey\": \"call-7f3a9c\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`21`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiUrl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://dashboard.laburen.com/api'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cAPI_KEY>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiUrl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/usage/increment-agent-queries`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` provider:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'azure-oss'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` modelName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'gpt-5.6-sol'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` inputTokens:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` outputTokens:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` feature:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'agent_run'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agentId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'clxxxxxxxxxxxxxxxxx'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`23`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api_url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://dashboard.laburen.com/api\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api_key `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cAPI_KEY>\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/usage/increment-agent-queries\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"azure-oss\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"modelName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.6-sol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"outputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"feature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"agent_run\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"clxxxxxxxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(data)`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Response`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"organizationId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org_xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evt_xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"charged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.045`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requested\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.045`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"azure-oss\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"modelName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.6-sol\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"outputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unitType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duplicate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Response (direct amount)`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"organizationId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org_xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evt_xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unitType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"charged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requested\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"price\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"twilio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"modelName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duplicate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Usage - Increment Agent Queries","api":"POST https://dashboard.laburen.com/api/usage/increment-agent-queries","description":"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.","authMethod":"bearer","href":"/api-reference/endpoint/usage/increment-agent-queries"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Body","slug":"body","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://dashboard.laburen.com/api/usage/increment-agent-queries'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Authorization: Bearer \u0026#x3C;API_KEY>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data-raw \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"provider\": \"azure-oss\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"modelName\": \"gpt-5.6-sol\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"inputTokens\": 1500,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"outputTokens\": 500,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"feature\": \"agent_run\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"agentId\": \"clxxxxxxxxxxxxxxxxx\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL (direct amount)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://dashboard.laburen.com/api/usage/increment-agent-queries'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Authorization: Bearer \u0026#x3C;API_KEY>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data-raw \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"amount\": 0.5,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"amountType\": \"price\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"provider\": \"twilio\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"feature\": \"twilio_call\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"agentId\": \"clxxxxxxxxxxxxxxxxx\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"idempotencyKey\": \"call-7f3a9c\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> apiUrl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://dashboard.laburen.com/api'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> apiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '\u0026#x3C;API_KEY>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">apiUrl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/usage/increment-agent-queries`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">apiKey\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> provider:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'azure-oss'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> modelName:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'gpt-5.6-sol'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> inputTokens:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 1500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> outputTokens:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> feature:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'agent_run'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> agentId:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'clxxxxxxxxxxxxxxxxx'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"23\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">api_url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://dashboard.laburen.com/api\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">api_key \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u0026#x3C;API_KEY>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">api_url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/usage/increment-agent-queries\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">api_key\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"provider\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"azure-oss\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"modelName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt-5.6-sol\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"inputTokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"outputTokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"feature\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"agent_run\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"agentId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"clxxxxxxxxxxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">data \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(data)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"organizationId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"org_xxxxxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"eventId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"evt_xxxxxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"credits\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"charged\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.045\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"requested\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.045\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"provider\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"azure-oss\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"modelName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt-5.6-sol\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"inputTokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"outputTokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">500\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"unitType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"tokens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"duplicate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Response (direct amount)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"organizationId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"org_xxxxxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"eventId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"evt_xxxxxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"unitType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"credits\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"charged\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"requested\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"price\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"provider\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"twilio\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"modelName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"duplicate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Usage - Increment Agent Queries","path":"/api/usage/increment-agent-queries","servers":[{"url":"https://dashboard.laburen.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"provider":[{"type":"string","description":"Required unless `amount` is sent. The AI model provider. Accepted values: `azure` `azure-2` `azure-oss` `openai-responses` `gemini` `gemini-vertex` `deepseek` `openrouter` `bedrock` (deprecated)"}],"modelName":[{"type":"string","description":"Required unless `amount` is sent. The specific model name used for the request. The `provider` + `modelName` pair must match this table exactly — an unknown pair is rejected with 400 and no event is recorded. Available models per provider: Provider Available Models `azure` `gpt-4o-mini` , `gpt-4o` `azure-2` `gpt-4.1-nano` , `gpt-4.1-mini` , `gpt-4.1` , `gpt-5-nano` , `gpt-5-mini` , `gpt-5-chat` , `gpt-5` `azure-oss` `gpt-5.6-sol` , `gpt-5.6-terra` , `gpt-5.6-luna` , `gpt-5.5` , `gpt-5.4` , `gpt-5.4-mini` , `gpt-5.4-nano` , `DeepSeek-V4-Pro` , `DeepSeek-V4-Flash` , `DeepSeek-V3.2` `openai-responses` `gpt-4.1` , `gpt-4.1-mini` `gemini` `gemini-2.0-flash` , `gemini-2.0-flash-exp` , `gemini-2.5-flash` , `gemini-2.5-pro` , `gemini-3-pro` , `gemini-3.1-pro` , `gemini-3-flash` `gemini-vertex` `gemini-3.8-flash` , `gemini-3.5-flash-lite` `deepseek` `DeepSeek-V3.2-thinking` `openrouter` `glm-5.2` , `glm-5.3` , `glm-5.3-flash` , `claude-sonnet-5` , `claude-opus-5.5` , `gpt-6-astra` , `gpt-6-sol` , `gpt-6-luna` , `grok-4.7` , `grok-4.6` `bedrock` (deprecated) `claude-4-sonnet` , `claude-sonnet-4-6` , `claude-opus-4-6` , `claude-opus-4-7`"}],"inputTokens":[{"type":"integer","description":"The number of input tokens consumed in the request. Must be a non-negative integer."}],"outputTokens":[{"type":"integer","description":"The number of output tokens generated in the response. Must be a non-negative integer."}],"coefficient":[{"type":"integer","description":"Optional multiplier for credit calculation (between 1 and 10). Useful for premium features or custom pricing tiers. Not allowed with `amountType: \"price\"` ."}],"amount":[{"type":"number","description":"Direct amount to charge, instead of tokens. A JSON number or a plain decimal string ( `\"0.5\"` ), greater than 0, lower than 1,000,000,000 and with at most 6 decimals. Values with more decimals are rejected with 400, never rounded: round float results (for example `0.30000000000000004` ) to 6 decimals before sending. Cannot be combined with `inputTokens` , `outputTokens` or `cachedInputTokens` . When sent, `provider` and `modelName` are optional free text (for example `\"provider\": \"twilio\"` ) and are not checked against the pricing table."}],"amountType":[{"type":"string","description":"Required when `amount` is sent. Accepted values: `cost` : `amount` is what the work cost. The organization’s billing coefficient is applied, the same way it is for tokens. `price` : `amount` is the final price. Exactly that many credits are charged, with no coefficient."}],"idempotencyKey":[{"type":"string","description":"Optional, 1 to 255 characters, unique per organization. If a request arrives with a key that was already used, the original event is returned with `duplicate: true` and nothing is charged again. Use it to retry safely after a timeout. The body of the retry is not compared with the original: a reused key always returns the original event, even if the new body is different."}],"feature":[{"type":"string","description":"The feature or action that triggered this credit spend (e.g., `agent_run` , `chat_completion` , `embedding` )."}],"agentId":[{"type":"string","description":"Optional. The ID of the agent associated with this usage. Useful for per-agent analytics and billing."}],"metadata":[{"type":"object","properties":{},"description":"Optional. Additional metadata to associate with this credit event. Can include any custom fields for tracking purposes."}]}}],"examples":{"example":{"value":{"provider":"\u003cstring>","modelName":"\u003cstring>","inputTokens":123,"outputTokens":123,"coefficient":123,"amount":123,"amountType":"\u003cstring>","idempotencyKey":"\u003cstring>","feature":"\u003cstring>","agentId":"\u003cstring>","metadata":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Indicates whether the credit spend was successfully recorded."}],"organizationId":[{"type":"string","description":"The ID of the organization that was charged."}],"eventId":[{"type":"string","description":"A unique identifier for this credit spend event. Useful for auditing and reconciliation."}],"unitType":[{"type":"string","description":"How the consumption was expressed: `tokens` or `amount` ."}],"duplicate":[{"type":"boolean","description":"`true` when the request reused an `idempotencyKey` and the original event was returned without charging again."}],"credits":[{"type":"object","properties":{"charged":[{"type":"number","description":"The actual number of credits charged for this event."}],"requested":[{"type":"number","description":"The number of credits the event should have charged. It is greater than `charged` when the balance did not cover it all. On a duplicate it equals `charged` ."}]}}],"model":[{"type":"object","properties":{"provider":[{"type":"string","description":"The AI provider used."}],"modelName":[{"type":"string","description":"The model name used."}]},"description":"Always present for `tokens` . For `amount` , only present when `provider` or `modelName` was sent."}],"tokens":[{"type":"object","properties":{"inputTokens":[{"type":"integer","description":"The input tokens recorded."}],"outputTokens":[{"type":"integer","description":"The output tokens recorded."}]},"description":"Only for `unitType = \"tokens\"` ."}],"amount":[{"type":"object","properties":{"value":[{"type":"number","description":"The amount that was sent."}],"type":[{"type":"string","description":"`cost` or `price` , as sent in `amountType` ."}]},"description":"Only for `unitType = \"amount\"` ."}]}}],"examples":{"example":{"value":{"success":true,"organizationId":"\u003cstring>","eventId":"\u003cstring>","unitType":"\u003cstring>","duplicate":true,"credits":{"charged":123,"requested":123},"model":{"provider":"\u003cstring>","modelName":"\u003cstring>"},"tokens":{"inputTokens":123,"outputTokens":123},"amount":{"value":123,"type":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"chatsappaicom","siteName":"Laburen Documentacion","title":"Usage - Increment Agent Queries - Laburen Documentacion","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T03:56:21.106Z","originalFileLocation":"api-reference/endpoint/usage/increment-agent-queries.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Laburen Documentacion\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Usage - Increment Agent Queries - Laburen Documentacion\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Laburen Documentacion\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chatsappaicom.mintlify.site/_mintlify/api/og/v2?division=Usage\u0026amp;title=Usage+-+Increment+Agent+Queries\u0026amp;description=This+endpoint+allows+you+to+track+and+charge+credits+for+your+organization%2C+based+on+AI+model+token+consumption+or+on+a+direct+amount.\u0026amp;theme=9f73d9e571fc5e52d199e59f\u0026amp;signature=320de115272bc2f88bee2138543dfc56163cea5ff3e8e36ff0803bb752a88386\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Usage - Increment Agent Queries - Laburen Documentacion\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatsappaicom.mintlify.site/_mintlify/api/og/v2?division=Usage\u0026amp;title=Usage+-+Increment+Agent+Queries\u0026amp;description=This+endpoint+allows+you+to+track+and+charge+credits+for+your+organization%2C+based+on+AI+model+token+consumption+or+on+a+direct+amount.\u0026amp;theme=9f73d9e571fc5e52d199e59f\u0026amp;signature=320de115272bc2f88bee2138543dfc56163cea5ff3e8e36ff0803bb752a88386\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/chatsappaicom/aOs9D1gzrnhM7pD5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Laburen Documentacion\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2DFD8E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/usage/increment-agent-queries.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.laburen.com/#organization\",\"name\":\"Laburen Documentacion\",\"url\":\"https://docs.laburen.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chatsappaicom/X5lst3Tqt1FgRzc5/logo/light.png?fit=max\u0026auto=format\u0026n=X5lst3Tqt1FgRzc5\u0026q=85\u0026s=36f7a5dd80146c505715bd5f7132b1bf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.laburen.com#website\",\"name\":\"Laburen Documentacion\",\"url\":\"https://docs.laburen.com\",\"publisher\":{\"@id\":\"https://docs.laburen.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries#webpage\",\"url\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries\",\"name\":\"Usage - Increment Agent Queries\",\"description\":\"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.\",\"dateModified\":\"2026-10-27T03:56:21.106Z\",\"isPartOf\":{\"@id\":\"https://docs.laburen.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.laburen.com/api-reference/endpoint/agents/query\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Usage - Increment Agent Queries\",\"item\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries#apireference\",\"headline\":\"Usage - Increment Agent Queries\",\"name\":\"Usage - Increment Agent Queries\",\"description\":\"This endpoint allows you to track and charge credits for your organization, based on AI model token consumption or on a direct amount.\",\"url\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries\",\"mainEntityOfPage\":{\"@id\":\"https://docs.laburen.com/api-reference/endpoint/usage/increment-agent-queries#webpage\"},\"dateModified\":\"2026-10-27T03:56:21.106Z\",\"publisher\":{\"@id\":\"https://docs.laburen.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.laburen.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Laburen Documentacion\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Laburen Documentacion\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/usage/increment-agent-queries.md","siteName":"Laburen Documentacion","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"anchor":"Agentes","icon":"hat-wizard","pages":[{"title":"Agentes","href":"/agent/inicio-rapido"}]},{"anchor":"Datastore","icon":"brain","pages":[{"title":"Datastore","href":"/datastore/inicio-rapido"}]},{"anchor":"Integraciones","icon":"puzzle-piece","pages":[{"title":"Integraciones","href":"/integrations/google-drive"}]},{"anchor":"API","icon":"rectangle-terminal","groups":[{"group":"laburen API","pages":[{"title":"Autenticación","href":"/api-reference/authentication"}]},{"group":"Endpoints","pages":[{"group":"Agentes","pages":[{"title":"Agent - Query","api":"POST https://dashboard.laburen.com/api/agents/{agentId}/query","href":"/api-reference/endpoint/agents/query"},{"title":"Agent - Follow-up Query","api":"POST https://dashboard.laburen.com/api/agents/{agentId}/follow-up/query","href":"/api-reference/endpoint/agents/follow-up-query"},{"title":"Agent - Query Agent","api":"POST https://dashboard.laburen.com/api/agents/{id}/query-agent","href":"/api-reference/endpoint/agents/query-agent"},{"title":"Agent - Export Conversations","api":"GET https://dashboard.laburen.com/api/agents/{id}/conversations-export","href":"/api-reference/endpoint/agents/conversations-export"}]},{"group":"Annotations","pages":[{"title":"Annotation - List","api":"GET https://dashboard.laburen.com/api/annotations","href":"/api-reference/endpoint/annotations/list"},{"title":"Annotation - Create or Update","api":"POST https://dashboard.laburen.com/api/annotations","href":"/api-reference/endpoint/annotations/create"},{"title":"Annotation - Get","api":"GET https://dashboard.laburen.com/api/annotations/{id}","href":"/api-reference/endpoint/annotations/get"},{"title":"Annotation - Update","api":"PATCH https://dashboard.laburen.com/api/annotations/{id}","href":"/api-reference/endpoint/annotations/update"},{"title":"Annotation - Delete","api":"DELETE https://dashboard.laburen.com/api/annotations/{id}","href":"/api-reference/endpoint/annotations/delete"},{"title":"Annotation Tags - List","api":"GET https://dashboard.laburen.com/api/annotations/tags","href":"/api-reference/endpoint/annotations/tags/list"},{"title":"Annotation Tags - Create","api":"POST https://dashboard.laburen.com/api/annotations/tags","href":"/api-reference/endpoint/annotations/tags/create"},{"title":"Annotation Tags - Delete","api":"DELETE https://dashboard.laburen.com/api/annotations/tags/{id}","href":"/api-reference/endpoint/annotations/tags/delete"}]},{"group":"Consumption Events","pages":[{"title":"Consumption Events - List","api":"GET https://dashboard.laburen.com/api/consumption-events","href":"/api-reference/endpoint/consumption-events/list"},{"title":"Consumption Events - Summary","api":"GET https://dashboard.laburen.com/api/consumption-events/summary","href":"/api-reference/endpoint/consumption-events/summary"}]},{"group":"Credits","pages":[{"title":"Credits - Balance","api":"GET https://dashboard.laburen.com/api/credits/balance","description":"Get the current credit balance of your organization and whether it can run agent messages","href":"/api-reference/endpoint/credits/balance"}]},{"group":"Usage","pages":[{"title":"Usage - Increment Agent Queries","api":"POST https://dashboard.laburen.com/api/usage/increment-agent-queries","href":"/api-reference/endpoint/usage/increment-agent-queries"}]},{"title":"Transcribe Audio","api":"POST https://dashboard.laburen.com/api/transcribe-audio","description":"This endpoint allows you to transcribe audio files to text using Azure Speech-to-Text services. Only available for public agents.","href":"/api-reference/endpoint/transcribe-audio"}]}]},{"anchor":"support@laburen.com","icon":"comment-question","href":"mailto:support@laburen.com"}]},"basePath":"","title":"Usage - Increment Agent Queries - Laburen Documentacion","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js"]}