Skip to main content
POST
/
v4
/
profile
Get user profile
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({containerTag: '<string>'})
};

fetch('https://api.supermemory.ai/v4/profile', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "profile": {
    "static": [
      "<string>"
    ],
    "dynamic": [
      "<string>"
    ]
  },
  "searchResults": {
    "results": [
      "<any>"
    ],
    "total": 123,
    "timing": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
containerTag
string
required

Tag to filter the profile by. This can be an ID for your user, a project ID, or any other identifier you wish to use to filter memories.

q
string

Optional search query to include search results in the response

Response

User profile with optional search results

profile
object
required
searchResults
object

Search results if a search query was provided