PATCH
/
v0
/
w
/
brands
/
{brandId}
/
users
/
{userId}
/
api-key
curl --request PATCH \
  --url https://sitegpt.ai/api/v0/w/brands/{brandId}/users/{userId}/api-key \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Generated API key of the whitelabel user successfully",
  "data": {
    "userId": "401577831134278614",
    "userEmail": "test@gmail.com",
    "apiKey": "7f488a50-8a5a-9e34-9a04-1dad5bd548c3"
  }
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

brandId
string
required

Id of the whitelabel brand

userId
string
required

Id of the whitelabel user

Response

200 - application/json
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