Hoppa till innehållet
Dokumentation

API-referens

Varje endpoint, genererad från API:ets egen specifikation.

Det här dokumentet publiceras endast på engelska. En översättning skulle behöva vara juridisk, och vi visar hellre den text som är bindande än en ungefärlig version av den.

Vendors

The vendor inventory — what the account watches, and what is beneath each vendor. A vendor is addressed by its entity public id everywhere.

GET/api/v1/vendors

List watched vendors with coverage

The whole inventory by default. Pass limit to opt into cursor paging for inventories that have outgrown one response.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
limit
query
Page size. Clamped to each endpoint's maximum.
cursor
query
Opaque page cursor from meta.next_cursor. Unknown cursors are refused as invalid_parameter — restart from page one.

Exempelförfrågan

curl https://nthparty.io/api/v1/vendors \
  -H "Authorization: Bearer npk_..."

Exempelsvar

{
  "vendors": [
    {
      "public_id": "ent_cloudflare",
      "status": "active",
      "notice_period_days": 30,
      "watched_since": "2026-05-01T09:00:00Z",
      "entity": {
        "public_id": "ent_cloudflare",
        "name": "Cloudflare, Inc.",
        "slug": "cloudflare",
        "domain": "cloudflare.com",
        "country_code": "US",
        "country": "United States",
        "operating_country_codes": [
          "US",
          "DE"
        ],
        "hq_address": "101 Townsend St, San Francisco, CA",
        "contact_info": {},
        "category_code": "cdn",
        "category": "CDN and edge",
        "disclosure_status": "resolved",
        "resolved_from": null
      },
      "coverage": {
        "node_count": 42,
        "resolved": 31,
        "publishes_nothing": 6,
        "not_yet_crawled": 5,
        "coverage_pct": 73.8,
        "computed_at": "2026-08-18T04:10:00Z"
      }
    }
  ],
  "meta": {
    "count": 1,
    "has_more": false,
    "next_cursor": null,
    "depth_limit": null
  }
}

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/vendors

Start watching a vendorkräver write-scope

201 with created: true for a new watch; 200 with created: false when the vendor was already watched — a retry after a timeout lands there, not on an error. Refused with limit_reached when the plan's vendor allowance is used up.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/vendors \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"entity_public_id":"ent_stripe","notice_period_days":60}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
limit_reached
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/vendors/{entity_public_id}

One watched vendor

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/vendors/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

PATCH/api/v1/vendors/{entity_public_id}

Update a vendor's notice periodkräver write-scope

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X PATCH https://nthparty.io/api/v1/vendors/... \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"notice_period_days":30}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

DELETE/api/v1/vendors/{entity_public_id}

Stop watching a vendorkräver write-scope

The watch is deleted; the alerts it produced stay — evidence does not un-happen.

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.

Exempelförfrågan

curl -X DELETE https://nthparty.io/api/v1/vendors/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

POST/api/v1/vendors/{entity_public_id}/pause

Pause a vendorkräver write-scope

"Stop telling me about this." The change feed skips a paused vendor; the inventory and the graph still answer for it. Idempotent.

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/vendors/.../pause \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

POST/api/v1/vendors/{entity_public_id}/resume

Resume a paused vendorkräver write-scope

Idempotent for a vendor that is already active. Refused with limit_reached when the vendor sits outside the plan's vendor allowance — the oldest vendors hold it, and a vendor a downgrade paused is outside it by definition. Remove an older vendor or change plan, then resume.

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/vendors/.../resume \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
limit_reached
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

GET/api/v1/vendors/{entity_public_id}/graph

The subgraph beneath a vendor, as a tree

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
depth
query
Narrows the traversal depth. Never widens past the plan's bound.

Exempelförfrågan

curl https://nthparty.io/api/v1/vendors/.../graph \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

GET/api/v1/vendors/{entity_public_id}/list

The same walk, flat

Root dropped — a vendor is not its own subprocessor — and ordered by depth. The endpoint a vendor-inventory export is built from.

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
depth
query
Narrows the traversal depth. Never widens past the plan's bound.

Exempelförfrågan

curl https://nthparty.io/api/v1/vendors/.../list \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Entities

Company lookup against the shared dataset — fuzzy search by name, exact lookup by domain, and one company's profile.

GET/api/v1/entities

Search companies

Exactly one of q (fuzzy name search, minimum 2 characters) or domain (exact lookup). Each row carries watched and watchlisted — this account's relationship to the company.

Parametrar

Parameter
Plats
Beskrivning
q
query
Fuzzy name search.
domain
query
Exact website-domain lookup.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
limit
query
Page size. Clamped to each endpoint's maximum.

