Account Management
Updated
1. Add Account
FB_AD_ACCOUNT, FBPAGE,
LINKEDIN_AD_ACCOUNT,
LINKEDIN_COMPANY,
TWITTER_AD_ACCOUNT,
TWITTER,
TIKTOK_AD_ACCOUNT
GET /paid/governance/get/authorizedUrl
Returns an authorized URL for account addition, based on provided organization, team, and user context. This endpoint is part of the Paid Governance API.
Query Parameters
Name | Type | Required | Description |
organizationId | String | Yes | Unique ID of the organization |
teamId | String | Yes | Unique ID of the team |
accountType | String | Yes | |
userEmail | String | Yes | Email of the requesting user |
GET /get/authorizedUrl?organizationId=123&teamId=456&userEmail=user@example.com
Open Returned Url In Browser and Do Native Authenctication
curl --location 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/get/authorizedUrl?organizationId=sample-org-id&teamId=sample-team-id&userEmail=sample.user%40example.com&accountType=TWITTER_AD_ACCOUNT' \
--header 'Authorization: Bearer <your-access-token>' \
--header 'Key: <your-api-key>' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'
2. Attach an Ad Account to a team.
POST /paid/governance/attach/adAccount
Query Parameters
Name | Type | Required | Description |
teamId | String | Yes | Team to which account is attached |
accountId | Long | Yes | Ad account to be attached |
Response
true or false (plain text)
curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/attach/adAccount?teamId=sample-team-id&accountId=sample-ad-account-id' \
--header 'Authorization: Bearer <your-access-token>' \
--header 'Key: <your-api-key>' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'
3. Remove an Ad Account from a team.
POST /paid/governance/remove/adAccount
Query Parameters
Name | Type | Required | Description |
teamId | String | Yes | Team from which account is removed |
accountId | Long | Yes | Ad account to be removed |
Response
true or false (plain text)
4. Attach an Page Account to a team.
POST /paid/governance/attach/pageAccount
Query Parameters
Name | Type | Required | Description |
teamId | String | Yes | Team to which account is attached |
accountId | Long | Yes | Page account to be attached |
Response
true or false (plain text)
curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v2/paid/governance/attach/pageAccount?teamId=sample-team-id&accountId=sample-page-account-id' \
--header 'Authorization: Bearer <your-access-token>' \
--header 'Key: <your-api-key>' \
--header 'accept: application/json' \
--header 'Content-Type: application/json'
4. Remove Page Account from a team.
🔗 POST /paid/governance/remove/pageAccount
Query Parameters
Name | Type | Required | Description |
teamId | String | Yes | Team from which account is removed |
accountId | Long | Yes | Page account to be removed |
Response
true or false (plain text)