Skip to main content
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 a user object.
User Object Fields:

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 country recognition using the IP of the user for example and pass the name of the country to the API.

Authorizations

X-API-Key
string
header
required

Body

application/json
user
object
required

Response

Request accepted for asynchronous processing.

success
boolean
Example:

true

status
string

Indicates the request is being processed asynchronously.

Example:

"processing"

requestId
string

ID of the request log.

userId
string

ID of the created/updated ClientUser.

message
string
Example:

"Request accepted and is being processed asynchronously."