http://167.99.154.236:3005/api/v1/
Creates a user and returns the jwt
-
URL
/users/register
-
Method:
POST
-
URL Params
Required:
name=[string]
email=[string]
password=[string]
Optional:device_token[string] (APNs)
-
Success Response:
- Code: 200
Content:{ "auth_token": "eyJhbGciOiJIUzI1NiJ9.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo" }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "errors": { [ "Email has been taken", "Name too short", .. ] } }
- Code: 401
Updates a user and returns the jwt
-
URL
/users/:id
-
Method:
PUT
-
URL Params
profile_picture=[string]
name=[string]
bio=[string]
phone_number=[string]
device_token[string] (APNs)
-
Success Response:
- Code: 200
Content:{ "auth_token": "eyJhbGciOiJIUzI1NiJ9.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo" }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "errors": { [ "Email has been taken", "Name too short", .. ] } }
- Code: 401
Given old and new password, change user password
-
URL
/users/:id
-
Method:
POST
-
URL Params
old_password=[string]
new_password=[string]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 403
Content:{ "errors": [ "The old password you entered is incorrect." ] }
- Code: 403
Get user profile picture given email
-
URL
/users/:email/profile_picture
-
Method:
GET
-
URL Params
email=[string]
-
Success Response:
- Code: 200
Content:{ "profile_picture": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQIAH..." }
- Code: 200
-
Error Response:
- Code: 400
Content:{ "errors": { [ "User not found", ... ] } }
- Code: 400
Authenticates a user and returns their jwt
-
URL
/users/authenticate
-
Method:
POST
-
URL Params
Required:
email=[string]
password=[string]
-
Success Response:
- Code: 200
Content:{ "auth_token": "eyJhbGciOiJIUzI1NiJ9.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo" }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "errors": "Invalid email or password submitted" }
- Code: 401
Facebook login
-
URL
/users/facebook
-
Method:
POST
-
URL Params
Required:
name=[string]
email=[string]
facebook_token=[string]
-
Success Response:
- Code: 200
Content:{ "auth_token": "eyJhbGciOiJIUzI1NiJ9.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo" }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "errors": "This is an invalid authtoken!" }
- Code: 401
Google login
-
URL
/users/google
-
Method:
POST
-
URL Params
Required:
name=[string]
email=[string]
google_token=[string]
-
Success Response:
- Code: 200
Content:{ "auth_token": "eyJhbGciOiJIUzI1NiJ9.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo.7nefDjhCUnGeGGzr7ypoDtQTiLC66uNI8T8O7FGvnoo" }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "errors": "This is an invalid authtoken!" }
- Code: 401
Google login
-
URL
/users/report
-
Method:
POST
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params
Required:
reporter_id=[integer]
reportee_id=[integer]
reason=[string]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "succes": false, "errors": "This is an invalid authtoken!" }
- Code: 401
Gets currently authenticated users profile
-
URL
/users
-
Method:
GET
-
URL Params
none
-
Success Response:
- Code: 200
Content:{ "profile": { "user": { "id": 1, "email": "a@b.com", "name": "aj", "bio": null, "active": "t", "rating": "0.0", "created_at": "2019-02-07T18:36:39.945Z", "updated_at": "2019-02-07T18:36:39.945Z" }, "reminder_count": 1, "active_reminders": 0, "times_reminded_others": 0, "next_reminder": { "id": 1, "title": "New", "description": "test", "status": "new", "public": true, "creator_id": 1, "caller_id": null, "will_trigger_at": "2019-02-07T18:50:00.000Z", "triggered_at": null, "created_at": "2019-02-07T18:41:33.056Z", "updated_at": "2019-02-07T18:41:33.056Z" }, "activity": { "reminders_created": [ { "id": 1, "title": "Wake Me Up", "description": "Make sure I don't sleep through my exam pls", "status": "New", "public": true, "push": false, "automated": false, "did_proxy_interact": false, "proxy_session_sid": null, "creator_id": 2, "caller_id": null, "caller_rating": null, "creator_rating": null, "will_trigger_at": "2019-04-15T00:00:00.000Z", "triggered_at": null, "job_id": 1, "created_at": "2019-04-09T20:24:58.511Z", "updated_at": "2019-04-09T20:24:58.548Z" } ], "reminders_reminded": [] } } }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Gets user with email=email profile
-
URL
/users/:email
-
Method:
GET
-
URL Params
none
-
Success Response:
- Code: 200
Content:{ "profile": { "user": { "id": 1, "email": "a@b.com", "name": "aj", "bio": null, "active": "t", "rating": "0.0", "created_at": "2019-02-07T18:36:39.945Z", "updated_at": "2019-02-07T18:36:39.945Z" }, "reminder_count": 1, "active_reminders": 0, "times_reminded_others": 0, "activity": { "reminders_created": [ { "id": 1, "title": "Wake Me Up", "description": "Make sure I don't sleep through my exam pls", "status": "New", "public": true, "push": false, "automated": false, "did_proxy_interact": false, "proxy_session_sid": null, "creator_id": 2, "caller_id": null, "caller_rating": null, "creator_rating": null, "will_trigger_at": "2019-04-15T00:00:00.000Z", "triggered_at": null, "job_id": 1, "created_at": "2019-04-09T20:24:58.511Z", "updated_at": "2019-04-09T20:24:58.548Z" } ], "reminders_reminded": [] } } }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Gets user with id=id profile
-
URL
/users/profile_by_id/:id
-
Method:
GET
-
URL Params
none
-
Success Response:
- Code: 200
Content:{ "profile": { "user": { "id": 1, "email": "a@b.com", "name": "aj", "bio": null, "active": "t", "rating": "0.0", "created_at": "2019-02-07T18:36:39.945Z", "updated_at": "2019-02-07T18:36:39.945Z" }, "reminder_count": 1, "active_reminders": 0, "times_reminded_others": 0, "activity": { "reminders_created": [ { "id": 1, "title": "Wake Me Up", "description": "Make sure I don't sleep through my exam pls", "status": "New", "public": true, "push": false, "automated": false, "did_proxy_interact": false, "proxy_session_sid": null, "creator_id": 2, "caller_id": null, "caller_rating": null, "creator_rating": null, "will_trigger_at": "2019-04-15T00:00:00.000Z", "triggered_at": null, "job_id": 1, "created_at": "2019-04-09T20:24:58.511Z", "updated_at": "2019-04-09T20:24:58.548Z" } ], "reminders_reminded": [] } } }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Report a bad user
-
URL
/users/report
-
Method:
POST
-
URL Params
reporter_id=[integer]
reportee_id=[integer]
reason=[string]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Gets list of friends that a user is following. only accessible to current user.
-
URL
/users/:id/followed_friends
-
Method:
GET
-
URL Params
-
Success Response:
- Code: 200
Content:{ "friends": [ { "id": 2, "email": "aj2@bienz.org", "name": "AJ Bienz 2", "bio": null, "active": "t", "phone_number": "12602233174", "ready_to_remind": false, "facebook_token": null, "google_token": null, "profile_picture": null, "activity_hidden": false, "device_token": null, "created_at": "2019-04-09T20:05:40.029Z", "updated_at": "2019-04-09T20:05:40.029Z" } ] }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "There is no user with that id", ... ]" }
- Code: 400, 404, etc
Gets friends list for specified user
-
URL
/users/:id/friends
-
Method:
GET
-
URL Params
-
Success Response:
- Code: 200
Content:{ "friends": [ { "id": 2, "email": "aj2@bienz.org", "name": "AJ Bienz 2", "bio": null, "active": "t", "phone_number": "12602233174", "ready_to_remind": false, "facebook_token": null, "google_token": null, "profile_picture": null, "activity_hidden": false, "device_token": null, "created_at": "2019-04-09T20:05:40.029Z", "updated_at": "2019-04-09T20:05:40.029Z" } ] }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "There is no user with that id", ... ]" }
- Code: 400, 404, etc
Send a friend request
-
URL
/users/:id/send_friend_request
-
Method:
POST
-
URL Params
friend_id=[integer]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Accept a friend request
-
URL
/users/:id/accept_friend_request
-
Method:
POST
-
URL Params
friend_request=[integer]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Decline a friend requests
-
URL
/users/:id/decline_friend_request
-
Method:
POST
-
URL Params
friend_request=[integer]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Unfriend user with id=friend_id
-
URL
/users/:id/unfriend
-
Method:
POST
-
URL Params
friend_id=[integer]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "You are not friends with this user", ... ]" }
- Code: 400, 404, etc
Unfollow user with id=friend_id. user must be friend of currently authenticated user. id param is current user id.
-
URL
/users/:id/unfollow
-
Method:
POST
-
URL Params
friend_id=[integer]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "You are not friends with this user", ... ]" }
- Code: 400, 404, etc
Follow user with id=friend_id. user must be friend of currently authenticated user. id param is current user id.
-
URL
/users/:id/follow
-
Method:
POST
-
URL Params
friend_id=[integer]
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "You are not friends with this user", ... ]" }
- Code: 400, 404, etc
View a list of friend requests a user received
-
URL
/users/:id/friend_requests_received
-
Method:
GET
-
URL Params
-
Success Response:
- Code: 200
Content:{ "friend_requests": [ { "id":1, "sender_id":2, "receiver_id":1, "status":"sent", "created_at": "2019-03-07T22:01:15.969Z", "updated_at": "2019-03-07T22:01:15.969Z" }, { "id":2, "sender_id":2, "receiver_id":1, "status":"sent", "created_at": "2019-03-07T22:01:15.969Z", "updated_at": "2019-03-07T22:01:15.969Z" } ] }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
View a list of friend requests a user sends
-
URL
/users/:id/friend_requests_sent
-
Method:
GET
-
URL Params
-
Success Response:
- Code: 200
Content:{ "friend_requests": [ { "id":1, "sender_id":2, "receiver_id":1, "status":"sent", "created_at": "2019-03-07T22:01:15.969Z", "updated_at": "2019-03-07T22:01:15.969Z" }, { "id":2, "sender_id":2, "receiver_id":1, "status":"sent", "created_at": "2019-03-07T22:01:15.969Z", "updated_at": "2019-03-07T22:01:15.969Z" } ] }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Search through all users
-
URL
/users/search
-
Method:
GET
-
URL Params query=[string]
-
Success Response:
- Code: 200
Content:{ "results": [ { "id":1, "email": "test@test.com", "name":"Test", "bio":null, "active":"", "phone_number":null, "rating":"0.0", "ready_to_remind":false, "facebook_token":null, "google_token":null, "profile_picture":null, "activity_hidden":false, "created_at":"2019-03-03T03:53:05.460Z", "updated_at":"2019-03-03T03:53:05.460Z" }, { "id":1, "email": "test@test.com", "name":"Test", "bio":null, "active":"", "phone_number":null, "rating":"0.0", "ready_to_remind":false, "facebook_token":null, "google_token":null, "profile_picture":null, "activity_hidden":false, "created_at":"2019-03-03T03:53:05.460Z", "updated_at":"2019-03-03T03:53:05.460Z" },.. ] }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
View friends activity
-
URL
/users/:id/friend_activity
-
Method:
GET
-
URL Params
-
Success Response:
- Code: 200
Content:{ "friend_activity": [ "John Smith": { "reminders_created": [ { "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": 2, "will_trigger_at": "2018-10-12T00:00:00Z", } ], "reminders_reminded": [ { "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": 2, "will_trigger_at": "2018-10-12T00:00:00Z", } ] } ] }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Hides a user's profile activity
-
URL
/users/:id/hide_profile_activity
-
Method:
POST
-
URL Params
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Shows the user's profile activity
-
URL
/users/:id/hide_profile_activity
-
Method:
POST
-
URL Params
-
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ "User not found", ... ]" }
- Code: 400, 404, etc
Creates a comment
-
URL:
/comments/ -
Method:
POST
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:user_id=[integer]
reminder_id=[integer]
content=[string]
-
Success Response:
- Code: 200
Content:{ success: true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Deletes a comment
-
URL:
/comments/:id -
Method:
DELETE
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:id=[integer]
-
Success Response:
- Code: 200
Content:{ success: true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Creates a like
-
URL:
/likes/ -
Method:
POST
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:user_id=[integer]
reminder_id=[integer]
-
Success Response:
- Code: 200
Content:{ success: true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Deletes a like
-
URL:
/likes/:id -
Method:
DELETE
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:id=[integer]
-
Success Response:
- Code: 200
Content:{ success: true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Creates a reminder with the current user as creator
-
URL:
/reminders/ -
Method:
POST
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:title=[string]
description=[string]
status=[string]
public=[boolean]
creator_id=[integer]
will_trigger_at=[datetime]
push=[boolean]
automated=[boolean]
textable=[boolean]
friend_id=[integer]
-
Success Response:
- Code: 200
Content:{ "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": null, "will_trigger_at": "2018-10-12T00:00:00Z", "push": false, "automated": false, "textable": false, "friend_id": null }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Create a reminder with friend_id set to the id of the friend you wish to have remind you. When the reminder triggers, the friend will receive a push notification with the following data in the body/payload:
{
"type": "friend_reminder",
"phone_number": "1xxxxxxxxxx",
"reminder": {
"id": 9,
"title": "Wake Me Up",
"description": "Make sure I don't sleep through my exam pls",
...
}
}
When the friend interacts with the reminder, they should be shown the reminder details and promted to call the phone_number in the body.
Update a reminder with the current user as creator
-
URL:
/reminders/:id -
Method:
PUT
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:id=[integer]
description=[string]
status=[string]
public=[boolean]
creator_id=[integer]
will_trigger_at=[datetime]
-
Success Response:
- Code: 200
Content:{ "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": 2, "will_trigger_at": "2018-10-12T00:00:00Z", }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Get reminder history for currently authenticated user
-
URL:
/reminders -
Method:
GET
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
none -
Success Response:
- Code: 200
Content:[{ "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": 2, "will_trigger_at": "2018-10-12T00:00:00Z", }, ... ]
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Get reminder of id for currently authenticated user
-
URL:
/reminders/:id -
Method:
GET
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Requiredid=[integer]
-
Success Response:
- Code: 200
Content:{ reminder: { "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": 2, "will_trigger_at": "2018-10-12T00:00:00Z", } }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Delete a reminder with the current user as creator
-
URL:
/reminders/:id -
Method:
DELETE
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
Required:id=[integer]
-
Success Response:
- Code: 200
Content:{ success: true }
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Gets a Twilio access token for currently authenticated user
-
URL
/twilio/access_token
-
Method:
POST
-
URL Params
Required:
type=[string] ('voice' or 'chat')
-
Success Response:
- Code: 200
Content:{ "access_token": "eyJ...", "type": "voice" }
- Code: 200
-
Error Response:
- Code: 401
Content:{ "errors": { [ "...", "...", .. ] } }
- Code: 401
To enable call masking, MASKING_ENABLED should be set as an environment variable on the server. It can be set to anything, but 'true' would be a good choice. Then, when a reminder is triggered, the server will interface with Twilio to create a proxy session and add the creator and caller to the proxy session as participants. The number returned to the caller will then be a masked number returned by Twilio. When the caller calls this number, they will be routed to the reminder creator. By default, the Twilio proxy session expires three minutes after its creation. It will also be closed after the call is ended. Additionally, if no interactions are made on the proxy before the session expires (if the reminding user does not follow through), a push notification will be sent to the creator.
The same is done for text reminders.
If a user creates a reminder with push=true, the backend will verify that the user has an APNs device_token specified. If not, an error will be sent back during reminder creation.
When the reminder triggers, a push notification is sent via Apple with the following alert: 'Don't forget! {reminder title}'
and the reminder in the payload. E.g.:
{
"id:" 1,
"title": "Wake up",
"public": true,
"push": true,
"status": "triggered"
"creator_id": 1,
"caller_id": null,
"will_trigger_at": "2018-10-12T00:00:00Z",
}
Get triggered reminders where the current user is a party and has not yet rated the interaction
-
URL:
/reminders/unrated -
Method:
GET
-
Headers:
Authorization: Bearer <auth_token>
-
URL Params:
none -
Success Response:
- Code: 200
Content:[{ "id:" 1, "title": "New", "public": true, "status": "New" "creator_id": 1, "caller_id": 2, "will_trigger_at": "2018-10-12T00:00:00Z", }, ... ]
- Code: 200
-
Error Response:
- Code: 400, 404, etc
Content:{ "errors": "[ ... ]" }
- Code: 400, 404, etc
Assign a rating to a reminder that the user is a part of. If the user was creator, then set the caller's rating, and if the user was the caller, set the creator rating.
-
URL
/reminders/rating
-
Method:
POST
- Headers:
Authorization: Bearer <auth_token>
- Headers:
-
URL Params
Required:
ids=[integer []]
ratings=[integer[], 1 to 5]
rating for id[i] is at rating[i] -
Success Response:
- Code: 200
Content:{ "success": true }
- Code: 200
-
Error Response:
- Code: 400
Content:{ "errors": { [ "Reminder does not exist or you do not have access", "...", .. ] } }
- Code: 400
Get comments for a reminder
-
URL
/reminders/:id/comments
-
Method:
POST
- Headers:
Authorization: Bearer <auth_token>
- Headers:
-
URL Params
Required:
id=[integer]
-
Success Response:
- Code: 200
Content:{ "comments": [ { content: "Comment 1", user_id: 1, reminder_id: 1, id: 1, user_name: "Name" } ] }
- Code: 200
-
Error Response:
- Code: 400
Content:{ "errors": { [ "Reminder does not exist or you do not have access", "...", .. ] } }
- Code: 400
Get likes for a reminder
-
URL
/reminders/:id/likes
-
Method:
POST
- Headers:
Authorization: Bearer <auth_token>
- Headers:
-
URL Params
Required:
id=[integer]
-
Success Response:
- Code: 200
Content:{ "likes": [ { user_id: 1, reminder_id: 1 } ] }
- Code: 200
-
Error Response:
- Code: 400
Content:{ "errors": { [ "Reminder does not exist or you do not have access", "...", .. ] } }
- Code: 400
Get stats for all reminders
-
URL
/reminders/stats
-
Method:
GET
- Headers:
Authorization: Bearer <auth_token>
- Headers:
-
Success Response:
- Code: 200
Content:{ "stats": { "daily": { "num_reminders_created": 0, "num_people_reminded": 0 }, "weekly": { "num_reminders_created" =>1, "num_people_reminded"=>0 }, "monthly": { "num_reminders_created" =>1, "num_people_reminded"=>0 } }
- Code: 200
-
Error Response:
- Code: 400
Content:{ "errors": [ "Reminder does not exist or you do not have access", "...", .. ] }
- Code: 400