Exempelförfrågan

curl https://nthparty.io/api/v1/entities \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/entities/{public_id}

One company

Answers for any company in the dataset, watched or not. Ids are durable — a merged-away id resolves to its survivor and says so in resolved_from.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/entities/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Changes

The change feed for the account's watched graph, and one change with its evidence.

GET/api/v1/changes

The change feed

Changes beneath the account's actively watched vendors, newest first, cursor-paginated. Defaults to the last 30 days; since widens or narrows the window. Bad filter values are refused, never ignored.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
limit
query
Page size. Clamped to each endpoint's maximum.
cursor
query
Opaque page cursor from meta.next_cursor. Unknown cursors are refused as invalid_parameter — restart from page one.
vendor
query
Restrict to one actively watched vendor's graph.
type
query
Restrict to one change type.
since
query
ISO-8601; only changes detected at or after this instant.

Exempelförfrågan

curl https://nthparty.io/api/v1/changes \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/changes/{public_id}

One change, with its evidence

The change, the path from the watched vendor down to the company that moved, and the disclosure as published — evidence.raw_excerpt is quoted in its original language, beside the translated summary, never instead of it.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/changes/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

GET/api/v1/changes/{public_id}/evidence

One change's evidence artifact, as a file

The same artifact the console downloads (spec §7: "timestamped and suitable for pasting into a risk report"), in either of two content types from one field list. The format is a query parameter rather than a path extension, so a change id containing a dot stays an id. Defaults to CSV — the format every spreadsheet, GRC tool and ticket system reads. A change beneath no vendor this account watches is a 404, exactly as on the change itself.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
format
query
The content type of the artifact. Anything else is refused.

Exempelförfrågan

curl https://nthparty.io/api/v1/changes/.../evidence \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Alerts

The alert inbox a SIEM polls and a ticketing integration drains. Every field reads from the alert's frozen payload.

GET/api/v1/alerts

The alert inbox

Open alerts by default — the inbox is about what is unhandled. meta.counts answers "is anything waiting" without fetching rows. Cursor-paginated.

Parametrar

Parameter
Plats
Beskrivning
limit
query
Page size. Clamped to each endpoint's maximum.
cursor
query
Opaque page cursor from meta.next_cursor. Unknown cursors are refused as invalid_parameter — restart from page one.
status
query
severity
query

Exempelförfrågan

curl https://nthparty.io/api/v1/alerts \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/alerts/{id}/acknowledge

Acknowledge an alertkräver write-scope

"I have looked." Does not stop alerting and hides nothing. Idempotent — the stored timestamp is the first one, so a client that cannot tell whether its POST landed sends it again.

Parametrar

Parameter
Plats
Beskrivning
id*
path
The alert's public id (alrt_…).

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/alerts/.../acknowledge \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

POST/api/v1/alerts/{id}/dismiss

Dismiss an alertkräver write-scope

"This does not matter here" — the verb that closes an alert, for the ticketing integration reflecting a resolution made by a person. Requires a key deliberately minted with the write scope. Idempotent.

Parametrar

Parameter
Plats
Beskrivning
id*
path
The alert's public id (alrt_…).

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/alerts/.../dismiss \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Exposure

"An incident named a provider — which of my vendors depend on it?" Answered with paths, and with a named clear list when the answer is no.

GET/api/v1/exposure

Which of my vendors depend on this company?

"Not exposed" is an answer, not an empty state: exposed: false travels with the count checked and the named clear list. An unknown id is a 404 — "we have never heard of that company" and "none of your vendors reach it" are opposite findings.

Parametrar

Parameter
Plats
Beskrivning
entity*
query
The entity public id to check.
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/exposure?entity=... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Concentration

The portfolio concentration report — which providers everything terminates at. Requires the concentration entitlement (Pro).

GET/api/v1/concentration

The portfolio concentration report

Counted over deduplicated entities, top 12 providers, each with the watched vendors that reach it. Requires the concentration entitlement (Pro) in addition to API access; refused with plan_required otherwise. The coverage caveat travels with the report — concentration is computed over what is resolved.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/concentration \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

Compare

Two candidate vendors' chains side by side, before signing. Either side can be any company.

GET/api/v1/compare

Two vendors' chains, side by side

Shared dependencies, what only one side brings, and each side's coverage — either side can be any company. A side that cannot be resolved is refused naming the side, so a script comparing a candidate list knows which id to fix.

Parametrar

Parameter
Plats
Beskrivning
a*
query
b*
query
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/compare?a=...&b=... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

Watchlist

