Skip to main content
POST
/
v4
/
profile
Get user profile
const url = 'https://api.supermemory.ai/v4/profile';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"q":"<string>","containerTag":"<string>"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "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
q
string

Optional search query to include search results in the response

containerTag
string

Optional 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.

Response

User profile with optional search results

profile
object
required
searchResults
object

Search results if a search query was provided

I