Import a ChatGPT or Claude export
curl --request POST \
--url https://api.memcontext.in/api/memories/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"conversations": [
"<unknown>"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({conversations: ['<unknown>']})
};
fetch('https://api.memcontext.in/api/memories/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/memories/import"
payload = { "conversations": ["<unknown>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"format": "chatgpt",
"conversations": 123,
"accepted": 123,
"skipped": 123,
"redacted": 123,
"deferred": 123,
"limitExceeded": true
}Memories
Import a ChatGPT or Claude export
Send the parsed conversations.json from a ChatGPT or Claude data export. The newest
conversations are ingested (default 50, max 200). Re-importing the same export is a no-op.
POST
https://api.memcontext.in
/
api
/
memories
/
import
Import a ChatGPT or Claude export
curl --request POST \
--url https://api.memcontext.in/api/memories/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"conversations": [
"<unknown>"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({conversations: ['<unknown>']})
};
fetch('https://api.memcontext.in/api/memories/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/memories/import"
payload = { "conversations": ["<unknown>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"format": "chatgpt",
"conversations": 123,
"accepted": 123,
"skipped": 123,
"redacted": 123,
"deferred": 123,
"limitExceeded": true
}Authorizations
Body
application/json
Response
Accepted for background extraction.
