Aller au contenu
The Consortium

Intelligence APIOperational

nxs_standards_selftest

Self-assessment across several standards or a profile

Demande

Essayer

Available · MCP tool nxs.standards.selftest · No credits

https://api.nexustandards.com

POST/v1/conformity/selftest

curl -s -X POST "https://api.nexustandards.com/v1/conformity/selftest" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <a-unique-key-per-attempt>" \
  -d '{"standard":"NS-0","results":[{"requirement":"NS0-R1","result":"pass"},{"requirement":"NS0-R2","result":"fail"}]}'
const res = await fetch("https://api.nexustandards.com/v1/conformity/selftest", { method: "POST", headers: { "Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>" }, body: "{\"standard\":\"NS-0\",\"results\":[{\"requirement\":\"NS0-R1\",\"result\":\"pass\"},{\"requirement\":\"NS0-R2\",\"result\":\"fail\"}]}" });
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.nexustandards.com/v1/conformity/selftest", data="{\"standard\":\"NS-0\",\"results\":[{\"requirement\":\"NS0-R1\",\"result\":\"pass\"},{\"requirement\":\"NS0-R2\",\"result\":\"fail\"}]}".encode(), method="POST", headers={"Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>"})
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "assessmentKind": "self-assessment",
    "standards": [
      {
        "standard": {},
        "requirementsInRegister": 3,
        "withdrawnExcluded": 0,
        "assessed": 2,
        "byResult": {},
        "coverage": 0.6667,
        "notAssessed": [],
        "failed": []
      }
    ],
    "requirementsInRegister": 3,
    "assessed": 2,
    "coverage": 0.6667,
    "byResult": {
      "pass": 1,
      "fail": 1,
      "not-applicable": 0,
      "not-assessed": 1
    },
    "unknownRequirements": [],
    "duplicateEntries": [],
    "evidenceNotes": 0,
    "statement": "This is a self-assessment against a draft register. It is no…"
  },
  "meta": {
    "coverage": {
      "status": "full",
      "records": 1,
      "links": {
        "index": "partial: NHS-1 families and NIS-1 domains by identical code …",
        "external": "full: every crosswalk target is an entry of the external sta…",
        "grf": "none: no GRF obligation identifiers are published yet (posit…",
        "academy": "none: no Academy competency identifiers are published yet (p…",
        "protocol": "none: no observation-profile identifiers are published yet",
        "reports": "none: no finding identifiers are published yet"
      }
    },
    "authority": "Nexus Standards (Secretariat, GCRI Canada)",
    "provenance": {
      "repository": "nexus-estate/nexus-wp",
      "commit": "89ebc662668b521c30c7556124c094ef33f065ca",
      "path": "the network's own records",
      "sha256": "f9b9b39996d01be1e4eed9a7bbe76986c82a5e145783af5bc7c43f0ffda8…",
      "licence": "CC-BY-4.0",
      "snapshotAt": "2026-11-22T22:46:01+00:00",
      "origin": {
        "repository": "nexus-estate/nexus-standards-full",
        "commit": "a538df2772801f2d2bfa1fe9e0404ae4ea7b2b9b",
        "path": "machine/site-feed.json",
        "sha256": "f9b9b39996d01be1e4eed9a7bbe76986c82a5e145783af5bc7c43f0ffda8…"
      }
    },
    "stored": false,
    "note": "Nothing was stored. Coverage is the share of register requir…",
    "snapshot": {
      "digest": "153e8c78269d753e5e4276840d2f5039daf6aea19f9d354db7235e3e3925…",
      "snapshotAt": "2026-11-22T22:46:01+00:00"
    },
    "service": "nxs-standards-api",
    "version": "0.9.0",
    "method": {
      "id": "self-assessment-coverage",
      "version": "1.0.0",
      "href": "/v1/methods/self-assessment-coverage"
    },
    "replication": {
      "digest": "b883ed0bd8ca67ed4aeffec6b4737cbb02477e5ee5984e62b0bbb67745b5…",
      "inputsDigest": "816eea29a9e8bc8184ab621b95f9dd86da6e3e52f8dd3e54b7d45f7249d6…",
      "methodVersion": "1.0.0",
      "snapshotDigest": "153e8c78269d753e5e4276840d2f5039daf6aea19f9d354db7235e3e3925…",
      "sourceCommits": [
        "4a7662f4cc254b5c8ef373764ca8b953775c114e"
      ]
    },
    "interval": {
      "status": "none",
      "basis": "Coverage is an exact ratio of two counts, not a sample estim…"
    }
  }
}

An answer this API gave, shortened. Values change with the data.

Send your own results per requirement for one or more standards (or a profile from /v1/profiles/build); get coverage per standard and overall, the requirements you have not assessed and the ones you reported as failed. Stateless: nothing is stored. A self-assessment, never a conformance claim, certificate or compliance statement. Availability: Available.

Parameters

Parameters

  • Idempotency-Keyfacultatif

    header · string

    Optional. A value of your own (a UUID is fine) that makes this write safe to retry: the same caller, key and request within 24 hours gets the first answer again, with the header Idempotent-Replayed: true, and the work is not done twice. It applies to a request that carries a credential.

Answers

Responses

  • 200

    Records with provenance and coverage

  • 400Problem, RFC 9457

    Bad request (stable code in the problem)

  • 401

  • 409

  • 413Problem, RFC 9457

    Body too large

  • 414

  • 422

  • 429Problem, RFC 9457

    Open-tier rate limit

  • 500Problem, RFC 9457

    Internal error

Commencer

Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.