User Sync
Endpoints
User Sync API
API for synchronizing user data.
POST
User Sync
POST /v1/user-sync
This endpoint is used to sync a user you have with the Wazper algorithm.
When it is called, it will run the Wazper algorithm to try to find the colleagues of that user.
Endpoint URL
The endpoint URL ishttps://api.wazper.com/v1/user-sync
HTTP Method
POST
Headers
Request Body
The request body must be a JSON object containing auser object.
Example Request (cURL)
Success Response (202 Accepted)
The response indicates that the request has been accepted for processing. The actual user synchronization and webhook trigger happen asynchronously.Error Responses
-
400 Bad Request - User Email Required:
-
400 Bad Request - User IP/Country Required:
-
400 Bad Request - API Key Not Linked:
-
401 Unauthorized - API Key Required:
-
401 Unauthorized - Invalid API Key:
-
401 Unauthorized - Invalid Organization:
-
402 Payment Required - No Credits:
-
500 Internal Server Error:
Notes
- This API will run the Wazper algorithm to find the colleagues of the user.
- If the user has a personal email address (gmail, outlook, etc..) the algorithm will not run for him.
- You are only billed a credit when more than 1 colleague is found.
- You need to handle the
countryrecognition using the IP of the user for example and pass the name of the country to the API.
Authorizations
Body
application/json
Response
Request accepted for asynchronous processing.