x-sm-user-id.
How supermemory Identifies Users and conversations
supermemory will find the user ID in the following places (in order of priority):x-sm-user-id header
You can add a default header of x-sm-user-id with any client and model
user in body
For models that support the user parameter in the body, such as OpenAI, you can also attach it to the body.
userId in search params
You can also add ?userId=xyz in the URL search parameters, incase the models don’t support it.