POST
/
v0
/
w
/
brands
/
{brandId}
/
users
curl --request POST \
  --url https://sitegpt.ai/api/v0/w/brands/{brandId}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "user@example.com",
  "chatbotsQuota": 1,
  "linksQuota": 100,
  "filesQuota": 25,
  "combinedMessagesQuota": 250,
  "membersQuota": 2
}'
{
  "success": true,
  "message": "Added new whitelabel user of your brand successfully",
  "data": {
    "whitelabelUser": {
      "id": "332153612345906321",
      "brandId": "332110515123458123",
      "email": "user@example.com",
      "name": "",
      "profilePic": "",
      "chatbotsQuota": 1,
      "linksQuota": 10,
      "filesQuota": 5,
      "combinedMessagesQuota": 10,
      "membersQuota": 1,
      "createdAt": "2024-02-10T14:30:21.828601Z",
      "updatedAt": "2024-02-10T14:30:21.828601Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

brandId
string
required

Id of the whitelabel brand to which user belongs to

Body

application/json
Request body to add a new whitelabel user to your brand.
email
string
required

Email of the user you want to add to your whitelabel brand

chatbotsQuota
integer
required

Chatbots quota to be assigned to the user

Required range: x > 0

Links quota to be assigned to the user

Required range: x > 0
filesQuota
integer
required

Files quota to be assigned to the user

Required range: x > 0
combinedMessagesQuota
integer
required

Combined messages quota to be assigned to the user

Required range: x > 0
membersQuota
integer
required

Members quota to be assigned to the user

Required range: x > 0

Response

200
application/json
OK
success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object

Data returned from the server