Send Invitation API
API for sending an email invitation to a colleague.
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
Header | Type | Required | Description |
---|---|---|---|
X-API-Key | String | Yes | Your Wazper API Key. |
Content-Type | String | Yes | Must be application/json . |
Accept | String | No | Recommended application/json . |
Request Body
The request body must be a JSON object containing the colleague ID.
Request Fields:
Field | Type | Required | Description |
---|---|---|---|
colleagueId | String | Yes | The unique ID of the colleague entry to invite. |
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
Body
Response
Invitation process initiated.
The response is of type object
.