curl --request GET \
--url https://api.nextmoca.com/v1/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nextmoca.com/v1/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nextmoca.com/v1/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nextmoca.com/v1/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nextmoca.com/v1/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nextmoca.com/v1/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextmoca.com/v1/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "ok",
"service": "needlepath-hosted-adapter",
"endpoint": "/v1/context/select",
"default_operating_point": "np-2026-08-r4",
"operating_points": [
"np-2026-07-r1",
"np-2026-07-r2",
"np-2026-08-r3",
"np-2026-08-r4"
],
"build_id": "9f1c2b7e4a"
}{
"message": "Unauthorized"
}{
"Message": "User is not authorized to access this resource with an explicit deny"
}Liveness, and the label this build serves by default
Liveness plus the deployment’s own identity. No engine work is done.
build_id is an opaque release identifier, minted per build. It is
stable for a given build and distinct across builds, and it is not
derived from anything: it is not a digest of the deployed artifact or
of its sources. Two endpoints reporting the same build_id are the
same build; that is the whole of what it tells you.
curl --request GET \
--url https://api.nextmoca.com/v1/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nextmoca.com/v1/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nextmoca.com/v1/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nextmoca.com/v1/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nextmoca.com/v1/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nextmoca.com/v1/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextmoca.com/v1/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "ok",
"service": "needlepath-hosted-adapter",
"endpoint": "/v1/context/select",
"default_operating_point": "np-2026-08-r4",
"operating_points": [
"np-2026-07-r1",
"np-2026-07-r2",
"np-2026-08-r3",
"np-2026-08-r4"
],
"build_id": "9f1c2b7e4a"
}{
"message": "Unauthorized"
}{
"Message": "User is not authorized to access this resource with an explicit deny"
}Authorizations
Authorization: Bearer np_live_…
One credential form. There is no query-parameter, cookie or
x-api-key alternative. The legacy x-api-key header stopped being
accepted at the Bearer cutover and now fails authorization.
Keys are org-scoped, never user-scoped, and the secret is shown exactly once at mint. Rotation is create-then-revoke.
Response
Healthy.
ok when the deployment is serving.
"ok"
The service name this deployment reports for itself.
"needlepath-hosted-adapter"
The selection path this deployment serves.
"/v1/context/select"
The label applied when a request omits budget.operating_point. It moves when a new label is minted, which is why you should always send one.
"np-2026-08-r4"
Every label this deployment can resolve. /v1/operating-points returns the same set with the policy_version behind each.
An opaque release identifier, minted per build. Stable for a given build and distinct across builds; not derived from the artifact or its sources, so it is an identity check and nothing more. Empty when the service runs from a source tree.
"9f1c2b7e4a"