POST /v1/colleagues-create
This endpoint is used to create a new colleague entry for potential future invitations.
When it is called, it will create a new colleague record in your organization that can later be invited using the Send Invitation API.
Endpoint URL
The endpoint URL ishttps://api.wazper.com/v1/colleagues-create
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 colleague information.Field | Type | Required | Description |
---|---|---|---|
name | String | Yes | The colleague’s full name. |
email | String | Yes | The colleague’s email address. This will be used for sending invitations. |
companyName | String | Yes | The colleague’s company name. |
toBeInvitedById | String | Yes | The email address of the user who is creating this colleague entry (the inviter). |
jobTitle | String | No | The colleague’s job title. |
website | String | No | The colleague’s company website. |
team | Integer | No | Team identifier or number. |
inviteLink | String | No | A custom invitation link. If not provided, your organization’s default invite link will be used. |
redirectionLink | String | No | A custom redirection link for after an invite is accepted. If not provided, the default dashboard link will be used. |
Example Request (cURL)
Success Response (201 Created)
The response contains the newly created colleague entry with all generated fields.Error Responses
-
400 Bad Request - Missing Required Fields:
-
400 Bad Request - API Key Not Linked:
-
401 Unauthorized - API Key Required:
-
401 Unauthorized - Invalid API Key:
-
403 Forbidden - Waz Disabled:
-
409 Conflict - Duplicate Email:
-
500 Internal Server Error:
Notes
- This API does not consume credits from your account.
- This API creates a colleague entry that can later be invited using the Send Invitation API.
- The colleague’s initial status will be set to “pending”.
- If you don’t provide custom invite or redirection links, your organization’s default links will be used.
- Each request is logged for tracking and analytics purposes.
Authorizations
Body
application/json
Full name.
Email address.
Company name.
Email of the inviter.
Job title.
Website.
Team ID.
Custom invite link.
Custom redirection link.
Response
Colleague created successfully.
Unique ID of the colleague entry (ToBeInvited table).
Name of the colleague.
Email of the colleague.
Job title.
Current status (e.g., pending, invited, joined).
Creation timestamp.
Company name.
Website URL.
Invite link.
Redirection link.
Photo URL.
Team identifier.
Wazper Client ID.
Email of the user who created this entry.
Timestamp of the last action.
Timestamp of last update.