MetriBeacon
Menu

POST Select or create setup resources atomically

/api/v1/onboarding/resources

Prepare resources or explicitly change the saved selection with replace_existing=true and its expected_updated_at revision. Unchanged selections and exact request replays preserve progress without creating resources. Changes run atomically, retain existing resources and keys, preserve a key only for the same device, and require a new heartbeat and measurement for the resulting series. Stale revisions return 409 onboarding_changed.

On this page

Access and permissions

Prepare resources or explicitly change the saved selection with replace_existing=true and its expected_updated_at revision. Unchanged selections and exact request replays preserve progress without creating resources. Changes run atomically, retain existing resources and keys, preserve a key only for the same device, and require a new heartbeat and measurement for the resulting series. Stale revisions return 409 onboarding_changed.

Browser session: __Host-mb_session cookie.

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

FieldLocationType and limitsRequiredMeaning
OriginHeaderstring; {"format":"uri"}NoIf present, must match the canonical HTTPS origin. Sec-Fetch-Site cross-site is rejected.
X-CSRF-TokenHeaderstringYesBrowser CSRF cookie value. Not required when an allowed machine management credential is used.

Request body

FieldType and limitsRequiredMeaning
$object; {"additionalProperties":false}Yes—
$.device_idstring; {"format":"uuid"}NoUUID of the target device or monitor. The ingestion key must allow this device.
$.device_namestring; {"maxLength":128}No—
$.expected_updated_atstring; {"format":"date-time"}NoThe updated_at timestamp returned by the saved setup. Prevents overwriting a concurrently changed selection; identical retries remain safe.
$.integrationstring; {"enum":["agent","api"]}Yes—
$.replace_existingboolean; {"default":false}NoExplicitly confirm a changed saved selection. Requires expected_updated_at; existing resources and credentials remain intact.
$.workspace_idstring; {"format":"uuid"}NoUUID of the owning workspace. Access is checked against the authenticated account.
$.workspace_namestring; {"maxLength":128}No—
$.platformstring; {"enum":["linux","darwin","windows"]}NoExpected operating system for a new agent profile. This does not establish the actual device platform. Browser approval uses the agent’s own platform, architecture and system drive report. Existing profiles are kept unchanged; an explicitly different profile is rejected, not silently ignored.
$.server_profileServerProfileRequestNo—
$.server_profile.componentsarray<object>; {"maxItems":200} | nullNoDiscovered or explicitly selected server components.
$.server_profile.components (anyOf 1)array<object>; {"maxItems":200}No—
$.server_profile.components (anyOf 1)[]objectYes—
$.server_profile.components (anyOf 1)[].addressstringNo—
$.server_profile.components (anyOf 1)[].familystringNo—
$.server_profile.components (anyOf 1)[].idstringYesUUID of this resource. Keep the returned identifier for subsequent operations.
$.server_profile.components (anyOf 1)[].kindstringYesResource kind or measurement type selected from the listed values.
$.server_profile.components (anyOf 1)[].labelstring; {"maxLength":128,"minLength":1}YesDisplay name for the component.
$.server_profile.components (anyOf 1)[].local_refstringNo—
$.server_profile.components (anyOf 1)[].namestringNoHuman-readable resource name. Follow the listed length limit.
$.server_profile.components (anyOf 1)[].pathstring; {"maxLength":1024}No—
$.server_profile.components (anyOf 1)[].portintegerNo—
$.server_profile.components (anyOf 1)[].projectstringNo—
$.server_profile.components (anyOf 1)[].protocolstringNo—
$.server_profile.components (anyOf 1)[].text_languagesobjectNo—
$.server_profile.components (anyOf 1)[].timeout_secondsintegerNo—
$.server_profile.components (anyOf 1)[].translationsobject; {"additionalProperties":false}No—
$.server_profile.components (anyOf 1)[].translations.deobjectNo—
$.server_profile.components (anyOf 1)[].translations.enobjectNo—
$.server_profile.components (anyOf 1)[].transportstringNo—
$.server_profile.components (anyOf 1)[].filesystem_identitystring; {"maxLength":256}NoAgent-reported volume identity. Keep it unchanged to prevent a replacement volume from continuing another volume’s history.
$.server_profile.components (anyOf 1)[].disk_identitystring; {"maxLength":256}No—
$.server_profile.components (anyOf 2)nullNo—
$.server_profile.selectionsarray<object>; {"maxItems":200} | nullNoSelected component/parameter pairs and sampling intervals.
$.server_profile.selections (anyOf 1)array<object>; {"maxItems":200}No—
$.server_profile.selections (anyOf 1)[]objectYes—
$.server_profile.selections (anyOf 1)[].component_idstringYesStable identifier of the selected or discovered component.
$.server_profile.selections (anyOf 1)[].interval_secondsinteger; {"maximum":86400,"minimum":0}NoSampling or check interval in seconds within the stated bounds.
$.server_profile.selections (anyOf 1)[].parameter_keystringYesStable parameter identifier from the server catalog.
$.server_profile.selections (anyOf 2)nullNo—
$.server_profile.versionJSON; {"const":2}Yes—
$.server_profile.overviewobject; {"additionalProperties":false}NoExplicit targets for the six-chart server overview; select all required readings.
$.server_profile.overview.system_idstring; {"maxLength":128}Yes—
$.server_profile.overview.filesystem_idstring; {"maxLength":128}Yes—
$.server_profile.overview.disk_idstring; {"maxLength":128}Yes—
$.server_profile.overview.network_idstring; {"maxLength":128}Yes—
$.server_profile.filesystem_discoveryobject; {"additionalProperties":false}NoOptional local filesystem discovery with a base interval of at least 10 seconds. New Server/NAS setups enable it. Existing profiles require explicit activation. Manually disabled measurements are preserved.
$.server_profile.filesystem_discovery.modestring; {"enum":["off","local"]}Yes—
$.server_profile.filesystem_discovery.interval_secondsinteger; {"minimum":10,"maximum":86400}Yes—
$.server_profile.system_discoveryobject; {"additionalProperties":false}No—
$.server_profile.system_discovery.modestring; {"enum":["off","local"]}Yes—
$.server_profile.system_discovery.interval_secondsinteger; {"minimum":10,"maximum":86400}Yes—
$.server_profile.global_interval_secondsinteger; {"minimum":1,"maximum":86400}NoExplicit global sampling choice. Each source still applies its platform minimum; individual fast rows never imply this choice.

