cURL
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": "[email protected]", "apiKey": "7f488a50-8a5a-9e34-9a04-1dad5bd548c3" } }
Generate API key for a user of your whitelabel brand.
Pre-requisities:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Id of the whitelabel brand
Id of the whitelabel user
OK
Indicates whether this is success response or error response
Overall message regarding the operation performed
Data returned from the server
Show child attributes
Was this page helpful?