Download OpenAPI specification:Download
Core Tomotime API
Handler to help notify a group via push notifications
request object
| allGroups | boolean this controls if we should notify all groups or just groupId |
object | |
| groupId | string this is only used if allGroups is false |
| memoryId | string this is used if onlyMissing is true |
| message | string |
| onlyMissing | boolean this controls if we should only notif those who have not responded |
| password | string |
| title | string |
{- "allGroups": true,
- "data": { },
- "groupId": "string",
- "memoryId": "string",
- "message": "string",
- "onlyMissing": true,
- "password": "string",
- "title": "string"
}"string"Registers a new notification token for a user
request object
| device | string |
| token | string |
{- "device": "string",
- "token": "string"
}"string"{- "data": {
- "notifications": [
- {
- "created": "string",
- "id": "string",
- "notifMessage": "string",
- "notifTitle": "string",
- "pushNotif": true,
- "seen": true,
- "userId": "string"
}
]
}, - "error": "string",
- "success": true
}{- "data": {
- "notifications": [
- {
- "created": "string",
- "id": "string",
- "notifMessage": "string",
- "notifTitle": "string",
- "pushNotif": true,
- "seen": true,
- "userId": "string"
}
]
}, - "error": "string",
- "success": true
}Handle users joining a group via invite link
request object
| groupId | string |
{- "groupId": "string"
}{- "data": {
- "members": [
- {
- "memberId": "string",
- "name": "string",
- "pictureUrl": "string",
- "role": "string"
}
], - "name": "string"
}, - "error": "string",
- "success": true
}Handle users joining a group via invite link
request object
| groupId | string |
| phone | string |
{- "groupId": "string",
- "phone": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Updates the name of a group
request object
| groupId required | string |
| name required | string |
{- "groupId": "string",
- "name": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}GetGroupActivityHandler is the handler for getting activity information about a group
| id required | string group id to get activity for |
{- "data": {
- "activity": [
- {
- "created": "string",
- "groupId": "string",
- "id": "string",
- "message": "string"
}
]
}, - "error": "string",
- "success": true
}Gets all replies for a memory
| id required | string memory id to get all replies for |
{- "data": {
- "replies": [
- {
- "created": "string",
- "message": "string",
- "userId": "string"
}
]
}, - "error": "string",
- "success": true
}Add a reply to a memory
| id required | string memory id to insert reply for |
request object
| memoryId | string |
| message | string |
{- "memoryId": "string",
- "message": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Gets all replies for a memory
| id required | string memory id to get all replies for |
{- "data": {
- "replies": {
- "property1": {
- "property1": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "message": "string",
- "promptNumber": 0,
- "targetUserId": "string",
- "userId": "string"
}
], - "property2": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "message": "string",
- "promptNumber": 0,
- "targetUserId": "string",
- "userId": "string"
}
]
}, - "property2": {
- "property1": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "message": "string",
- "promptNumber": 0,
- "targetUserId": "string",
- "userId": "string"
}
], - "property2": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "message": "string",
- "promptNumber": 0,
- "targetUserId": "string",
- "userId": "string"
}
]
}
}
}, - "error": "string",
- "success": true
}Add a reply to a memory
| id required | string memory id to insert reply for |
request object
| memoryId | string |
| message | string |
| promptNumber | integer |
| targetUserId | string |
{- "memoryId": "string",
- "message": "string",
- "promptNumber": 0,
- "targetUserId": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Gets all information and metadata for a memory
request object
| memoryId | string |
{- "memoryId": "string"
}{- "data": {
- "endTime": 0,
- "groupId": "string",
- "id": "string",
- "prompts": [
- {
- "data": "string",
- "type": "string"
}
], - "respondents": [
- "string"
], - "startTime": 0,
- "weekNum": 0
}, - "error": "string",
- "success": true
}Handles a user responding to a memory and stores their reply
request object
| memoryId | string |
Array of objects (coredb.PromptResponse) |
{- "memoryId": "string",
- "responses": [
- {
- "data": "string"
}
]
}{- "data": "string",
- "error": "string",
- "success": true
}Handles a user responding to a memory and stores their reply
request object
| memoryId | string |
Array of objects (coredb.PromptResponse) |
{- "memoryId": "string",
- "responses": [
- {
- "data": "string"
}
]
}{- "data": "string",
- "error": "string",
- "success": true
}Resets the streaks for users who have not responded to the last memory for the group, meant to be called on memory open for viewing
| groupId required | string group id to reset user streaks based off of |
{- "data": "string",
- "error": "string",
- "success": true
}Handles the deletion of a user profile
request object
| phone | string |
{- "phone": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Add group activity message for a group
request object
| groupId | string |
| message | string |
| password | string |
{- "groupId": "string",
- "message": "string",
- "password": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Add question for a group
request object
| anonymous | boolean |
| groupId | string |
| questionData | string |
| questionType | string |
{- "anonymous": true,
- "groupId": "string",
- "questionData": "string",
- "questionType": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Gets all questions submitted to a group
request object
| groupId | string |
{- "groupId": "string"
}{- "data": [
- {
- "id": "string",
- "questionData": "string",
- "questionType": "string",
- "submitter": "string",
- "votes": 0
}
], - "error": "string",
- "success": true
}Gets a list of suggested questions for a category
| type required | string type |
| category required | string category |
request object
| groupId | string |
{- "groupId": "string"
}{- "data": [
- "string"
], - "error": "string",
- "success": true
}Delete a reaction from a memory
| id required | string memory id to insert reaction for |
request object
| promptNumber | integer |
| reaction | string |
| targetUserId | string |
{- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Add a reaction to a memory
| id required | string memory id to insert reaction for |
request object
| promptNumber | integer |
| reaction | string |
| targetUserId | string |
{- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Gets all reactions for a memory
| id required | string memory id to get all replies for |
{- "data": {
- "reactions": {
- "property1": {
- "property1": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string",
- "userId": "string"
}
], - "property2": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string",
- "userId": "string"
}
]
}, - "property2": {
- "property1": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string",
- "userId": "string"
}
], - "property2": [
- {
- "created": "string",
- "id": "string",
- "memoryId": "string",
- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string",
- "userId": "string"
}
]
}
}
}, - "error": "string",
- "success": true
}Delete a reaction from a memory
| id required | string memory id to insert reaction for |
request object
| reaction | string |
{- "reaction": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Add a reaction to a memory reply
| id required | string reply id to insert reaction for |
request object
| promptNumber | integer |
| reaction | string |
| targetUserId | string |
{- "promptNumber": 0,
- "reaction": "string",
- "targetUserId": "string"
}{- "data": "string",
- "error": "string",
- "success": true
}Gets all reactions for a memory
| id required | string memory id to get all replies for |
{- "data": {
- "reactions": [
- {
- "created": "string",
- "id": "string",
- "memoryReplyId": "string",
- "reaction": "string",
- "userId": "string"
}
]
}, - "error": "string",
- "success": true
}