Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric’s name, type, value, and tags.
This API endpoint is provided to add additional metrics to AppSignal, where an existing integration can’t be used or the language used isn’t supported (yet).This endpoint is meant for integrations that send aggregated metrics over a small period, it’s preferred to send one request every 5 seconds with 100 metrics over 100 requests per 5 minutes with one metric each.
The endpoint checks the API key and requires a nonempty body of up to 500 KB. A 200 OK response means the request was accepted for processing. It does not confirm that the payload’s data was stored. If data is missing, check the format shown on this page.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"AppSignal Documentation","description":"AppSignal documentation: install and configure application performance monitoring, error tracking, logging, and uptime checks for Ruby, Elixir, Node.js, Python, and more.","colors":{"primary":"#1b44da","light":"#60a5fa","dark":"#14329f"},"logo":{"light":"https://mintcdn.com/appsignal-715f5a51/5M0NK0KFu-w9Cutw/logo/dark.svg?fit=max\u0026auto=format\u0026n=5M0NK0KFu-w9Cutw\u0026q=85\u0026s=08633ef0322ee629d3264aaad3d3f737","dark":"https://mintcdn.com/appsignal-715f5a51/5M0NK0KFu-w9Cutw/logo/dark.svg?fit=max\u0026auto=format\u0026n=5M0NK0KFu-w9Cutw\u0026q=85\u0026s=08633ef0322ee629d3264aaad3d3f737","href":"https://www.appsignal.com"},"favicon":"https://mintcdn.com/appsignal-715f5a51/MS9b5WO71lSfD5jG/favicon.svg?fit=max\u0026auto=format\u0026n=MS9b5WO71lSfD5jG\u0026q=85\u0026s=6cad991c579398b5c3c4d991d92fd80d","api":{"openapi":"api/v2/openapi.json","playground":{"display":"simple"},"mdx":{"server":"https://appsignal.com"}},"appearance":{"default":"system"},"navbar":{"primary":{"type":"button","label":"Get started","href":"https://appsignal.com/users/sign_up"}},"footer":{"socials":{"x":"https://x.com/AppSignal","github":"https://github.com/appsignal","linkedin":"https://nl.linkedin.com/company/appsignal","discord":"https://discord.gg/sBWWGwYzfC"},"links":[{"header":"Resources","items":[{"label":"Plans \u0026 pricing","href":"https://www.appsignal.com/plans"},{"label":"Documentation","href":"https://docs.appsignal.com/"},{"label":"Blog","href":"https://blog.appsignal.com/"},{"label":"Customer Stories","href":"https://www.appsignal.com/customers"},{"label":"Changelog","href":"https://www.appsignal.com/changelog"},{"label":"Learning Center","href":"https://www.appsignal.com/learning-center"},{"label":"Why AppSignal","href":"https://www.appsignal.com/why"}]},{"header":"Support","items":[{"label":"Contact us","href":"https://www.appsignal.com/contact"},{"label":"Email support","href":"mailto:support@appsignal.com"},{"label":"Status","href":"https://status.appsignal.com/"},{"label":"Security","href":"https://www.appsignal.com/security"}]},{"header":"About","items":[{"label":"About AppSignal","href":"https://www.appsignal.com/about"},{"label":"Jobs","href":"https://www.appsignal.com/jobs"},{"label":"Diversity","href":"https://www.appsignal.com/diversity"},{"label":"Open Source","href":"https://www.appsignal.com/open-source"}]},{"header":"For LLMs","items":[{"label":"Full Docs for LLMs","href":"https://docs.appsignal.com/llms-full.txt"},{"label":"Docs Index for LLMs","href":"https://docs.appsignal.com/llms.txt"}]}]},"seo":{"metatags":{"og:site_name":"AppSignal Documentation","og:type":"website","twitter:card":"summary_large_image","twitter:site":"@AppSignal","google-site-verification":"02FM2LYkYEEMzTsWihVLwhgzgYpQNSpY-FSP_pxlaFs"},"organization":{"name":"AppSignal","url":"https://www.appsignal.com","sameAs":["https://x.com/AppSignal","https://github.com/appsignal","https://nl.linkedin.com/company/appsignal"]},"indexing":"navigable"},"errors":{"404":{"redirect":false,"title":"404: We couldn't find a trace of this page - Woops!","description":"This page has moved or doesn't exist. Search the [docs](https://docs.appsignal.com/getting-started), or [reach out to support](mailto:support@appsignal.com) and we'll point you in the right direction."}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"schema":false},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"getting-started"},{"language":"pt-BR","href":"pt-BR/getting-started"},{"language":"fr","href":"fr/getting-started"},{"language":"de","href":"de/getting-started"},{"language":"zh-CN","href":"zh-CN/getting-started"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"appsignal-715f5a51","hasAudioNarration":false,"actualSubdomain":"appsignal-715f5a51","customDomains":["docs.appsignal.com"],"gitSource":{"type":"github","owner":"appsignal","repo":"appsignal-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b10317842b8a1a13bb9180d","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"en","tag":"AppSignal Documentation","count":553},{"language":"en","tag":"SDKs \u0026 telemetry","count":273},{"language":"en","tag":"Language SDKs","count":252},{"language":"en","tag":"Integrations","count":179},{"language":"en","tag":"API","count":92},{"language":"en","tag":"Features","count":91},{"language":"en","tag":"Ruby","count":65},{"language":"en","tag":"Account \u0026 Support","count":62},{"language":"en","tag":"Homepage","count":43},{"language":"en","tag":"Logs, metrics \u0026 charts","count":43}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@appsignal.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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}],"starterQuestions":[{"_id":"6a3bff9b0577bfeda02291d4","deploymentId":"69cbc6b3085f63c685d185ec","questionText":"What's new in latest releases of AppSignal?","status":"active","generatedBy":"manual","createdAt":"2026-06-24T16:02:35.552Z","updatedAt":"2026-06-24T16:02:35.552Z","__v":0},{"_id":"6a10046ecdfc2b165df5be04","deploymentId":"69cbc6b3085f63c685d185ec","questionText":"What can I do with the AppSignal MCP server?","status":"active","generatedBy":"manual","createdAt":"2026-05-22T07:23:26.099Z","updatedAt":"2026-05-22T07:23:26.099Z","__v":0},{"_id":"6a100460cdfc2b165df5bdde","deploymentId":"69cbc6b3085f63c685d185ec","questionText":"What are the Ruby gem's configuration options?","status":"active","generatedBy":"manual","createdAt":"2026-05-22T07:23:12.282Z","updatedAt":"2026-05-22T07:23:12.282Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--text-heading: #111827;--text-default: #203053;--text-secondary: #415377;--text-muted: #67789d;--text-subtle: #8896b3;--text-strong: #0a1530;--link: #3c61e7;--link-hover: #1b44da;--edge-default: #d9dde7;--edge-strong: #bfc6d6;--page-bg: #ffffff;--surface-subtle: #f5f7f9;--surface-hover: #edf0f5;--surface-active: #e8ecf3;--panel-bg: #ffffff;--iconbox-bg: #ffffff;--bar-bg: #0a1530;--bar-border: #203053;--bar-text: #d9dde7;--bar-icon: #a2adc4;--cta-bg: #1b44da;--shadow-iconbox: 0 1px 2px rgb(0 0 0 / 0.05);--shadow-iconbox-hover: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--shadow-panel: 0 1px 3px 0 rgba(10, 21, 48, 0.1), 0 1px 2px -1px rgba(10, 21, 48, 0.1)}.dark{--text-heading: #f5f5f5;--text-default: #e5e5e5;--text-secondary: #a3a3a3;--text-muted: #8b8b8b;--text-subtle: #787878;--text-strong: #f5f5f5;--link: #60a5fa;--link-hover: #93c5fd;--edge-default: #383838;--edge-strong: #383838;--page-bg: #141414;--surface-subtle: #1c1c1c;--surface-hover: #242424;--surface-active: #2e2e2e;--panel-bg: #1e1e1e;--iconbox-bg: #2a2a2a;--bar-bg: #1a1a1a;--bar-border: #2e2e2e;--bar-text: #c8c8c8;--bar-icon: #8b8b8b;--cta-bg: #4a6ae8;--shadow-iconbox: 0 1px 2px rgb(0 0 0 / 0.4);--shadow-iconbox-hover: 0 2px 6px -1px rgb(0 0 0 / 0.55), 0 1px 3px -1px rgb(0 0 0 / 0.45);--shadow-panel: 0 4px 12px -2px rgb(0 0 0 / 0.6), 0 2px 6px -2px rgb(0 0 0 / 0.5)}#navbar li:has(>a[href$=\"/getting-started\"]){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}html #navbar div[class*=\"bg-background-light\"]{background-color:var(--bar-bg);backdrop-filter:none;-webkit-backdrop-filter:none}html #navbar div.border-b{border-bottom-color:var(--bar-border)}html #navbar a,html #navbar button{color:var(--bar-text)}html #navbar a:hover,html #navbar button:hover{color:#ffffff}html #navbar [class*=\"group/search\"],html #navbar [class*=\"group/search\"] *{color:var(--bar-text)}html #navbar [class*=\"group/search\"]:hover,html #navbar [class*=\"group/search\"]:hover *{color:#ffffff}html #navbar [class*=\"group/search\"] [class*=\"text-xs\"][class*=\"rounded-full\"],html.dark #navbar [class*=\"group/search\"] [class*=\"text-xs\"][class*=\"rounded-full\"]{background-color:transparent}html .sidebar-title,html .sidebar-title>*,html h2[data-layout-item=\"toc-title\"],html h2[data-layout-item=\"toc-title\"] button,html h2[data-layout-item=\"toc-title\"] button:hover,html h2[data-layout-item=\"toc-title\"] span{color:var(--text-muted);font-size:14px;font-weight:600;line-height:17.5px;letter-spacing:0.7px;text-transform:uppercase}html h2[data-layout-item=\"toc-title\"] button svg{display:none}html .eyebrow{letter-spacing:0.7px;text-transform:uppercase}html nav[aria-label=\"Pages\"] a:not([aria-current]),html nav[aria-label=\"Pages\"] button[aria-expanded]{color:var(--text-default)}html nav[aria-label=\"Pages\"] button[aria-expanded] svg{color:#707276}html.dark nav[aria-label=\"Pages\"] button[aria-expanded] svg{color:#9fa0a5}html{--as-nav-icon: 1.75rem;--as-nav-step: 0.5rem;--as-nav-shave: calc(0.75rem - var(--as-nav-step))}html nav[aria-label=\"Pages\"] ul.sidebar-group ul{--as-nav-depth: 1}html nav[aria-label=\"Pages\"] ul.sidebar-group ul ul{--as-nav-depth: 2}html nav[aria-label=\"Pages\"] ul.sidebar-group ul ul ul{--as-nav-depth: 3}html nav[aria-label=\"Pages\"] li[data-group-tag]:has(>button>div:first-child>svg)>ul{--as-nav-inset: var(--as-nav-icon)}html nav[aria-label=\"Pages\"] ul.sidebar-group :is(a,button)>:first-child{margin-left:calc(\n var(--as-nav-inset, 0rem) - var(--as-nav-shave) * var(--as-nav-depth, 0)\n )}html nav a[aria-current=\"page\"],html aside a[aria-current=\"page\"]{background-color:transparent}html .prose{--tw-prose-body: var(--text-secondary);--tw-prose-lead: var(--text-secondary);--tw-prose-links: var(--link)}html .mdx-content p:not(.callout *),html .mdx-content li:not(.callout *),html #content-area header p{color:var(--text-secondary)}html .callout{border-radius:8px}html .code-group{border-radius:8px}html .code-block-background{border-radius:8px!important}html .code-group .code-block-background{border-radius:6px!important}html [class*=\"min-w-[156px]\"]>button:first-child{border-radius:8px 0 0 8px}html [class*=\"min-w-[156px]\"]>button:last-child{border-radius:0 8px 8px 0}html [class*=\"min-w-[156px]\"],html [class*=\"min-w-[156px]\"]>button{border-color:transparent}html [class*=\"min-w-[156px]\"]>button:first-child{box-shadow:inset 0 1px 0 0 var(--edge-strong),\n inset 0 -1px 0 0 var(--edge-strong),\n inset 1px 0 0 0 var(--edge-strong)}html [class*=\"min-w-[156px]\"]>button:last-child{box-shadow:inset 0 1px 0 0 var(--edge-strong),\n inset 0 -1px 0 0 var(--edge-strong),\n inset -1px 0 0 0 var(--edge-strong),\n inset 1px 0 0 0 var(--edge-strong)}html [class*=\"min-w-[156px]\"]>button,html [class*=\"min-w-[156px]\"]>button *{color:var(--text-secondary)}html [class*=\"min-w-[156px]\"]>button:hover{background-color:var(--surface-hover)}html [class*=\"min-w-[156px]\"]>button{background-color:var(--page-bg)}html body{background-color:var(--page-bg)}html #navbar div:has(>nav[aria-label=\"Main\"]){gap:8px}html #navbar div:has(>nav[aria-label=\"Main\"])>div:first-child,html #navbar div:has(>nav[aria-label=\"Main\"])>.topbar-right-container{display:contents}html #navbar div:has(>nav[aria-label=\"Main\"])>div:first-child>a{order:1}html #navbar nav[aria-label=\"Main\"]{order:2;margin-right:auto;margin-left:8px;padding-left:0}html #navbar nav[aria-label=\"Main\"]::before{content:\"\";flex-shrink:0;width:1px;height:20px;margin-right:8px;background-color:var(--bar-icon);opacity:0.5}html #navbar .topbar-right-container>div:has(>#search-bar-entry){order:3}html #navbar .topbar-right-container>ul{order:4}html #navbar .topbar-right-container>button{order:5}html #navbar div:has(>#localization-select-trigger){order:6}html #navbar .topbar-right-container>div:not(:has(>#search-bar-entry)){order:7}html #navbar #localization-select-trigger::before{content:\"\";flex-shrink:0;width:16px;height:16px;background-color:currentColor;-webkit-mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/globe.svg)\n center / contain no-repeat;mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/globe.svg)\n center / contain no-repeat}html #navbar #localization-select-trigger>span{font-size:0}html #navbar #localization-select-trigger>span::after{font-size:14px;content:\"EN\"}html[lang=\"de\"] #navbar #localization-select-trigger>span::after{content:\"DE\"}html[lang=\"fr\"] #navbar #localization-select-trigger>span::after{content:\"FR\"}html[lang=\"pt-BR\"] #navbar #localization-select-trigger>span::after{content:\"PT-BR\"}html[lang=\"zh-CN\"] #navbar #localization-select-trigger>span::after{content:\"ZH\"}@layer utilities{@container navbar (min-width: 1440px){html body #navbar button#search-bar-entry{width:fit-content!important;padding-left:0.875rem!important;padding-right:0.75rem!important;justify-content:space-between!important}html body #navbar button#search-bar-entry .truncate.min-w-0{display:block!important}html body #navbar button#search-bar-entry span.rounded-full{display:inline-flex!important}html body #navbar button#assistant-entry{width:auto!important;padding-left:0.75rem!important;padding-right:0.875rem!important;justify-content:space-between!important}html body #navbar button#assistant-entry span.whitespace-nowrap{display:inline!important}}}html #navbar nav[aria-label=\"Main\"] li>button>svg:first-of-type,html #navbar nav[aria-label=\"Main\"] li>a>svg:first-of-type,html #navbar nav[aria-label=\"Main\"] li>button>svg:last-of-type{display:none}html #navbar nav[aria-label=\"Main\"] li>button::after{content:\"\";flex-shrink:0;width:10px;height:13px;background-color:var(--bar-icon);-webkit-mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/angle-down.svg)\n center / contain no-repeat;mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/angle-down.svg)\n center / contain no-repeat}html #navbar #localization-select-trigger svg{color:var(--bar-icon)}html #navbar #localization-select-trigger{color:var(--bar-text)}html #navbar #localization-select-trigger:hover{color:#ffffff}html #navbar nav[aria-label=\"Main\"] li>button:focus-visible,html #navbar nav[aria-label=\"Main\"] li>a:focus-visible{outline:none}html #navbar nav[aria-label=\"Main\"] li>button,html #navbar nav[aria-label=\"Main\"] li>a{font-size:16px;font-weight:400;letter-spacing:normal;padding-left:12px;padding-right:12px}html #navbar nav[aria-label=\"Main\"] li>button:hover,html #navbar nav[aria-label=\"Main\"] li>a:hover{background-color:transparent}html #navbar .navbar-link a{border:0;background:transparent;box-shadow:none;color:var(--bar-text);padding:4px 12px;font-size:16px;font-weight:400}html #navbar .navbar-link a:hover{background:transparent;box-shadow:none;color:#ffffff}html #topbar-cta-button a,html #topbar-cta-button a *{color:#ffffff}html #topbar-cta-button a{background:var(--cta-bg);border-radius:4px;height:34px;padding:4px 12px;font-size:16px;font-weight:400}html #navbar .text-gray-900{color:#ffffff}html #navbar #search-bar-entry,html #navbar #assistant-entry{background-color:transparent;box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.25)}html #navbar #search-bar-entry:hover,html #navbar #assistant-entry:hover{background-color:rgba(255, 255, 255, 0.08);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.45)}html:not(.dark) #navbar #search-bar-entry,html:not(.dark) #navbar #assistant-entry{background-color:rgba(255, 255, 255, 0.07);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.3)}html:not(.dark) #navbar #search-bar-entry:hover,html:not(.dark) #navbar #assistant-entry:hover{background-color:rgba(255, 255, 255, 0.13);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.5)}html #navbar #assistant-entry,html #navbar #assistant-entry *{color:var(--bar-text)}html #navbar #assistant-entry:hover,html #navbar #assistant-entry:hover *{color:#ffffff}html #navbar #assistant-entry [class*=\"text-xs\"][class*=\"rounded-full\"]{display:none}html div:has(>.chat-assistant-floating-input),html .chat-assistant-floating-input{display:none}html #navbar [data-component-name=\"theme-toggle\"] svg,html #navbar [data-component-name=\"theme-preference-menu\"] svg{color:var(--bar-text)}html #navbar [data-component-name=\"theme-toggle\"]:hover svg,html #navbar [data-component-name=\"theme-preference-menu\"]:hover svg{color:#ffffff}html [role=\"menu\"]:has(>a.nav-dropdown-item){width:288px;max-width:none;max-height:none!important;overflow-y:visible!important;overflow-x:visible!important;padding:16px 12px;border:none;border-radius:8px;background-color:var(--panel-bg);box-shadow:var(--shadow-panel)}html [role=\"menu\"] a.nav-dropdown-item{position:relative;gap:12px;padding:4px 8px;border-radius:4px;color:var(--text-secondary)}html [role=\"menu\"] a.nav-dropdown-item:hover{background-color:transparent;color:var(--text-default)}html [role=\"menu\"] a.nav-dropdown-item span{font-size:16px;font-weight:400}html [role=\"menu\"] a.nav-dropdown-item::before{content:\"\";display:block;flex-shrink:0;width:28px;height:28px;border:1px solid var(--edge-default);border-radius:6px;background-color:var(--iconbox-bg);box-shadow:var(--shadow-iconbox);transition:box-shadow 0.15s}html [role=\"menu\"] a.nav-dropdown-item:hover::before{box-shadow:var(--shadow-iconbox-hover)}html [role=\"menu\"] a.nav-dropdown-item>svg:first-of-type{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:12px;height:12px;min-width:12px;min-height:12px}html [role=\"menu\"] a.nav-dropdown-item:focus-visible{outline:none}html [role=\"menu\"] a.nav-dropdown-item[data-highlighted]{color:var(--text-default)}html [role=\"menu\"] a.nav-dropdown-item>svg:last-of-type:not(:first-of-type){display:none}html [role=\"menu\"] a.nav-dropdown-item>svg:first-of-type{background-color:#1b44da}html [role=\"menu\"] a[href*=\"tour/errors\"]>svg:first-of-type{background-color:#e05729}html [role=\"menu\"] a[href*=\"tour/performance\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"appsignal.com/nodejs\"]>svg:first-of-type{background-color:#29a575}html [role=\"menu\"] a[href*=\"tour/hosts\"]>svg:first-of-type{background-color:#1e9393}html [role=\"menu\"] a[href*=\"tour/anomaly-detection\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"appsignal.com/ruby\"]>svg:first-of-type{background-color:#c8223d}html [role=\"menu\"] a[href*=\"tour/uptime-monitoring\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"appsignal.com/javascript\"]>svg:first-of-type{background-color:#ec9c24}html [role=\"menu\"] a[href*=\"tour/metrics\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"tour/automated-dashboards\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"appsignal.com/elixir\"]>svg:first-of-type{background-color:#8537ad}html [role=\"menu\"] a[href*=\"tour/log-management\"]>svg:first-of-type{background-color:#ef51c0}html [role=\"menu\"] a[href*=\"tour/check-ins\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"tour/workflow\"]>svg:first-of-type,html [role=\"menu\"] a[href*=\"appsignal.com/python\"]>svg:first-of-type{background-color:var(--link)}html [role=\"menu\"] a[href*=\"go-monitoring\"]>svg:first-of-type{background-color:#3aa2bc}html [role=\"menu\"] a[href*=\"java-monitoring\"]>svg:first-of-type{background-color:#c37b1f}html [role=\"menu\"] a[href*=\"php-monitoring\"]>svg:first-of-type{background-color:#5b62c4}html.dark [role=\"menu\"] a.nav-dropdown-item>svg:first-of-type{background-color:#60a5fa}@media (min-width: 1024px){html #navbar div[class*=\"lg:flex\"][class*=\"h-12\"]{height:4.5rem}html #sidebar-content{top:calc(4.5rem + var(--banner-height, 0px))!important;height:calc(100vh - 4.5rem - var(--banner-height, 0px))!important;padding-top:var(--as-content-top)}html #content-side-layout{top:4.5rem;height:calc(100vh - 4.5rem)}html{--scroll-mt: 7.5rem}}html{--as-content-font: 18px;--as-content-lede: 20px}html .mdx-content p,html .mdx-content [data-as=\"p\"],html .mdx-content li{font-size:var(--as-content-font)}html #content-area header p,html #content-area header [data-as=\"p\"]{font-size:var(--as-content-lede);line-height:1.5}html #content-area h1{font-size:36px;font-weight:700;line-height:1.125;letter-spacing:-0.02em;color:var(--text-heading)}html .mdx-content h2{font-size:24px;font-weight:650;line-height:1.25;letter-spacing:normal;color:var(--text-heading)}html .mdx-content h3{font-size:20px;font-weight:650;line-height:1.25;color:var(--text-heading)}html .mdx-content h4{font-size:16px;font-weight:650;line-height:1.25;color:var(--text-heading)}@media (min-width: 1024px){html{--as-sidebar-width: 17.5rem;--as-content-max: 53rem;--as-content-top: 1rem;--as-doc-gutter: 12px}html #sidebar-content{width:var(--as-sidebar-width)!important}html #sidebar-content #navigation-items>div{padding-left:var(--as-doc-gutter)}html #content-side-layout{padding-right:var(--as-doc-gutter)}html .peer.is-not-custom~#body-content #content-container{padding-top:var(--as-content-top)}html .peer.is-not-custom~#body-content{padding-left:var(--as-sidebar-width)!important}html .peer.is-not-custom~#body-content #content-area{max-width:var(--as-content-max);margin-inline:auto}}@media (min-width: 1024px){html #sidebar-content{position:fixed!important;overflow:hidden!important}html #sidebar-content #navigation-items>[data-component-part=\"scroll-area-viewport\"]{overflow-y:auto!important;overscroll-behavior-y:contain}html #content-side-layout{top:min(\n calc(4.5rem + var(--banner-height, 0px)),\n calc(100vh - var(--as-toc-height, 0px) - 2rem)\n );height:auto!important;max-height:none;overflow:visible!important}html #content-side-layout .base-ui-disable-scrollbar{overflow:visible!important}}html #footer{background-color:var(--bar-bg);position:relative;z-index:21}.dark #footer{border-top:1px solid var(--bar-border)}html #footer p.font-semibold{color:#fff;text-transform:uppercase;letter-spacing:0.05em;font-weight:500;border-bottom:1px solid var(--bar-border);padding-bottom:0.75rem}html #footer a[class*=\"text-gray-950/50\"]{color:#fff}html #footer a[class*=\"text-gray-950/50\"]:hover{color:#fff;text-decoration:underline}html #footer a>svg[style*=\"mask-image\"]{background-color:var(--bar-icon)}html #footer a:hover>svg[style*=\"mask-image\"]{background-color:#fff}html #footer div[class*=\"bg-gray-100\"]{background-color:var(--bar-border)}html #footer a[href*=\"mintlify.com\"]{color:var(--text-subtle)}html #footer a[href*=\"mintlify.com\"]:hover{color:#bfc6d6}html .callout[data-callout-type=\"note\"]{--as-co-bg: #eff3fa;--as-co-bd: #becfea;--as-co-tx: var(--link-hover)}html .callout[data-callout-type=\"info\"]{--as-co-bg: var(--surface-subtle);--as-co-bd: var(--edge-default);--as-co-tx: var(--text-default)}html .callout[data-callout-type=\"tip\"]{--as-co-bg: #eef8f4;--as-co-bd: #bbe2d3;--as-co-tx: #175c41}html .callout[data-callout-type=\"check\"]{--as-co-bg: #eef8f4;--as-co-bd: #bbe2d3;--as-co-tx: #175c41}html .callout[data-callout-type=\"warning\"]{--as-co-bg: #fdf7ed;--as-co-bd: #f9dfb9;--as-co-tx: #845714}html .callout[data-callout-type=\"danger\"]{--as-co-bg: #fbedef;--as-co-bd: #edb8c1;--as-co-tx: #701322}.dark .callout[data-callout-type=\"note\"]{--as-co-bg: #0b1b56;--as-co-bd: #102984;--as-co-tx: #60a5fa}.dark .callout[data-callout-type=\"tip\"],.dark .callout[data-callout-type=\"check\"]{--as-co-bg: #0e3828;--as-co-bd: #175c41;--as-co-tx: #4ade80}.dark .callout[data-callout-type=\"warning\"]{--as-co-bg: #50350c;--as-co-bd: #845714;--as-co-tx: #fbbf24}.dark .callout[data-callout-type=\"danger\"]{--as-co-bg: #440c15;--as-co-bd: #701322;--as-co-tx: #f87171}html .callout:is([data-callout-type=\"note\"],[data-callout-type=\"info\"],[data-callout-type=\"tip\"],[data-callout-type=\"check\"],[data-callout-type=\"warning\"],[data-callout-type=\"danger\"]){background-color:var(--as-co-bg);border-color:var(--as-co-bd);color:var(--as-co-tx)}html .callout[data-callout-type] [data-component-part=\"callout-content\"],html .callout[data-callout-type] [data-component-part=\"callout-icon\"] svg{color:inherit}html .mdx-content strong{color:var(--text-default);font-weight:500}html .mdx-content a:not(.callout *){color:var(--link)}html .mdx-content a:not(.callout *):hover{color:var(--link-hover);border-bottom-width:1px}html .mdx-content :not(pre)>code{background-color:var(--surface-subtle);color:var(--text-default);border-radius:8px}html .mdx-content table{border-collapse:collapse;font-size:0.875rem}html .mdx-content table th,html .mdx-content table td{border:1px solid var(--edge-default);padding:0.5rem 1.25rem}html .mdx-content table th{background-color:var(--surface-subtle);font-weight:400;color:var(--text-secondary)}html .mdx-content table td{color:var(--text-default)}@media (min-width: 1024px){html #sidebar-content{background-color:var(--surface-subtle);border-right:1px solid var(--edge-default)}html #sidebar-content a{border-radius:8px}html #sidebar-content a:hover{background-color:var(--surface-hover)}html #sidebar-content a[aria-current=\"page\"]{background-color:var(--surface-active);color:var(--text-strong)}}html #sidebar-content a svg{color:inherit}html #content-side-layout nav a{font-size:14px;font-weight:400;color:var(--text-secondary);text-shadow:none}html #content-side-layout nav a:hover{color:var(--link)}html #content-side-layout nav a[aria-current=\"location\"]{color:var(--link);font-weight:500}html #content-side-layout nav [data-layout-item=\"toc-indicator\"]{display:none}html #content-side-layout li.toc-item{padding-left:0}html #content-side-layout ul.toc ul{margin-left:0}html #content-side-layout nav>h2[data-layout-item=\"toc-title\"]{margin-bottom:12px}html #content-side-layout li.toc-item:not([data-depth=\"0\"])>a{border-left:1px solid var(--edge-default)}html #content-side-layout li.toc-item[data-depth=\"0\"]+li.toc-item:not([data-depth=\"0\"])>a{margin-top:6px}html #content-side-layout li.toc-item:not([data-depth=\"0\"]):has(+li.toc-item[data-depth=\"0\"])>a{margin-bottom:6px}html #pagination{display:flex;gap:0;margin-top:1.5rem;margin-bottom:1.5rem;border:1px solid var(--edge-strong);border-radius:8px;overflow:hidden}html #pagination>div:empty{display:none}html #pagination>a{flex:1 1 0;position:relative;padding:1rem;border:0;border-radius:0}html #pagination>a:first-child{padding-left:2.5rem}html #pagination>a:last-child{justify-content:flex-end;padding-right:2.5rem}html #pagination>a+a{border-left:1px solid var(--edge-strong)}html #pagination>a:hover{background-color:var(--surface-hover)}html #pagination>a>div{display:flex;flex-direction:column-reverse;gap:0.25rem}html #pagination>a>div>*{margin:0}html #pagination>a>div>div:first-child{font-size:1.125rem;line-height:1.75rem;font-weight:400;color:var(--text-secondary);transition:color 300ms}html #pagination>a:hover>div>div:first-child{color:var(--link)}html #pagination>a span{font-size:0.875rem;font-weight:500;letter-spacing:0.025em;text-transform:uppercase;color:var(--text-subtle)}html #pagination>a svg{display:none}html #pagination>a::before{content:\"\";position:absolute;top:50%;width:13px;height:14px;transform:translateY(-50%);background-color:var(--text-secondary)}html #pagination>a:first-child::before{left:1rem;-webkit-mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/arrow-left.svg)\n center / contain no-repeat;mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/arrow-left.svg)\n center / contain no-repeat}html #pagination>a:last-child::before{right:1rem;-webkit-mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/arrow-right.svg)\n center / contain no-repeat;mask:url(https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/arrow-right.svg)\n center / contain no-repeat}@media (max-width: 639px){html #pagination{flex-direction:column}html #pagination>a+a{border-left:0;border-top:1px solid var(--edge-default)}html #pagination>a:last-child{justify-content:flex-start;padding-left:2.5rem;padding-right:1rem}html #pagination>a:last-child>div>div:first-child{text-align:left}html #pagination>a:last-child>div>div:last-child{flex-direction:row}html #pagination>a:last-child::before{right:auto;left:1rem}}html .card{border-radius:8px;background-color:var(--page-bg);border-width:0;box-shadow:inset 0 0 0 1px var(--edge-strong)}html.dark .card{background-color:var(--panel-bg)}html .card:not(:has(ul)):hover{background-color:var(--surface-hover)}html .card [data-component-part=\"card-content-container\"]:not(.flex) [data-component-part=\"card-icon\"]{float:left;margin:0.1875rem 0.625rem 0 0}html .card [data-component-part=\"card-content-container\"]:not(.flex) [data-component-part=\"card-title\"]{display:flex;align-items:center;margin-top:0}html .card [data-component-part=\"card-content-container\"]:not(.flex) [data-component-part=\"card-content\"]{margin-top:0.5rem}html .accordion-group{border-color:var(--edge-default);border-radius:8px}html.dark .accordion-group{border-color:var(--edge-default)}:root{--as-tn-top: 3rem}html .docs-translation-notice{position:sticky;top:var(--as-tn-top);z-index:10;display:flex;align-items:flex-start;gap:0.625rem;margin:0 0 1.5rem;padding:0.75rem 1rem;border:1px solid #becfea;border-radius:8px;background-color:#eff3fa;color:var(--link-hover);font-size:0.875rem;line-height:1.5}html.dark .docs-translation-notice{border-color:#102984;background-color:#0b1b56;color:#60a5fa}html .docs-translation-notice__icon{flex:none;width:1.125rem;height:1.125rem;margin-top:0.125rem}html .docs-translation-notice p{margin:0;color:inherit}html .docs-translation-notice a{color:inherit;text-decoration:underline;text-underline-offset:2px}html .docs-translation-notice a:hover{text-decoration:none}html .chat-assistant-send-button,html.dark .chat-assistant-send-button{background-color:var(--cta-bg)}html .chat-assistant-send-button:disabled,html.dark .chat-assistant-send-button:disabled{opacity:0.3}"}]}
{"page":{"pagePath":"api/public-endpoint/json-metrics","slug":"/api/public-endpoint/json-metrics","pageMetadata":{"title":"Public Endpoint - JSON Metrics","sidebarTitle":"JSON Metrics","description":"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric's name, type, value, and tags.","lastUpdatedDate":"2026-11-20","href":"/api/public-endpoint/json-metrics"},"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: \"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric’s name, type, value, and tags.\"\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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This API endpoint is provided to add additional metrics to AppSignal, where an existing integration can’t be used or the language used isn’t supported (yet).`}),`\n`,_jsx(_components.p,{children:`This endpoint is meant for integrations that send aggregated metrics over a small period, it’s preferred to send one request every 5 seconds with 100 metrics over 100 requests per 5 minutes with one metric each.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsxs(_components.p,{children:[`Request method: `,_jsx(_components.code,{children:`POST`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://appsignal-endpoint.net/metrics/json`,children:`https://appsignal-endpoint.net/metrics/json`})}),_jsx(_components.td,{children:`Accepts JSON formatted data`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`url-parameters`,children:`URL parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`api_key`}),_jsx(_components.td,{children:`String`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Front-end`}),` or `,_jsx(_components.strong,{children:`Push`}),` API key, can be found in `,_jsx(_components.a,{href:`https://appsignal.com/redirect-to/app?to=info`,children:`App settings`}),`.`]})]})})]}),`\n`,_jsx(CodeBlock,{filename:`Shell`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`https://appsignal-endpoint.net/metrics/json?api_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003capi_key>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For an organization-level Push API key, also add `,_jsx(_components.code,{children:`name`}),` and `,_jsx(_components.code,{children:`environment`}),` for an existing app.`]}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsx(_components.p,{children:`The post body should contain JSON formatted metrics separated by a newline, or as a full json body.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`name`}),_jsx(_components.td,{children:`String`}),_jsxs(_components.td,{children:[`Name of metric, shouldn’t contain spaces or special characters, e.g. only (`,_jsx(_components.code,{children:`[a-zA-Z0-9-_]`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metricType`}),_jsx(_components.td,{children:`String`}),_jsxs(_components.td,{children:[`Metric type, can be one of `,_jsx(_components.code,{children:`[gauge, counter, timing, histogram]`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`value`}),_jsx(_components.td,{children:`Float`}),_jsx(_components.td,{children:`(Float) value`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`tags`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Object\u003cString, String>`})}),_jsxs(_components.td,{children:[`Object containing tags. Both key and value should be a string, for example: `,_jsx(_components.code,{children:`{ \"hostname\": \"frontend1\" }`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Example of JSON body`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`JSON`,numberOfLines:`26`,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:`26`,children:[_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"traffic_gauge\"`}),_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:` \"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gauge\"`}),_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:`19.8`}),_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:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"frontend1\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error_counter\"`}),_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:` \"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"counter\"`}),_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:`10`}),_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:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"frontend1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"disk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vda\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration_timing\"`}),_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:` \"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timing\"`}),_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:`19`}),_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:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"lambda\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"login\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration_timing\"`}),_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:` \"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"histogram\"`}),_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:`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:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"lambda\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"login\"`}),_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`]})})})}),`\n`,_jsx(_components.p,{children:`Example of newline-separated body:`}),`\n`,_jsx(CodeBlock,{filename:`JSON`,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"traffic_gauge\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gauge\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`19.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"frontend1\"`}),_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\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error_counter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"counter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"frontend1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"disk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vda\"`}),_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\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration_timing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`19`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"lambda\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"login\"`}),_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\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration_timing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"metricType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"histogram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"lambda\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"login\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`The endpoint checks the API key and requires a nonempty body of up to 500 KB. A `,_jsx(_components.code,{children:`200 OK`}),` response means the request was accepted for processing. It does not confirm that the payload’s data was stored. If data is missing, check the format shown on this page.`]})})]})}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":"Public Endpoint - JSON Metrics","sidebarTitle":"JSON Metrics","description":"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric's name, type, value, and tags.","lastUpdatedDate":"2026-11-20","href":"/api/public-endpoint/json-metrics"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"URL parameters","slug":"url-parameters","depth":2,"children":[]},{"title":"Body parameters","slug":"body-parameters","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/appsignal-715f5a51/ad683df1f3f6cc41/auth-button.js","/_mintlify/custom/appsignal-715f5a51/97f6ba115303669a/posthog.js","/_mintlify/custom/appsignal-715f5a51/b643723f47c7b1af/pagination-labels.js","/_mintlify/custom/appsignal-715f5a51/87da33668b962870/sidebar-flow.js","/_mintlify/custom/appsignal-715f5a51/c6bd163f69476e3f/translation-notice.js","/_mintlify/custom/appsignal-715f5a51/61b48af0445cbf06/assistant-label.js","/_mintlify/custom/appsignal-715f5a51/2a90f4a4ba87667d/hubspot.js"],"subdomain":"appsignal-715f5a51","siteName":"AppSignal Documentation","title":"Public Endpoint - JSON Metrics - AppSignal Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api/public-endpoint/json-metrics","matchLevel":0},"pt-BR":{"href":"/pt-BR/api/public-endpoint/json-metrics","matchLevel":1,"noindex":true},"fr":{"href":"/fr/api/public-endpoint/json-metrics","matchLevel":1,"noindex":true},"de":{"href":"/de/api/public-endpoint/json-metrics","matchLevel":1,"noindex":true},"zh-CN":{"href":"/zh-CN/api/public-endpoint/json-metrics","matchLevel":1,"noindex":true}}},"lastModified":"2026-11-24T17:40:15.895Z","originalFileLocation":"api/public-endpoint/json-metrics.mdx","locale":"en"},"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=\"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric\u0026#x27;s name, type, value, and tags.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AppSignal Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Public Endpoint - JSON Metrics - AppSignal Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric\u0026#x27;s name, type, value, and tags.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AppSignal Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.appsignal.com/api/public-endpoint/json-metrics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://appsignal-715f5a51.mintlify.site/_mintlify/api/og/v2?division=Public+endpoint\u0026amp;title=Public+Endpoint+-+JSON+Metrics\u0026amp;description=Send+batched+JSON+metrics+to+the+public+endpoint+with+a+Front-end+or+Push+API+key.+Set+each+metric%27s+name%2C+type%2C+value%2C+and+tags.\u0026amp;theme=cdd60be3fe2d4c3bdb8f0d72\u0026amp;signature=d2f384b7a66e98dc96798a9051d52a32f3c5e2ae040f35f9df653433a1f01c8b\">\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=\"Public Endpoint - JSON Metrics - AppSignal Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric\u0026#x27;s name, type, value, and tags.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://appsignal-715f5a51.mintlify.site/_mintlify/api/og/v2?division=Public+endpoint\u0026amp;title=Public+Endpoint+-+JSON+Metrics\u0026amp;description=Send+batched+JSON+metrics+to+the+public+endpoint+with+a+Front-end+or+Push+API+key.+Set+each+metric%27s+name%2C+type%2C+value%2C+and+tags.\u0026amp;theme=cdd60be3fe2d4c3bdb8f0d72\u0026amp;signature=d2f384b7a66e98dc96798a9051d52a32f3c5e2ae040f35f9df653433a1f01c8b\">\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/appsignal-715f5a51/ef4Z3pZiXQ79CLMp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AppSignal Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1b44da\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"02FM2LYkYEEMzTsWihVLwhgzgYpQNSpY-FSP_pxlaFs\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.appsignal.com/api/public-endpoint/json-metrics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/public-endpoint/json-metrics.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.appsignal.com/#organization\",\"name\":\"AppSignal\",\"url\":\"https://www.appsignal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/appsignal-715f5a51/5M0NK0KFu-w9Cutw/logo/dark.svg?fit=max\u0026auto=format\u0026n=5M0NK0KFu-w9Cutw\u0026q=85\u0026s=08633ef0322ee629d3264aaad3d3f737\"},\"sameAs\":[\"https://x.com/AppSignal\",\"https://github.com/appsignal\",\"https://nl.linkedin.com/company/appsignal\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.appsignal.com#website\",\"name\":\"AppSignal Documentation\",\"url\":\"https://docs.appsignal.com\",\"publisher\":{\"@id\":\"https://www.appsignal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics#webpage\",\"url\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics\",\"name\":\"Public Endpoint - JSON Metrics\",\"description\":\"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric's name, type, value, and tags.\",\"dateModified\":\"2026-11-20T00:00:00.000Z\",\"isPartOf\":{\"@id\":\"https://docs.appsignal.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.appsignal.com/api/which-api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Public endpoint\",\"item\":\"https://docs.appsignal.com/api/public-endpoint\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Public Endpoint - JSON Metrics\",\"item\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics#article\",\"headline\":\"Public Endpoint - JSON Metrics\",\"name\":\"Public Endpoint - JSON Metrics\",\"description\":\"Send batched JSON metrics to the public endpoint with a Front-end or Push API key. Set each metric's name, type, value, and tags.\",\"url\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.appsignal.com/api/public-endpoint/json-metrics#webpage\"},\"dateModified\":\"2026-11-20T00:00:00.000Z\",\"publisher\":{\"@id\":\"https://www.appsignal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.appsignal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AppSignal Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AppSignal\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/public-endpoint/json-metrics.md","siteName":"AppSignal Documentation","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"AppSignal Documentation","anchors":[{"anchor":"Homepage","icon":{"style":"solid","name":"rocket"},"pages":[{"title":"Homepage","href":"/getting-started"}]},{"anchor":"Features","icon":{"style":"solid","name":"star"},"pages":[{"title":"Features","href":"/features"}]},{"anchor":"SDKs \u0026 telemetry","icon":{"style":"solid","name":"cube"},"pages":[{"title":"SDKs \u0026 telemetry","href":"/sdks"}]},{"anchor":"Integrations","icon":{"style":"solid","name":"puzzle-piece"},"pages":[{"title":"Integrations","href":"/application/integrations"}]},{"anchor":"API","icon":{"style":"solid","name":"code"},"groups":[{"group":"API","pages":[{"title":"Which API should I use?","sidebarTitle":"Which API?","icon":"signs-post","href":"/api/which-api"},{"group":"Public API (V2)","icon":{"style":"solid","name":"cloud-arrow-down"},"expanded":true,"pages":[{"title":"Public API (V2)","sidebarTitle":"Overview","href":"/api/v2/overview"},{"title":"Querying logs","sidebarTitle":"Logs","href":"/api/v2/logs"},{"title":"Querying metrics","sidebarTitle":"Metrics","href":"/api/v2/metrics"},{"title":"Querying traces","sidebarTitle":"Tracing","href":"/api/v2/traces"},{"group":"Reference","icon":{"style":"solid","name":"book"},"pages":[{"group":"Metrics endpoints","pages":[{"openapi":"POST /api/v2/metrics/timeseries","title":"Query a metrics timeseries","href":"/api/v2/reference/metrics/timeseries"},{"openapi":"POST /api/v2/metrics/list","title":"List aggregated metrics","href":"/api/v2/reference/metrics/list"},{"openapi":"GET /api/v2/metrics/names/{site_id}","title":"List metric names","href":"/api/v2/reference/metrics/names"},{"openapi":"GET /api/v2/metrics/type_and_tags/{site_id}/{metric_name}","title":"Get a metric's type and tags","href":"/api/v2/reference/metrics/type-and-tags"},{"openapi":"POST /api/v2/metrics/anomaly","title":"Detect anomalies in a metrics timeseries","href":"/api/v2/reference/metrics/anomaly"}]},{"group":"Tracing endpoints","pages":[{"openapi":"POST /api/v2/tracing/locator","title":"Locate a trace","href":"/api/v2/reference/tracing/locator"},{"openapi":"POST /api/v2/tracing/trace","title":"Get a trace","href":"/api/v2/reference/tracing/trace"},{"openapi":"POST /api/v2/tracing/trace/performance","title":"Get a performance action's trace","href":"/api/v2/reference/tracing/trace/performance"},{"openapi":"POST /api/v2/tracing/trace/error","title":"Get an error incident's trace","href":"/api/v2/reference/tracing/trace/error"},{"openapi":"POST /api/v2/tracing/traces/performance","title":"List performance traces","href":"/api/v2/reference/tracing/traces/performance"},{"openapi":"POST /api/v2/tracing/traces/errors","title":"List error traces","href":"/api/v2/reference/tracing/traces/errors"},{"openapi":"POST /api/v2/tracing/actions","title":"List performance actions","href":"/api/v2/reference/tracing/actions"},{"openapi":"POST /api/v2/tracing/action_edges","title":"List action edges","href":"/api/v2/reference/tracing/action-edges"},{"openapi":"POST /api/v2/tracing/site_edges","title":"List site edges","href":"/api/v2/reference/tracing/site-edges"},{"openapi":"POST /api/v2/tracing/slow_events","title":"List slow events","href":"/api/v2/reference/tracing/slow-events"},{"openapi":"POST /api/v2/tracing/slow_events/actions","title":"List actions for a slow event","href":"/api/v2/reference/tracing/slow-events/actions"},{"openapi":"POST /api/v2/tracing/errors","title":"List incident error counts","href":"/api/v2/reference/tracing/errors"},{"openapi":"POST /api/v2/tracing/metadata_distributions","title":"List incident metadata distributions","href":"/api/v2/reference/tracing/metadata-distributions"}]},{"group":"Logs endpoint","pages":[{"openapi":"POST /api/v2/logs/lines","title":"Search log lines","href":"/api/v2/reference/logs/lines"}]},{"group":"Search endpoint","pages":[{"openapi":"POST /api/v2/search","title":"Search traces","href":"/api/v2/reference/search"}]},{"group":"Events endpoint","pages":[{"openapi":"POST /api/v2/events/group_list","title":"List the top events of event groups","href":"/api/v2/reference/events/group-list"}]},{"group":"Kubernetes endpoints","pages":[{"openapi":"POST /api/v2/kubernetes/nodes","title":"Query Kubernetes node metrics","href":"/api/v2/reference/kubernetes/nodes"},{"openapi":"POST /api/v2/kubernetes/pods","title":"Query Kubernetes pod metrics","href":"/api/v2/reference/kubernetes/pods"},{"openapi":"POST /api/v2/kubernetes/pods/overview","title":"Query Kubernetes pod overviews","href":"/api/v2/reference/kubernetes/pods/overview"}]},{"group":"Deploys endpoint","pages":[{"openapi":"POST /api/v2/deploys/stats","title":"Query deployment statistics","href":"/api/v2/reference/deploys/stats"}]},{"group":"Check-ins endpoint","pages":[{"openapi":"POST /api/v2/check_ins/test_cron","title":"Test a cron expression","href":"/api/v2/reference/check-ins/test-cron"}]},{"group":"Authentication endpoint","pages":[{"openapi":"GET /api/v2/auth","title":"Test authentication","href":"/api/v2/reference/auth"}]}]}]},{"group":"GraphQL","icon":{"style":"solid","name":"circle-nodes"},"pages":[{"title":"GraphQL API","sidebarTitle":"Overview","href":"/api/graphql"},{"title":"GraphQL API examples","sidebarTitle":"Examples","href":"/api/graphql/examples"},{"title":"GraphQL API mutation examples","sidebarTitle":"Mutation examples","href":"/api/graphql/mutations"}]},{"group":"REST API (V1)","icon":{"style":"solid","name":"server"},"pages":[{"title":"REST API (V1)","sidebarTitle":"Overview","icon":"compass","href":"/api"},{"title":"Graphs API","sidebarTitle":"Graphs","icon":"chart-area","href":"/api/graphs"},{"title":"Markers API","sidebarTitle":"Markers","icon":"flag","href":"/api/markers"},{"title":"Samples API","sidebarTitle":"Samples","icon":"vial","href":"/api/samples"}]},{"title":"Event names","icon":"hashtag","href":"/api/event-names"},{"title":"Sourcemaps API","sidebarTitle":"Sourcemaps","icon":"map","href":"/api/sourcemaps"},{"group":"Public endpoint","icon":{"style":"solid","name":"cloud-arrow-up"},"pages":[{"title":"Public endpoint","sidebarTitle":"Overview","href":"/api/public-endpoint"},{"title":"Public Endpoint - StatsD Metrics","sidebarTitle":"StatsD","description":"Send batched (Dog)StatsD metrics with a Front-end or Push API key. Includes the request body format and a cURL example.","href":"/api/public-endpoint/statsd"},{"title":"Public Endpoint - JSON Metrics","sidebarTitle":"JSON Metrics","href":"/api/public-endpoint/json-metrics"},{"title":"Public Endpoint - Errors","sidebarTitle":"Errors","description":"Send errors through the public endpoint with a Front-end or Push API key. Covers the error, tags, params, and breadcrumbs payload.","href":"/api/public-endpoint/errors"},{"title":"Public Endpoint - Custom Markers","sidebarTitle":"Custom markers","href":"/api/public-endpoint/custom-markers"}]},{"group":"AppSignal CLI","icon":{"style":"solid","name":"terminal"},"pages":[{"title":"AppSignal CLI","sidebarTitle":"Overview","href":"/cli"},{"group":"Installation","pages":[{"title":"Installation \u0026 authentication","sidebarTitle":"Installation \u0026 authentication","href":"/cli/authentication"},{"title":"Upgrading the AppSignal CLI","sidebarTitle":"Upgrading","href":"/cli/upgrading"}]},{"title":"Command cheat sheet","sidebarTitle":"Command cheat sheet","href":"/cli/commands"},{"title":"Apps and organizations","sidebarTitle":"Apps and organizations","href":"/cli/apps"},{"title":"Incidents","sidebarTitle":"Incidents","href":"/cli/incidents"},{"title":"Logs","sidebarTitle":"Logs","href":"/cli/logs"},{"title":"Traces","sidebarTitle":"Traces","href":"/cli/traces"},{"title":"Manage dashboards with the CLI","sidebarTitle":"Manage dashboards with the CLI","href":"/cli/dashboards"},{"title":"Triggers","sidebarTitle":"Triggers","href":"/cli/triggers"},{"title":"Configuration","sidebarTitle":"Configuration","href":"/cli/configuration"},{"title":"Agent skill","sidebarTitle":"Agent skill","href":"/cli/skill"},{"title":"Feedback","sidebarTitle":"Feedback","href":"/cli/feedback"}]}]}]},{"anchor":"AppSignal for agents","icon":{"style":"solid","name":"robot"},"pages":[{"title":"AppSignal for agents","href":"/agents"}]},{"anchor":"Tutorials","icon":{"style":"solid","name":"graduation-cap"},"pages":[{"title":"Tutorials","href":"/tutorials"}]},{"anchor":"Account \u0026 Support","icon":{"style":"solid","name":"circle-question"},"pages":[{"title":"Account \u0026 Support","href":"/account-support"}]}]},{"tab":"Resources","menu":[{"item":"Startups","icon":"rocket","href":"https://www.appsignal.com/startups"},{"item":"Blog","icon":"newspaper","href":"https://blog.appsignal.com"},{"item":"Changelog","icon":"clock-rotate-left","href":"https://www.appsignal.com/changelog"},{"item":"API reference","icon":"code","href":"/api/v2/reference/metrics/timeseries"},{"item":"Support","icon":"envelope","href":"mailto:support@appsignal.com"}]}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/api/public-endpoint/json-metrics"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api/public-endpoint/json-metrics"}]},{"language":"de","pages":[{"title":"de","href":"/de/api/public-endpoint/json-metrics"}]},{"language":"zh-CN","pages":[{"title":"zh-CN","href":"/zh-CN/api/public-endpoint/json-metrics"}]}]},"basePath":"","title":"Public Endpoint - JSON Metrics - AppSignal Documentation","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":[],"chunks":[]}