Responses

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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/json

FieldType and limitsRequiredMeaning
$objectYes—
$.flowobjectYes—
$.flow.alarm_idstring | nullYes—
$.flow.alarm_id (anyOf 1)stringNo—
$.flow.alarm_id (anyOf 2)nullNo—
$.flow.completed_atstring; {"format":"date-time"} | nullYesCompletion timestamp; null while completion has not been recorded.
$.flow.completed_at (anyOf 1)string; {"format":"date-time"}No—
$.flow.completed_at (anyOf 2)nullNo—
$.flow.created_atstring; {"format":"date-time"}YesCreation timestamp in RFC 3339 UTC.
$.flow.device_idstringYesUUID of the target device or monitor. The ingestion key must allow this device.
$.flow.heartbeat_confirmed_atstring; {"format":"date-time"} | nullYes—
$.flow.heartbeat_confirmed_at (anyOf 1)string; {"format":"date-time"}No—
$.flow.heartbeat_confirmed_at (anyOf 2)nullNo—
$.flow.integrationstringYes—
$.flow.key_idstring | nullYes—
$.flow.key_id (anyOf 1)stringNo—
$.flow.key_id (anyOf 2)nullNo—
$.flow.measurement_confirmed_atstring; {"format":"date-time"} | nullYesTime when a selected numeric or state value was actually received and saved after setup began. Agent series bindings may appear after profile provisioning. An installer result, process flag or unselected value does not confirm receipt.
$.flow.measurement_confirmed_at (anyOf 1)string; {"format":"date-time"}No—
$.flow.measurement_confirmed_at (anyOf 2)nullNo—
$.flow.seriesobjectYes—
$.flow.updated_atstring; {"format":"date-time"}YesRevision of the saved setup, used to confirm a selection change.
$.flow.workspace_idstringYesUUID of the owning workspace. Access is checked against the authenticated account.
$.flow.server_profileServerProfileRequestNo—
$.flow.server_profile.componentsarray<object>; {"maxItems":200} | nullNoDiscovered or explicitly selected server components.
$.flow.server_profile.components (anyOf 1)array<object>; {"maxItems":200}No—
$.flow.server_profile.components (anyOf 1)[]objectYes—
$.flow.server_profile.components (anyOf 1)[].addressstringNo—
$.flow.server_profile.components (anyOf 1)[].familystringNo—
$.flow.server_profile.components (anyOf 1)[].idstringYesUUID of this resource. Keep the returned identifier for subsequent operations.
$.flow.server_profile.components (anyOf 1)[].kindstringYesResource kind or measurement type selected from the listed values.
$.flow.server_profile.components (anyOf 1)[].labelstring; {"maxLength":128,"minLength":1}YesDisplay name for the component.
$.flow.server_profile.components (anyOf 1)[].local_refstringNo—
$.flow.server_profile.components (anyOf 1)[].namestringNoHuman-readable resource name. Follow the listed length limit.
$.flow.server_profile.components (anyOf 1)[].pathstring; {"maxLength":1024}No—
$.flow.server_profile.components (anyOf 1)[].portintegerNo—
$.flow.server_profile.components (anyOf 1)[].projectstringNo—
$.flow.server_profile.components (anyOf 1)[].protocolstringNo—
$.flow.server_profile.components (anyOf 1)[].text_languagesobjectNo—
$.flow.server_profile.components (anyOf 1)[].timeout_secondsintegerNo—
$.flow.server_profile.components (anyOf 1)[].translationsobject; {"additionalProperties":false}No—
$.flow.server_profile.components (anyOf 1)[].translations.deobjectNo—
$.flow.server_profile.components (anyOf 1)[].translations.enobjectNo—
$.flow.server_profile.components (anyOf 1)[].transportstringNo—
$.flow.server_profile.components (anyOf 1)[].filesystem_identitystring; {"maxLength":256}NoAgent-reported volume identity. Keep it unchanged to prevent a replacement volume from continuing another volume’s history.
$.flow.server_profile.components (anyOf 1)[].disk_identitystring; {"maxLength":256}No—
$.flow.server_profile.components (anyOf 2)nullNo—
$.flow.server_profile.selectionsarray<object>; {"maxItems":200} | nullNoSelected component/parameter pairs and sampling intervals.
$.flow.server_profile.selections (anyOf 1)array<object>; {"maxItems":200}No—
$.flow.server_profile.selections (anyOf 1)[]objectYes—
$.flow.server_profile.selections (anyOf 1)[].component_idstringYesStable identifier of the selected or discovered component.
$.flow.server_profile.selections (anyOf 1)[].interval_secondsinteger; {"maximum":86400,"minimum":0}NoSampling or check interval in seconds within the stated bounds.
$.flow.server_profile.selections (anyOf 1)[].parameter_keystringYesStable parameter identifier from the server catalog.
$.flow.server_profile.selections (anyOf 2)nullNo—
$.flow.server_profile.versionJSON; {"const":2}Yes—
$.flow.server_profile.overviewobject; {"additionalProperties":false}NoExplicit targets for the six-chart server overview; select all required readings.
$.flow.server_profile.overview.system_idstring; {"maxLength":128}Yes—
$.flow.server_profile.overview.filesystem_idstring; {"maxLength":128}Yes—
$.flow.server_profile.overview.disk_idstring; {"maxLength":128}Yes—
$.flow.server_profile.overview.network_idstring; {"maxLength":128}Yes—
$.flow.server_profile.filesystem_discoveryobject; {"additionalProperties":false}NoOptional local filesystem discovery with a base interval of at least 10 seconds. New Server/NAS setups enable it. Existing profiles require explicit activation. Manually disabled measurements are preserved.
$.flow.server_profile.filesystem_discovery.modestring; {"enum":["off","local"]}Yes—
$.flow.server_profile.filesystem_discovery.interval_secondsinteger; {"minimum":10,"maximum":86400}Yes—
$.flow.server_profile.system_discoveryobject; {"additionalProperties":false}No—
$.flow.server_profile.system_discovery.modestring; {"enum":["off","local"]}Yes—
$.flow.server_profile.system_discovery.interval_secondsinteger; {"minimum":10,"maximum":86400}Yes—
$.flow.server_profile.global_interval_secondsinteger; {"minimum":1,"maximum":86400}NoExplicit global sampling choice. Each source still applies its platform minimum; individual fast rows never imply this choice.
$.flow.profile_revisioninteger; {"minimum":0}No—
$.flow.platformstring; {"enum":["linux","darwin","windows"]}NoExpected operating system for a new agent profile. This does not establish the actual device platform. Browser approval uses the agent’s own platform, architecture and system drive report. Existing profiles are kept unchanged; an explicitly different profile is rejected, not silently ignored.
$.replayedbooleanYes—
json
{
  "flow": {
    "alarm_id": "demo",
    "completed_at": "2026-09-30T12:00:00Z",
    "created_at": "2026-09-30T12:00:00Z",
    "device_id": "demo",
    "heartbeat_confirmed_at": "2026-09-30T12:00:00Z",
    "integration": "demo",
    "key_id": "demo",
    "measurement_confirmed_at": "2026-09-30T12:00:00Z",
    "series": {},
    "updated_at": "2026-09-30T12:00:00Z",
    "workspace_id": "demo"
  },
  "replayed": false
}
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/json

