Zum Inhalt springen
scango.ch
Deutsch
Esc
navigierenöffnen⌘JVorschau

Block identity

Add a blocked identity. Requires a Write key. Returns 403 if identity logs are not enabled for the organization.

POST/identity-logs/blocked
Autorisierung
AutorisierungBearer-Token (API key) · headererforderlich
Organisations-API-Key.
Request-Body
erforderlichapplication/json
commentstringerforderlich
first_namestringerforderlich
last_namestringerforderlich
rawMrzstringerforderlich
birthDatestring
Optional birth date: `YYYY-MM-DD`, or ISO 8601 datetime with `Z` or a numeric offset (e.g. `1990-01-01T00:00:00.000Z`, `1990-01-01T12:00:00+02:00`). Timezone-less datetimes are rejected. Omitted or empty means no birth date is stored.
Antworten
200Created
successbooleanerforderlich
idstringerforderlich
400Bad request
errorValidationErrorerforderlich
Validierungsdetails.
Eigenschaften anzeigen
formErrorsstring[]erforderlich
fieldErrorsobjecterforderlich
403Unauthorized, or identity logs not enabled for this organization
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
Anfrage
curl -X POST "https://dashboard.scango.ch/api/v1/identity-logs/blocked" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "comment": "string",
  "first_name": "string",
  "last_name": "string",
  "rawMrz": "string",
  "birthDate": "string"
}'
Antwort
{
  "success": true,
  "id": "string"
}