User

Track current user metadata

Stores Cloudflare/request header metadata and optional client-side metadata for the authenticated user.

post/v1/user/metadata

Request

  • Base URL
    https://api.miaai.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://api.miaai.chat/v1/user/metadata
  • Auth
    HTTP bearer

Request body

webUserIdstring

Web user ID stored by the frontend in localStorage

firebaseUidstring

Firebase UID, used to link metadata to web_users and users

clientMetadataobject

Client-side metadata unavailable in request headers: screen, timezone, navigator fields, app session IDs, etc.

Response

Metadata tracked successfully

webUserIdstring
userIdstring
metadataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.