POST Send application logs

/api/v1/automation/telemetry/logs

Submit records with stable IDs to an authorised HTTP log source. Requires explicit telemetry:write consent. Reuse the same IDs on retry; keys, provider credentials and collector continuity proofs are not accepted.

On this page

Access and permissions

Submit records with stable IDs to an authorised HTTP log source. Requires explicit telemetry:write consent. Reuse the same IDs on retry; keys, provider credentials and collector continuity proofs are not accepted.

Machine management credentials in Authorization: Bearer. Check the permissions (scopes) required by the operation.

When using a browser session for a mutation, send the current CSRF token in X-CSRF-Token with the same-site cookie. OAuth consent uses its documented form field.

Parameters and headers

No path, query or additional request-header parameters.

Request body

FieldType and limitsRequiredMeaning
$object; {"additionalProperties":false}Yes—
$.source_idstring; {"format":"uuid"}Yes—
$.batch_idstring; {"minLength":1,"maxLength":256}Yes—
$.recordsarray<object; {"additionalProperties":false}>; {"minItems":1,"maxItems":1000}Yes—
$.records[]object; {"additionalProperties":false}Yes—
$.records[].attributesobject; {"additionalProperties":true}No—
$.records[].bodyJSONNo—
$.records[].environmentstringNo—
$.records[].hoststringNo—
$.records[].idstring; {"maxLength":256,"minLength":1}Yes—
$.records[].levelstringNo—
$.records[].messagestring; {"maxLength":65536}No—
$.records[].patternstringNo—
$.records[].received_atstring; {"format":"date-time"}No—
$.records[].resourceobject; {"additionalProperties":true}No—
$.records[].scopestringNo—
$.records[].servicestringNo—
$.records[].source_idstring; {"format":"uuid"}No—
$.records[].span_idstringNo—
$.records[].timestring; {"format":"date-time"}No—
$.records[].time_originstringNo—
$.records[].trace_idstringNo—
$.records[].workspace_idstring; {"format":"uuid"}No—

Responses

application/json

FieldType and limitsRequiredMeaning
$object; {"additionalProperties":false}Yes—
$.acceptedintegerNo—
$.duplicatesintegerNo—
$.filteredintegerNo—
$.indexingstringNo—
$.checkpointstringNo—
Stable error codes
invalid_credential
unauthorized
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—
Stable error codes
csrf
insufficient_scope
invalid_origin
operator_required
forbidden
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—
Stable error codes
invalid_workspace
not_found
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—

application/json

FieldType and limitsRequiredMeaning
$MonitorPausedYes—
$.codestring; {"enum":["monitor_paused"]}Yes—
$.positionsarray<integer; {"minimum":0}>; {"maxItems":1000}Yes—
$.positions[]integer; {"minimum":0}Yes—
$.coveragebooleanNo—
Stable error codes
invalid_config
invalid_monitor
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—
Stable error codes
invalid_workspace
check_capacity
HeaderType and limitsMeaning
Retry-Afterstring; {"pattern":"^[0-9]+$"}Temporary server error; retry unchanged with Retry-After and the same idempotency identifier

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—
Stable error codes
check_location_unavailable
feature_unavailable
log_admission_busy
log_queue_full
log_storage_unavailable
unavailable
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—
Stable error codes
log_limit
request_too_large
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—

Retries and asynchronous work

This change does not have a general retry guarantee. If the response is unclear, read the affected resource before trying again. Follow Retry-After waiting times and request new sign-in or action codes when they expire.

HTTP 202 means the background job was accepted. Use the returned job ID to check its status. Download results when the job is complete, or inspect its error or cancellation status.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --silent --show-error --request POST --header @"$HOME/.config/metribeacon/headers.txt" --header "Content-Type: application/json" --data-binary '{"source_id":"00000000-0000-4000-8000-000000000001","batch_id":"application-1","records":[{"id":"record-1","time":"2026-10-31T12:00:00Z","level":"info","message":"Application ready"}]}' "https://metribeacon.com/api/v1/automation/telemetry/logs"
python
import json
from pathlib import Path
import urllib.request
headers = dict(line.split(": ", 1) for line in (Path.home()/".config/metribeacon/headers.txt").read_text().splitlines())
headers["Content-Type"] = "application/json"
request = urllib.request.Request('https://metribeacon.com/api/v1/automation/telemetry/logs', data='{"source_id":"00000000-0000-4000-8000-000000000001","batch_id":"application-1","records":[{"id":"record-1","time":"2026-10-31T12:00:00Z","level":"info","message":"Application ready"}]}'.encode() if '{"source_id":"00000000-0000-4000-8000-000000000001","batch_id":"application-1","records":[{"id":"record-1","time":"2026-10-31T12:00:00Z","level":"info","message":"Application ready"}]}' else None, headers=headers, method='POST')
with urllib.request.urlopen(request, timeout=20) as response:
    print(response.status)
javascript
import {readFileSync} from "node:fs";
import {homedir} from "node:os";
const headers=Object.fromEntries(readFileSync(homedir()+"/.config/metribeacon/headers.txt","utf8").trim().split("\n").map(line=>{const i=line.indexOf(": ");return [line.slice(0,i),line.slice(i+2)]}));
headers["Content-Type"]="application/json";
const response=await fetch("https://metribeacon.com/api/v1/automation/telemetry/logs",{method:"POST",headers,body:"{\"source_id\":\"00000000-0000-4000-8000-000000000001\",\"batch_id\":\"application-1\",\"records\":[{\"id\":\"record-1\",\"time\":\"2026-10-31T12:00:00Z\",\"level\":\"info\",\"message\":\"Application ready\"}]}"});
console.log(response.status);
go
package main
import ("fmt";"net/http";"os";"strings";"time")
func main(){
 home,_:=os.UserHomeDir(); headers,_:=os.ReadFile(home+"/.config/metribeacon/headers.txt")
 request,_:=http.NewRequest("POST","https://metribeacon.com/api/v1/automation/telemetry/logs",strings.NewReader("{\"source_id\":\"00000000-0000-4000-8000-000000000001\",\"batch_id\":\"application-1\",\"records\":[{\"id\":\"record-1\",\"time\":\"2026-10-31T12:00:00Z\",\"level\":\"info\",\"message\":\"Application ready\"}]}"))
 for _,line:=range strings.Split(strings.TrimSpace(string(headers)),"\n"){name,value,ok:=strings.Cut(line,": ");if ok{request.Header.Set(name,value)}}
 request.Header.Set("Content-Type","application/json")
 client:=&http.Client{Timeout:20*time.Second};response,err:=client.Do(request);if err!=nil{panic(err)};defer response.Body.Close();fmt.Println(response.StatusCode)
}