Skip to main content
POST
Record Consent

Authorizations

Authorization
string
header
required

A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.

Body

application/json

Study-participation consent submission.

HAI-Co² is a research study whose purpose is data collection, so agreeing to take part records BOTH the recording consent and the (required) publication consent; the endpoint stamps them regardless of this body. The only optional choice is the e-mail opt-in, so it is the sole field here (defaults to false).

email_updates
boolean
default:false

Response

Successful Response

Public user profile returned by auth endpoints.

id
integer
required
username
string
required
role
string
required
is_approved
boolean
required
auth_provider
string
required
email_verified
boolean
required
created_at
string<date-time>
required
email
string | null
email_updates_opt_in
boolean
default:false