FieldType and limitsRequiredMeaning
$objectYes—
$.flowobjectYes—
$.flow.alarm_idstring | nullYes—
$.flow.alarm_id (anyOf 1)stringNo—
$.flow.alarm_id (anyOf 2)nullNo—
$.flow.completed_atstring; {"format":"date-time"} | nullYesCompletion timestamp; null while completion has not been recorded.
$.flow.completed_at (anyOf 1)string; {"format":"date-time"}No—
$.flow.completed_at (anyOf 2)nullNo—
$.flow.created_atstring; {"format":"date-time"}YesCreation timestamp in RFC 3339 UTC.
$.flow.device_idstringYesUUID of the target device or monitor. The ingestion key must allow this device.
$.flow.heartbeat_confirmed_atstring; {"format":"date-time"} | nullYes—
$.flow.heartbeat_confirmed_at (anyOf 1)string; {"format":"date-time"}No—
$.flow.heartbeat_confirmed_at (anyOf 2)nullNo—
$.flow.integrationstringYes—
$.flow.key_idstring | nullYes—
$.flow.key_id (anyOf 1)stringNo—
$.flow.key_id (anyOf 2)nullNo—
$.flow.measurement_confirmed_atstring; {"format":"date-time"} | nullYesTime when a selected numeric or state value was actually received and saved after setup began. Agent series bindings may appear after profile provisioning. An installer result, process flag or unselected value does not confirm receipt.
$.flow.measurement_confirmed_at (anyOf 1)string; {"format":"date-time"}No—
$.flow.measurement_confirmed_at (anyOf 2)nullNo—
$.flow.seriesobjectYes—
$.flow.updated_atstring; {"format":"date-time"}YesRevision of the saved setup, used to confirm a selection change.
$.flow.workspace_idstringYesUUID of the owning workspace. Access is checked against the authenticated account.
$.flow.server_profileServerProfileRequestNo—
$.flow.server_profile.componentsarray<object>; {"maxItems":200} | nullNoDiscovered or explicitly selected server components.
$.flow.server_profile.components (anyOf 1)array<object>; {"maxItems":200}No—
$.flow.server_profile.components (anyOf 1)[]objectYes—
$.flow.server_profile.components (anyOf 1)[].addressstringNo—
$.flow.server_profile.components (anyOf 1)[].familystringNo—
$.flow.server_profile.components (anyOf 1)[].idstringYesUUID of this resource. Keep the returned identifier for subsequent operations.
$.flow.server_profile.components (anyOf 1)[].kindstringYesResource kind or measurement type selected from the listed values.
$.flow.server_profile.components (anyOf 1)[].labelstring; {"maxLength":128,"minLength":1}YesDisplay name for the component.
$.flow.server_profile.components (anyOf 1)[].local_refstringNo—
$.flow.server_profile.components (anyOf 1)[].namestringNoHuman-readable resource name. Follow the listed length limit.
$.flow.server_profile.components (anyOf 1)[].pathstring; {"maxLength":1024}No—
$.flow.server_profile.components (anyOf 1)[].portintegerNo—
$.flow.server_profile.components (anyOf 1)[].projectstringNo—
$.flow.server_profile.components (anyOf 1)[].protocolstringNo—
$.flow.server_profile.components (anyOf 1)[].text_languagesobjectNo—
$.flow.server_profile.components (anyOf 1)[].timeout_secondsintegerNo—
$.flow.server_profile.components (anyOf 1)[].translationsobject; {"additionalProperties":false}No—
$.flow.server_profile.components (anyOf 1)[].translations.deobjectNo—
$.flow.server_profile.components (anyOf 1)[].translations.enobjectNo—
$.flow.server_profile.components (anyOf 1)[].transportstringNo—
$.flow.server_profile.components (anyOf 1)[].filesystem_identitystring; {"maxLength":256}NoAgent-reported volume identity. Keep it unchanged to prevent a replacement volume from continuing another volume’s history.
$.flow.server_profile.components (anyOf 1)[].disk_identitystring; {"maxLength":256}No—
$.flow.server_profile.components (anyOf 2)nullNo—
$.flow.server_profile.selectionsarray<object>; {"maxItems":200} | nullNoSelected component/parameter pairs and sampling intervals.
$.flow.server_profile.selections (anyOf 1)array<object>; {"maxItems":200}No—
$.flow.server_profile.selections (anyOf 1)[]objectYes—
$.flow.server_profile.selections (anyOf 1)[].component_idstringYesStable identifier of the selected or discovered component.
$.flow.server_profile.selections (anyOf 1)[].interval_secondsinteger; {"maximum":86400,"minimum":0}NoSampling or check interval in seconds within the stated bounds.
$.flow.server_profile.selections (anyOf 1)[].parameter_keystringYesStable parameter identifier from the server catalog.
$.flow.server_profile.selections (anyOf 2)nullNo—
$.flow.server_profile.versionJSON; {"const":2}Yes—
$.flow.server_profile.overviewobject; {"additionalProperties":false}NoExplicit targets for the six-chart server overview; select all required readings.
$.flow.server_profile.overview.system_idstring; {"maxLength":128}Yes—
$.flow.server_profile.overview.filesystem_idstring; {"maxLength":128}Yes—
$.flow.server_profile.overview.disk_idstring; {"maxLength":128}Yes—
$.flow.server_profile.overview.network_idstring; {"maxLength":128}Yes—
$.flow.server_profile.filesystem_discoveryobject; {"additionalProperties":false}NoOptional local filesystem discovery with a base interval of at least 10 seconds. New Server/NAS setups enable it. Existing profiles require explicit activation. Manually disabled measurements are preserved.
$.flow.server_profile.filesystem_discovery.modestring; {"enum":["off","local"]}Yes—
$.flow.server_profile.filesystem_discovery.interval_secondsinteger; {"minimum":10,"maximum":86400}Yes—
$.flow.server_profile.system_discoveryobject; {"additionalProperties":false}No—
$.flow.server_profile.system_discovery.modestring; {"enum":["off","local"]}Yes—
$.flow.server_profile.system_discovery.interval_secondsinteger; {"minimum":10,"maximum":86400}Yes—
$.flow.server_profile.global_interval_secondsinteger; {"minimum":1,"maximum":86400}NoExplicit global sampling choice. Each source still applies its platform minimum; individual fast rows never imply this choice.
$.flow.profile_revisioninteger; {"minimum":0}No—
$.flow.platformstring; {"enum":["linux","darwin","windows"]}NoExpected operating system for a new agent profile. This does not establish the actual device platform. Browser approval uses the agent’s own platform, architecture and system drive report. Existing profiles are kept unchanged; an explicitly different profile is rejected, not silently ignored.
$.replayedbooleanYes—
json
{
  "flow": {
    "alarm_id": "demo",
    "completed_at": "2026-09-30T12:00:00Z",
    "created_at": "2026-09-30T12:00:00Z",
    "device_id": "demo",
    "heartbeat_confirmed_at": "2026-09-30T12:00:00Z",
    "integration": "demo",
    "key_id": "demo",
    "measurement_confirmed_at": "2026-09-30T12:00:00Z",
    "series": {},
    "updated_at": "2026-09-30T12:00:00Z",
    "workspace_id": "demo"
  },
  "replayed": false
}
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 401,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
csrf
insufficient_scope
invalid_origin
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 403,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 404,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
onboarding_resource_removed
onboarding_started
onboarding_changed
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 409,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
invalid_input
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 422,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
creation_quota
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
Retry-Afterstring; {"pattern":"^[0-9]+$"}Seconds before retry. Preserve supported idempotency identifiers and respect the operation’s mutation semantics.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 429,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
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.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
Retry-Afterstring; {"pattern":"^[0-9]+$"}Seconds before retry. Preserve supported idempotency identifiers and respect the operation’s mutation semantics.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
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—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 503,
  "title": "Demo error",
  "type": "about:blank"
}

