Create user

Creates a user. Client_id and Client_secret are required.

When you create a user, the api_key for that user is returned. If you wish to add/read documents from that user, then this api_key must be securely stored on your server.

POST /users

{
  "client_id":"",
  "client_secret":"",
  "user":{"name":"Joe", "last_name":"Soap", "email_address":"[email protected]", "mobile_number":"+27844644488"}
  
}

response
{
    "status": {
        "code": 200
    },
    "data": {
        "user": {
            "last_name": "Soap",
            "name": "Joe",
            "date_updated": 1400960715175,
            "key": "ahNkZXZ-cXVpY2tseXNpZ24tZGV2chELEgRVc2VyGICAgIDAjNoIDA",
            "mobile_number": "+27844644488",
            "api_key": "8j6IpGwURVjLMrPrSNWctokGekW9PWK7C5YrxWz5cSO",
            "email_address": "[email protected]"
        }
    }
}

curl -X POST -H Content-Type:application/json -H Cache-Control:no-cache -H Postman-Token:998bfc20-92ef-3bdb-93f3-84c38c23f347 -d '{
  "client_id":"ahNkZXZ-cXVpY2tseXNpZ24tZGV2chgLEgtBcHBsaWNhdGlvbhiAgICAwISRCQw",
  "client_secret":"a0szm0s1JUNvMZiBsqM6b6XEaqpGt5YaCRTcrwajioP",
  "user":{"name":"Joe", "last_name":"Soap", "email_address":"[email protected]", "mobile_number":"+27844644488"}
  
}' https://sandboxapi.quicklysign.com/v1/users

Update User

Updates the current user for given access_token.
(note: access_token was obtained by calling access_token with client_id, client_secret and api_key).
Note that email address cannot be updated.

PUT /users/self

{ 
  "name":"Joe", "last_name":"Soap123","mobile_number":"+27844644488"
}
response
{
    "status": {
        "code": 200
    },
    "data": {
        "user": {
            "last_name": "Soap123",
            "name": "Joe",
            "date_updated": 1400961473637,
            "key": "ahNkZXZ-cXVpY2tseXNpZ24tZGV2chELEgRVc2VyGICAgIDAjJoLDA",
            "mobile_number": "+27844644488",
            "email_address": "[email protected]"
        }
    }
}


curl -X PUT -H Content-Type:application/json -H Cache-Control:no-cache -H Postman-Token:e23c821a-c0ee-4074-cdbf-00577b554e4d -d '{ 
  "name":"Joe", "last_name":"Soap123", "email_address":"[email protected]", "mobile_number":"+27844644488"}' https://sandboxapi.quicklysign.com/v0/users/self?access_token=<access_token>

Get User

Gets the current user for given access_token

GET /users/self

Response

{
    "status": {
        "code": 200
    },
    "data": {
        "user": {
            "last_name": "Soap123",
            "name": "Joe",
            "date_updated": 1400962700213,
            "key": "ahNkZXZ-cXVpY2tseXNpZ24tZGV2chELEgRVc2VyGICAgIDAjJoLDA",
            "mobile_number": "+27844644488",
            "email_address": "[email protected]"
        }
    }
}

curl -X GET -H Content-Type:application/json -H Cache-Control:no-cache -H Postman-Token:f834990a-07fe-a3ea-03e4-e318b52d605e https://sandboxapi.quicklysign.com/v0/users/self?access_token=<access_token>