Skip to main content
POST
Create Colleague

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 is https://api.wazper.com/v1/colleagues-create

HTTP Method

POST

Headers

Request Body

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

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

X-API-Key
string
header
required

Body

application/json
name
string
required

Full name.

email
string<email>
required

Email address.

companyName
string
required

Company name.

toBeInvitedById
string<email>
required

Email of the inviter.

jobTitle
string | null

Job title.

website
string<url> | null

Website.

team
integer | null

Team ID.

Custom invite link.

Custom redirection link.

Response

Colleague created successfully.

id
string

Unique ID of the colleague entry (ToBeInvited table).

name
string

Name of the colleague.

email
string<email>

Email of the colleague.

jobTitle
string | null

Job title.

status
string

Current status (e.g., pending, invited, joined).

createdAt
string<date-time>

Creation timestamp.

companyName
string

Company name.

website
string<url> | null

Website URL.

Invite link.

Redirection link.

photo
string<url> | null

Photo URL.

team
integer | null

Team identifier.

wazClientId
string

Wazper Client ID.

toBeInvitedById
string<email>

Email of the user who created this entry.

latestAction
string<date-time>

Timestamp of the last action.

updatedAt
string<date-time>

Timestamp of last update.