const url = 'https://api.supermemory.ai/v4/profile';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: '{"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
}
}Get user profile with optional search results
const url = 'https://api.supermemory.ai/v4/profile';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: '{"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
}
}Was this page helpful?