POST Accept current legal documents and finish entry
/api/v1/auth/entry/complete
Complete sign-up after identity verification by accepting the current terms and acknowledging the privacy notice. A successful response creates the browser session. New accounts require open registration.
On this page
Access and permissions
Complete sign-up after identity verification by accepting the current terms and acknowledging the privacy notice. A successful response creates the browser session. New accounts require open registration.
Original login browser: __Host-mb_auth cookie.
Parameters and headers
| Field | Location | Type and limits | Required | Meaning |
|---|---|---|---|---|
| Origin | Header | string; {"format":"uri"} | Yes | The same HTTPS origin as the public browser site. Required for browser login and provider-start requests. |
Request body
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | object; {"additionalProperties":false} | Yes | — |
| $.legal_acceptance | object | Yes | — |
| $.legal_acceptance.privacy_acknowledged | boolean | Yes | Must be true when acknowledgement of privacy information is required. |
| $.legal_acceptance.privacy_version | string | Yes | SHA-256 version returned for the currently published privacy text. |
| $.legal_acceptance.terms_accepted | boolean | Yes | Must be true when legal acceptance is required. |
| $.legal_acceptance.terms_version | string | Yes | SHA-256 version returned for the currently published terms. Retrieve the current text before accepting. |
Responses
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"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-Policy | JSON; {"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. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | EntryFlow | EntryAuthenticated | MFARequired | Yes | — |
| $ (anyOf 1) | EntryFlow | EntryAuthenticated | No | — |
| $ (anyOf 1) (anyOf 1) | EntryFlow | No | — |
| $ (anyOf 1) (anyOf 1).challenge_id | string; {"format":"uuid"} | No | UUID of the challenge issued to this browser or machine request. |
| $ (anyOf 1) (anyOf 1).email | string; {"format":"email"} | Yes | Email address of the account or operation target. Confirmation rules depend on the operation. |
| $ (anyOf 1) (anyOf 1).email_verified | boolean | Yes | — |
| $ (anyOf 1) (anyOf 1).expires_at | string; {"format":"date-time"} | Yes | Expiry timestamp. A successful request does not extend this deadline unless explicitly documented. |
| $ (anyOf 1) (anyOf 1).mail_verified | boolean | Yes | — |
| $ (anyOf 1) (anyOf 1).privacy_version | string | No | SHA-256 version returned for the currently published privacy text. |
| $ (anyOf 1) (anyOf 1).provider | string; {"enum":["","google","github"]} | Yes | Configured identity provider. Availability must be read from the providers endpoint. |
| $ (anyOf 1) (anyOf 1).resend_at | string; {"format":"date-time"} | No | — |
| $ (anyOf 1) (anyOf 1).return_to | string | Yes | Allowed local destination after sign-in. External and unsafe destinations are rejected. |
| $ (anyOf 1) (anyOf 1).status | string; {"enum":["verification_required","consent_required","link_confirmation_required"]} | Yes | — |
| $ (anyOf 1) (anyOf 1).terms_version | string | No | SHA-256 version returned for the currently published terms. Retrieve the current text before accepting. |
| $ (anyOf 1) (anyOf 2) | EntryAuthenticated | No | — |
| $ (anyOf 1) (anyOf 2).account_id | string; {"format":"uuid"} | Yes | UUID of the owning or acting account, as specified by this operation. |
| $ (anyOf 1) (anyOf 2).email | string; {"format":"email"} | Yes | Email address of the account or operation target. Confirmation rules depend on the operation. |
| $ (anyOf 1) (anyOf 2).operator | boolean | Yes | Whether the account has the admin role; this does not bypass action-code or last-admin checks. |
| $ (anyOf 1) (anyOf 2).return_to | string | Yes | Allowed local destination after sign-in. External and unsafe destinations are rejected. |
| $ (anyOf 1) (anyOf 2).status | JSON; {"const":"authenticated"} | Yes | — |
| $ (anyOf 2) | MFARequired | No | — |
| $ (anyOf 2).status | JSON; {"const":"mfa_required"} | Yes | — |
| $ (anyOf 2).expires_at | string; {"format":"date-time"} | Yes | — |
| $ (anyOf 2).return_to | string | Yes | — |
| $ (anyOf 2).email | string | No | — |
| $ (anyOf 2).provider | string | No | — |
| $ (anyOf 2).email_verified | boolean | No | — |
| $ (anyOf 2).mail_verified | boolean | No | — |
{
"email": "demo@example.com",
"email_verified": false,
"expires_at": "2026-09-30T12:00:00Z",
"mail_verified": false,
"provider": "",
"return_to": "demo",
"status": "verification_required"
}| Stable error codes |
|---|
| invalid_origin |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"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-Policy | JSON; {"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. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"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 |
|---|
| identity_in_use |
| legal_documents_changed |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"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-Policy | JSON; {"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. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"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 |
| invalid_entry |
| legal_acceptance_required |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"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-Policy | JSON; {"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. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"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 |
|---|
| auth_unavailable |
| registration_unavailable |
| legal_unavailable |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"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-Policy | JSON; {"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-After | string; {"pattern":"^[0-9]+$"} | Seconds before retry. Preserve supported idempotency identifiers and respect the operation’s mutation semantics. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"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
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.
curl --silent --show-error --output /dev/null --write-out "%{http_code}\n" \
--request POST \
--header @"$HOME/.config/metribeacon/headers.txt" \
--header "Origin: https://metribeacon.com" \
--header "Content-Type: application/json" \
--data-binary '{"legal_acceptance":{"privacy_acknowledged":false,"privacy_version":"demo","terms_accepted":false,"terms_version":"demo"}}' \
"https://metribeacon.com/api/v1/auth/entry/complete"
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["Origin"] = "https://metribeacon.com"
headers["Content-Type"] = "application/json"
request = Request("https://metribeacon.com/api/v1/auth/entry/complete", data="{\"legal_acceptance\":{\"privacy_acknowledged\":false,\"privacy_version\":\"demo\",\"terms_accepted\":false,\"terms_version\":\"demo\"}}".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()
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["Origin"] = "https://metribeacon.com";
headers["Content-Type"] = "application/json";
const response = await fetch("https://metribeacon.com/api/v1/auth/entry/complete", {
method: "POST", headers, redirect: "manual",
signal: AbortSignal.timeout(10000), body: "{\"legal_acceptance\":{\"privacy_acknowledged\":false,\"privacy_version\":\"demo\",\"terms_accepted\":false,\"terms_version\":\"demo\"}}",
});
console.log(response.status);
await response.body?.cancel();
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/auth/entry/complete", strings.NewReader("{\"legal_acceptance\":{\"privacy_acknowledged\":false,\"privacy_version\":\"demo\",\"terms_accepted\":false,\"terms_version\":\"demo\"}}"))
if err != nil { panic("request failed; credentials and response omitted") }
for name, value := range headers { request.Header.Set(name, value) }
request.Header.Set("Origin", "https://metribeacon.com")
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)
}
Related guides
- HTTP API, OAuth and MCP
Find the user API endpoints, their permissions, fields, examples and response formats.
- DELETE Cancel the browser entry flow
Cancels outstanding email challenges and the browser-bound entry flow, then clears its pre-authentication cookie. It does not revoke an existing application session. Requires the allowed browser origin.
- GET Read the current browser entry step
Reads the flow bound to __Host-mb_auth without creating an application session. Missing, expired, completed or cancelled flows return status idle. Active flows describe verification, consent or explicit identity linking.
- POST Confirm email proof in the requesting browser
Accepts exactly one proof form: link token, or challenge_id with a six-digit code. Proof and flow are browser-bound and single-use; at most five incorrect attempts are allowed. Existing verified email accounts receive a seven-day session. New accounts proceed to consent_required; provider identities for an existing account proceed to link_confirmation_required without automatic linking.