Companies the account is worried about — "tell me if this ever appears anywhere in my graph". The inverse of the vendor inventory.

GET/api/v1/watchlist

List watchlist entries

Each entry answers "is this company in my graph today, and through which vendors?" live. in_graph is three-valued: true, false, or null when the id no longer names a company.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/watchlist \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/watchlist

Add a company to the watchlistkräver write-scope

201 with created: true for a new entry; 200 with created: false when the company was already listed — the same statement made twice.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/watchlist \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"entity_public_id":"ent_openai","note":"Named in the incident review 2026-08"}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

DELETE/api/v1/watchlist/{entity_public_id}

Remove a company from the watchlistkräver write-scope

Parametrar

Parameter
Plats
Beskrivning
entity_public_id*
path
The vendor's entity public id — the durable handle, never a row id.

Exempelförfrågan

curl -X DELETE https://nthparty.io/api/v1/watchlist/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Rules

Alerting rules — a condition tree plus delivery instructions. The tree travels verbatim in both directions.

GET/api/v1/rules

List rules

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/rules \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/rules

Create a rulekräver write-scope

Validation is the model's — the same gate the console builder runs, so the API cannot accept a rule the builder would refuse. An empty condition_tree is the catch-all. Refusals carry error.errors (field → messages) beside the sentence.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/rules \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"name":"Critical jurisdictions","severity":"critical","delivery_mode":"immediate","scope":"account","channels":["email","webhook"],"condition_tree":{"kind":"group","join":"and","children":[{"kind":"condition","field":"change.type","op":"is","value":"jurisdiction_shift"}]}}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/rules/preview

Dry-run a rule without saving itkräver write-scope

What would this rule have matched, and what does it match now? The probe is validated exactly as a save would be, so the preview cannot accept a shape the save would reject. A POST (the tree travels in the body), so it sits behind the write scope — the caller previewing a rule is the caller about to write one.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/rules/preview \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"scope":"account","condition_tree":{"kind":"group","join":"and","children":[{"kind":"condition","field":"change.type","op":"is","value":"entity_added"}]}}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/rules/{public_id}

One rule

Parametrar

Parameter
Plats
Beskrivning
public_id*
path
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/rules/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

PATCH/api/v1/rules/{public_id}

Update a rulekräver write-scope

Only the keys sent are touched — {"enabled": false} is the toggle; there is no separate toggle path.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X PATCH https://nthparty.io/api/v1/rules/... \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

DELETE/api/v1/rules/{public_id}

Delete a rulekräver write-scope

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl -X DELETE https://nthparty.io/api/v1/rules/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Exports

Requested artifacts — the vendor inventory and the change history as CSV. Request, poll, download. An export and its file are deleted 30 days after it completed; download what you need to keep.

GET/api/v1/exports

List exports

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.
limit
query
Page size. Clamped to each endpoint's maximum.
cursor
query
Opaque page cursor from meta.next_cursor. Unknown cursors are refused as invalid_parameter — restart from page one.

Exempelförfrågan

curl https://nthparty.io/api/v1/exports \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/exports

Request an exportkräver write-scope

Asynchronous by design — answers **202** with a pending row; poll GET /api/v1/exports/{public_id} until it is done. vendor and since apply to change_history_csv only; a vendor not actively watched is refused rather than ignored. A change_history_csv file holds at most the 200 most recent changes matching its filters — for a longer history, narrow it by vendor or page the change feed (GET /api/v1/changes). The export and its file are deleted 30 days after it completes.

Parametrar

Parameter
Plats
Beskrivning
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/exports \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"kind":"change_history_csv","since":"2026-07-01T00:00:00Z"}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/exports/{public_id}

Poll one export

Three-state status; failed carries its reason and download_path is null until the file exists. 30 days after completion the export is deleted and this answers 404.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path
locale
query
Language for summaries and data labels (en, de, fr, es, nl, da, sv, it). Unknown codes are refused, never quietly answered in English. Declared on the operations whose reply carries something to translate (schemas marked <code>x-localized</code>, or a rendered document); any other operation still refuses an unknown code, and has nothing to translate.

Exempelförfrågan

curl https://nthparty.io/api/v1/exports/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

GET/api/v1/exports/{public_id}/download

Download the file

The one endpoint whose success response is a file, not JSON. Streams through the app with the stored content type and filename. A file not (or never) available is a **409** with code not_ready — poll the export until it is done. Files are kept for 30 days after the export completes, then deleted with the export (404).

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl https://nthparty.io/api/v1/exports/.../download \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
409
not_ready
429
rate_limited

Attestations

