Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Sladd Detect API
version: '1'
description: 'Norsk PII-deteksjon og -redaksjon som HTTP-API. PDF eller tekst inn —
funn-liste eller sladdet, verifisert dokument ut.
**Flyktighetsløfte:** dokumenter behandles kun i minnet, skrives aldri til
disk, og logges aldri. Usage-rader inneholder metadata (endepunkt, mode,
sideantall) — aldri innhold, funn-tekst eller filnavn.
**For AI-agenter:** Sladd finnes også som MCP-server — `npx @sladd-no/mcp`
(lokal) eller `https://sladd.no/mcp` (Streamable HTTP med Bearer-header).
Se https://sladd.no/api.'
contact:
name: Sladd
url: https://sladd.no/api
email: post@sladd.no
servers:
- url: https://sladd.no/api
security:
- bearerAuth: []
tags:
- name: Detect
paths:
/v1/detect:
post:
operationId: detectPii
summary: Detekter PII — funn-liste som JSON
description: 'Skann tekst eller PDF for norsk PII. Returnerer funn med tegn-offsets,
type, confidence og anbefalt handling. Input på nøyaktig én av tre
måter: multipart `file` (PDF), JSON `document_base64` (PDF) eller
JSON `text` (ren tekst).'
requestBody:
$ref: '#/components/requestBodies/DocumentInput'
responses:
'200':
description: Funn-liste
content:
application/json:
schema:
$ref: '#/components/schemas/DetectResponse'
'400':
$ref: '#/components/responses/InvalidDocument'
'401':
$ref: '#/components/responses/InvalidKey'
'413':
$ref: '#/components/responses/TooLarge'
'422':
$ref: '#/components/responses/CouldNotParse'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Detect
components:
responses:
RateLimited:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
InvalidDocument:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
TooLarge:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
CouldNotParse:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
InvalidKey:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
schemas:
DetectResponse:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
requestBodies:
DocumentInput:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true