Skip to main content
POST
Send Invitation

POST /v1/send-invitation

This endpoint is used to send an email invitation to a colleague who has been previously created. When it is called, it will send an invitation email to the specified colleague and update their status to “invited”.

Endpoint URL

The endpoint URL is https://api.wazper.com/v1/send-invitation

HTTP Method

POST

Headers

Request Body

The request body must be a JSON object containing the colleague ID.
Request Fields:

Example Request (cURL)

Success Response (200 OK)

The response indicates whether the invitation was successfully sent and processed.

Error Responses

  • 400 Bad Request - Missing Colleague ID:
  • 400 Bad Request - API Key Not Linked:
  • 401 Unauthorized - API Key Required:
  • 401 Unauthorized - Invalid API Key:
  • 403 Forbidden - Waz Disabled:
  • 404 Not Found - Invalid Colleague ID:
  • 500 Internal Server Error:

Notes

  • This API does not consume credits from your account.
  • This API requires the colleague to have been previously created by the algorithm (when calling user-sync) or using the Create Colleague API.
  • The colleague’s status is updated to “invited”.
  • The invitation email is sent using your organization’s branding and template settings.

Authorizations

X-API-Key
string
header
required

Body

application/json
colleagueId
string
required

ID of the ToBeInvited entry.

Response

Invitation process initiated.

success
boolean
requestId
string

ID of the request log.

invite
object
emailSent
boolean

Whether the email was dispatched.

emailResult
object | null
emailError
string | null

Error message if email sending failed.