Social Login
Updated
1. Get Social Login By User Email
Endpoint:
GET /paid/governance/get/socialProfiles/?userEmail=<email>
Description:
Fetches a list of social login accounts linked to a given user email.
Query Parameters:
Name | Type | Required | Description |
userEmail | String | Yes | Email ID of the user |
Response: List<Object>
[ { "id":"Unique Id" , "userEmail": "user@example.com", "teamId": "team-123", "socialProfileId": "profile-456", "socialProfileName": "John Doe Twitter", "channelType": "twitter" }, { "userEmail": "user@example.com", "teamId": "team-123", "socialProfileId": "profile-789", "socialProfileName": "John Doe Facebook", "channelType": "facebook" } ]
Response Fields:
Field | Type | Description |
id | String | Unique Id |
userEmail | String | The email address of the user associated with the social profile. |
teamId | String | Unique identifier for the team the user or profile belongs to. |
socialProfileId | String | Unique ID of the linked social profile. |
socialProfileName | String | Display name of the social profile. |
channelType | String | The platform or channel type (e.g., facebook, twitter, linkedin). |
curl --location 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/get/socialProfiles?userEmail=sample.user%40example.com' \--header 'Authorization: Bearer <your-access-token>' \--header 'Key: <your-api-key>' \--header 'accept: application/json' \--header 'Content-Type: application/json'
2. Get Ad Accounts Linked to a Social Profile
Endpoint:
GET /paid/governance/get/socialProfile/adAccounts?id=<socialProfileId>
Description:
Fetches a list of ad accounts accessible through the specified social profile.
Note : <socialProfileId> is id field in [Get Social Login By User Email]
Query Parameters:
Name | Type | Required | Description |
id | String | Yes | Unique ID of the social profile |
Response: List<Object>
[ { "accountId": 123456789, "accountUserId": "ad-user-01", "displayName": "My Ad Account", "currency": "USD", "accountType": "ad", "channelType": "facebook" } ]
Response Fields:
Field | Type | Description |
accountId | Long | Unique numeric ID of the ad account. |
accountUserId | String | Social Network Account Id ad account. |
displayName | String | Display name of the account. |
currency | String | Currency in which the ad account operates. |
accountType | String | Type of account (e.g., "ad"). |
channelType | String | Platform or network type (e.g., facebook, twitter, linkedin). |
curl --location 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/get/socialProfile/adAccounts?id=sample-social-profile-id' \--header 'Authorization: Bearer <your-access-token>' \--header 'Key: <your-api-key>' \--header 'accept: application/json' \--header 'Content-Type: application/json'
3. Get Page Accounts Linked to a Social Profile
Endpoint:
GET /paid/governance/get/socialProfile/pageAccounts?id=<socialProfileId>
Description:
Fetches a list of page accounts accessible through the specified social profile.
Note : <socialProfileId> is id field in [Get Social Login By User Email]
Query Parameters:
Name | Type | Required | Description |
id | String | Yes | Unique ID of the social profile |
Response: List<Object>
(Same schema as Ad Accounts response)
curl --location 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/get/socialProfile/pageAccounts?id=sample-social-profile-id' \--header 'Authorization: Bearer <your-access-token>' \--header 'Key: <your-api-key>' \--header 'accept: application/json' \--header 'Content-Type: application/json'
4. Delete Social Profile
POST /paid/governance/delete/socialProfile/
Query Parameters
Name | Type | Required | Description |
id | String | Yes | Unique ID of the social profile to delete |
Response
Value | Description |
true | Deletion was successful |
false | Deletion failed (e.g., not found) |