App Data
Last updated
Last updated
Reminder: if you are using an app/client ID in sandbox, you must use sandbox.motar.io as the endpoint for your requests. Requests to api.motar.io with a sandbox client ID will fail!
GET
https://api.motar.io/app/v1/data
Returns a user's private app data. Each user has one private store per app.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
POST
https://api.motar.io/app/v1/data
Update a user's private app data.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
userId
string
User ID for the owner of the app data to retrieve. A user can only query for his or her own app data or the app data of their kid's accounts.
Authorization
string
Auth token generated when logging in.
Authorization
string
Auth token generated when logging in.
key
string
Location in app data to update, using dot object notation.
userId
string
User ID for the owner of the app data to update. A user can only update his or her own app data or the app data of their kid's account.
value
string
Value to insert or update at the location specified by the "key" parameter. This can be any valid JSON data.