POST /assessments

Public demo submission endpoint. IP-rate-limited, no API key.

What this is

Receives a completed public demo run from /demo/. No API key. IP-rate-limited to prevent abuse.

When to use

You almost certainly do not use this directly. It is invoked by the public demo on the marketing site.

Request

curl -X POST https://api.cohesionauth.com/assessments \
  -H "Content-Type: application/json" \
  -d '{ "sessionId": "demo_...", "records": [...] }'

Response

{
  "ok": true,
  "sessionId": "demo_01H...",
  "shareUrl": "https://cohesionauth.com/demo/result?session=demo_01H..."
}

Errors

StatusMeaning
429IP rate limit
422Invalid demo payload

Next step

Retrieve a run: GET /assessments/:sessionId.