MetriBeacon
Menu

POST Receive native alert callbacks

/api/v1/notifications/native/{id}/callback

Receive native alert callbacks. New destinations remain disabled and require explicit alarm routing. Callback authentication is provider-specific; external closure never resolves a measured incident. SMS and voice require recipient verification and a separate paid budget.

On this page

Access and permissions

Receive native alert callbacks. New destinations remain disabled and require explicit alarm routing. Callback authentication is provider-specific; external closure never resolves a measured incident. SMS and voice require recipient verification and a separate paid budget.

No account sign-in is required. Any listed browser-origin checks and rate limits still apply.

Parameters and headers

FieldLocationType and limitsRequiredMeaning
idPathstring; {"format":"uuid"}YesNotification destination identifier.
job_idURL querystring; {"format":"uuid"}NoNotification job identifier included in the signed SMS or call callback.
revisionURL queryinteger; {"minimum":1}NoDestination revision bound to the signed SMS or call callback.

Request body

No request body.

Responses

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

application/json

FieldType and limitsRequiredMeaning
$objectYes—

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.

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 --proto "=https" --tlsv1.2 --silent --show-error --max-time 10 --output /dev/null --write-out "%{http_code}\n" \
  --request POST \
  --header @"$HOME/.config/metribeacon/headers.txt" \
  "https://metribeacon.com/api/v1/notifications/native/{id}/callback"
python
import json
from pathlib import Path
from urllib.request import Request, HTTPRedirectHandler, build_opener
from urllib.error import HTTPError

config = Path.home() / ".config/metribeacon"
headers = json.loads((config / "headers.json").read_text())
body = None
request = Request("https://metribeacon.com/api/v1/notifications/native/{id}/callback", data=body, headers=headers, method="POST")
class NoRedirect(HTTPRedirectHandler):
    def redirect_request(self, request, fp, code, message, headers, target):
        return None

try:
    with build_opener(NoRedirect()).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 config = join(homedir(), ".config/metribeacon");
const headers = JSON.parse(await readFile(join(config, "headers.json"), "utf8"));
const response = await fetch("https://metribeacon.com/api/v1/notifications/native/{id}/callback", {
  method: "POST", headers, redirect: "manual",
  signal: AbortSignal.timeout(10000),
});
console.log(response.status);
await response.body?.cancel();
go
package main

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

func main() {
 home, err := os.UserHomeDir(); if err != nil { panic("local configuration unavailable") }
 config := filepath.Join(home, ".config/metribeacon")
 raw, err := os.ReadFile(filepath.Join(config,"headers.json")); if err != nil { panic("local headers unavailable") }
 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/notifications/native/{id}/callback",nil)
 if err != nil { panic("request unavailable") }
 for key,value := range headers { request.Header.Set(key,value) }
 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)
}
  • HTTP API, OAuth and MCP

    Find the user API endpoints, their permissions, fields, examples and response formats.

  • POST Verify an alert recipient number

    Verify an alert recipient number. New destinations remain disabled and require explicit alarm routing. Callback authentication is provider-specific; external closure never resolves a measured incident. SMS and voice require recipient verification and a separate paid budget.

  • POST Confirm an incident from Slack

    Confirm an incident from Slack. New destinations remain disabled and require explicit alarm routing. Callback authentication is provider-specific; external closure never resolves a measured incident. SMS and voice require recipient verification and a separate paid budget.

  • POST Start Slack app authorization

    Start Slack app authorization. New destinations remain disabled and require explicit alarm routing. Callback authentication is provider-specific; external closure never resolves a measured incident. SMS and voice require recipient verification and a separate paid budget.