Retries and asynchronous work

Keep the documented IDs for retries. After an unclear response, do not replace them with new IDs, which could create another resource or reading.

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 --output /dev/null --write-out "%{http_code}\n" \
  --request POST \
  --header @"$HOME/.config/metribeacon/headers.txt" \
  --header "Content-Type: application/json" \
  --data-binary '{"integration":"linux"}' \
  "https://metribeacon.com/api/v1/onboarding/resources"
python
import json
from pathlib import Path
from urllib.request import Request, HTTPRedirectHandler, build_opener
from urllib.error import HTTPError

headers = json.loads((Path.home() / ".config/metribeacon/headers.json").read_text())
headers["Content-Type"] = "application/json"
request = Request("https://metribeacon.com/api/v1/onboarding/resources", data="{\"integration\":\"linux\"}".encode("utf-8"), headers=headers, method="POST")
class NoRedirect(HTTPRedirectHandler):
    def redirect_request(self, request, fp, code, message, headers, target):
        return None

opener = build_opener(NoRedirect())
try:
    with opener.open(request, timeout=10) as response:
        print(response.status)
except HTTPError as error:
    print(error.code)
    error.close()
javascript
import { readFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";

const headers = JSON.parse(await readFile(join(homedir(), ".config/metribeacon/headers.json"), "utf8"));
headers["Content-Type"] = "application/json";
const response = await fetch("https://metribeacon.com/api/v1/onboarding/resources", {
  method: "POST", headers, redirect: "manual",
  signal: AbortSignal.timeout(10000), body: "{\"integration\":\"linux\"}",
});
console.log(response.status);
await response.body?.cancel();
go
package main

import (
  "fmt"
  "net/http"
  "time"
  "encoding/json"
  "os"
  "path/filepath"
  "strings"
)

func main() {
  home, err := os.UserHomeDir(); if err != nil { panic("request failed; credentials and response omitted") }
  raw, err := os.ReadFile(filepath.Join(home, ".config/metribeacon/headers.json")); if err != nil { panic("request failed; credentials and response omitted") }
  var headers map[string]string
  if json.Unmarshal(raw, &headers) != nil { panic("invalid local headers") }
  request, err := http.NewRequest("POST", "https://metribeacon.com/api/v1/onboarding/resources", strings.NewReader("{\"integration\":\"linux\"}"))
  if err != nil { panic("request failed; credentials and response omitted") }
  for name, value := range headers { request.Header.Set(name, value) }
  request.Header.Set("Content-Type", "application/json")
  client := &http.Client{Timeout: 10*time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
  response, err := client.Do(request)
  if err != nil { panic("request failed; credentials and response omitted") }
  defer response.Body.Close()
  fmt.Println(response.StatusCode)
}