User
Both of the user endpoints are private and require a Premium account.
GET /user
Private endpoint. Provides details about the user account.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.crmjot.com/api/v0/user -u "demo:jot_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": {}, "data": { "user_id": 1, "username": "demo", "name": "Demo", "timezone": "UTC" } }
POST /user
Private endpoint. Updates the user with the information provided.
Request body
name: string
The name for the account.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.crmjot.com/api/v0/account -u "demo:jot_api_sand_01234demo56789_key" -d "name=Demo Updated"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": {}, "data": { "user_id": 1, "username": "demo", "name": "Demo Updated", "timezone": "UTC" } }