const url = 'https://api.supermemory.ai/v3/projects';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
{
"projects": [
{
"id": "proj_abc123",
"name": "My Awesome Project",
"containerTag": "sm_project_my_awesome_project",
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z",
"documentCount": 42
}
]
}
List all projects for the organization
const url = 'https://api.supermemory.ai/v3/projects';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
{
"projects": [
{
"id": "proj_abc123",
"name": "My Awesome Project",
"containerTag": "sm_project_my_awesome_project",
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z",
"documentCount": 42
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Projects list
Response containing list of projects
Was this page helpful?