Signed monitoring attestations — the evidence a GRC platform accepts that this account's supply chain was actually being watched. Closed months are permanent; the rolling 30 days is computed on read.

GET/api/v1/attestations

List closed-month attestations

Newest month first, cursor-paginated. A closed month never changes, which is what makes an old attestation still worth quoting. Months that have been claimed and not yet signed are not listed.

Parametrar

Parameter
Plats
Beskrivning
limit
query
Page size. Clamped to each endpoint's maximum.
cursor
query
Opaque page cursor from meta.next_cursor. Unknown cursors are refused as invalid_parameter — restart from page one.

Exempelförfrågan

curl https://nthparty.io/api/v1/attestations \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/attestations/current

The rolling 30-day attestation

Built and signed on this request. It is never stored, because a document about "the last 30 days" is stale the moment it lands in a row — so public_id and download_path are null on it. This is the endpoint a continuously-syncing connector polls.

Exempelförfrågan

curl https://nthparty.io/api/v1/attestations/current \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/attestations/keys

The public keys attestations are verified against

Every signature names its key by id; this is where that id resolves. Retired keys stay listed so documents issued before a rotation keep verifying. Keys are raw 32-byte Ed25519 public keys, base64url without padding — a verifier wants 32 bytes, not a certificate container.

Exempelförfrågan

curl https://nthparty.io/api/v1/attestations/keys \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/attestations/{public_id}/download

Download the attestation as a PDF

The same document as a page, rendered from the stored payload and never recounted, so the file and the JSON cannot disagree about a month. The signature, its key id and the verification recipe are printed on the page. A month claimed and not yet signed is a **409** with code not_ready.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl https://nthparty.io/api/v1/attestations/.../download \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
409
not_ready
429
rate_limited

Webhook endpoints

Webhook destinations, Stripe-style. The signing secret is shown once, in the response that minted it.

GET/api/v1/webhook_endpoints

List webhook endpoints

Never includes the signing secret.

Exempelförfrågan

curl https://nthparty.io/api/v1/webhook_endpoints \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

POST/api/v1/webhook_endpoints

Create a webhook endpointkräver write-scope

The response carries secret — **the only time it is shown besides a rotation**. Store it; it cannot be read back. Events default to everything catalogued. The URL must be public HTTPS we can reach. The companion notification channel is created with it, so alerts and raw change events arrive at the same destination.

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/webhook_endpoints \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"url":"https://hooks.example.com/nthparty","description":"SIEM intake","events":["alert.created"]}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
429
rate_limited

GET/api/v1/webhook_endpoints/{public_id}

One webhook endpoint

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl https://nthparty.io/api/v1/webhook_endpoints/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

PATCH/api/v1/webhook_endpoints/{public_id}

Update a webhook endpointkräver write-scope

Re-enabling a disabled endpoint asks for its own parameter (active: true) — a save that fixes a URL does not silently restart a receiver the dispatcher shut off.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl -X PATCH https://nthparty.io/api/v1/webhook_endpoints/... \
  -H "Authorization: Bearer npk_..." \
  -H "Content-Type: application/json" \
  -d '{"active":true}'

Fel

Status
Kod
400
invalid_parameter
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

DELETE/api/v1/webhook_endpoints/{public_id}

Delete a webhook endpointkräver write-scope

Tears down the endpoint and its companion channel together.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl -X DELETE https://nthparty.io/api/v1/webhook_endpoints/... \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

POST/api/v1/webhook_endpoints/{public_id}/rotate_secret

Rotate the signing secretkräver write-scope

A planned rotation with a 24-hour overlap: both secrets sign until the window closes, so the consumer deploys the new one without a minute where verification fails. The new secret is in this response and nowhere else.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/webhook_endpoints/.../rotate_secret \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

POST/api/v1/webhook_endpoints/{public_id}/regenerate_secret

Regenerate the signing secret (no overlap)kräver write-scope

For a leaked secret. Issues a new secret and discards the old one — and any previous secret still inside a rotation window — at once, so the next delivery is signed with the new secret only. Deliveries fail verification until the consumer deploys it. The new secret is in this response and nowhere else.

Parametrar

Parameter
Plats
Beskrivning
public_id*
path

Exempelförfrågan

curl -X POST https://nthparty.io/api/v1/webhook_endpoints/.../regenerate_secret \
  -H "Authorization: Bearer npk_..."

Fel

Status
Kod
401
unauthorized
403
plan_required
403
insufficient_scope
404
not_found
429
rate_limited

Börja med en leverantör. Gratis, utan kort.

Sök upp ett företag, följ det och se kedjan under det. Uppgradera när en leverantör inte längre räcker.