Registering a Desktop or Mobile Client
Step 1: First Launch - Create a Client UUID
Generate a standard UUID on the device.
Step 2: Register the New Client
Endpoint: POST /clientUuid/uuids
Input: ~~~json { "uuids": "client-uuid-123", "os": "Windows", "version": "1.2.0" } ~~~
~~~bash
curl -X POST https://api.buttrbase.com/clientUuid/uuids -H "Content-Type: application/json" -H "Authorization: Bearer
Output: ~~~json { "Status": "client created Successfully" } ~~~
Step 3: Associate the Client with a User
Endpoint: POST /clientUuid/main
Input: ~~~json { "uuids": "client-uuid-123", "user_id": "user-uuid" } ~~~
~~~bash
curl -X POST https://api.buttrbase.com/clientUuid/main -H "Content-Type: application/json" -H "Authorization: Bearer
Output: ~~~json { "Status": "client attached Successfully" } ~~~