Your app's users
Save memories
Save up to 100 memories at once, each by your own id.
POST
/
platform
/
v1
/
users
/
{uid}
/
memories
Save Memories
curl --request POST \
--url https://api.constella.app/platform/v1/users/{uid}/memories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"id": "<string>",
"text": "<string>",
"title": "<string>",
"kind": "<string>",
"source": "<string>",
"tags": [
"<string>"
],
"tentative": false,
"occurred_at": "<unknown>"
}
]
}
'import requests
url = "https://api.constella.app/platform/v1/users/{uid}/memories"
payload = { "items": [
{
"id": "<string>",
"text": "<string>",
"title": "<string>",
"kind": "<string>",
"source": "<string>",
"tags": ["<string>"],
"tentative": False,
"occurred_at": "<unknown>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
id: '<string>',
text: '<string>',
title: '<string>',
kind: '<string>',
source: '<string>',
tags: ['<string>'],
tentative: false,
occurred_at: '<unknown>'
}
]
})
};
fetch('https://api.constella.app/platform/v1/users/{uid}/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}Path Parameters
Body
application/json
Response
Successful Response
The response is of type Response Save Memories Platform V1 Users Uid Memories Post · object.
⌘I
Save Memories
curl --request POST \
--url https://api.constella.app/platform/v1/users/{uid}/memories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"id": "<string>",
"text": "<string>",
"title": "<string>",
"kind": "<string>",
"source": "<string>",
"tags": [
"<string>"
],
"tentative": false,
"occurred_at": "<unknown>"
}
]
}
'import requests
url = "https://api.constella.app/platform/v1/users/{uid}/memories"
payload = { "items": [
{
"id": "<string>",
"text": "<string>",
"title": "<string>",
"kind": "<string>",
"source": "<string>",
"tags": ["<string>"],
"tentative": False,
"occurred_at": "<unknown>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
id: '<string>',
text: '<string>',
title: '<string>',
kind: '<string>',
source: '<string>',
tags: ['<string>'],
tentative: false,
occurred_at: '<unknown>'
}
]
})
};
fetch('https://api.constella.app/platform/v1/users/{uid}/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": {
"code": "bad_key",
"message": "This key is wrong, revoked or replaced."
}
}