Javascript
const url = 'https://api.supermemory.ai/v3/projects'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"My Awesome Project"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "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 }
Create a new project
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request body for creating a new project
Project created
Project object for organizing memories
Was this page helpful?