User
Updated
1. Creates a new User
Endpoint: POST /paid/governance/create/user
Request Body :
Field Descriptions
Field | Type | Required | Description |
String | Yes | Email address of the user | |
name | String | Yes | Full name of the user |
profilePicture | String | No | URL of the user's profile picture |
teams | List | No | List of team associations for the user |
teams[] Fields
Field | Type | Required | Description |
organizationId | String | Yes | Organization ID the team belongs to |
teamId | String | Yes | Team ID the user is part of |
role | String | Yes | Role of the user in the team (e.g., Admin, Editor) |
Sample cURL
curl --location 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/create/user'' \
--header 'Authorization: Bearer <your-access-token>' \
--header 'Key: <your-api-key>' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "sample.user@example.com",
"name": "Sample User"
}'
2. Delete a User
Endpoint: POST /paid/governance/delete/user?userMail=<email>
Query Param
Field | Type | Required | Description |
id | String | Yes | Unique Email to identify the user |
3. Get a User
Endpoint: GET /paid/governance/get/user?userMail=<email>
Response :
Field | Type | Description |
String | Email address of the user | |
name | String | Full name of the user |
teams | List | List of team associations for the user |
Sample cURL
curl --location 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/get/user?userMail=sample.user%40example.com' \
--header 'Authorization: Bearer <your-access-token>' \
--header 'Key: <your-api-key>' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'