Social Accounts
Add a social account
This API gives you access to adding a social account to your workspace.
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account connected successfully
Unauthorized access
Your plan does not have API access
Requested workspace does not belongs to you
Error in adding social account
POST /api/v1/public/social-accounts HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"name": "text",
"platform": {
"id": "text",
"userId": "text",
"picture": "text",
"location": "text",
"metadata": {}
},
"latitude": "text",
"longitude": "text",
"variables": {},
"credentials": {}
}
{
"success": true,
"message": "Account connected successfully",
"data": {
"id": "The social account ID",
"name": "The social account name",
"readyToUse": true
}
}
Get All social accounts
This API will return all social accounts of a workspace
The platform ID, must be a valid MongoDB ID
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account listed successfully
Unauthorized access
Your plan does not have API access
Requested workspace does not belongs to you
Error in listing social accounts
GET /api/v1/public/social-accounts HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Accept: */*
{
"success": true,
"message": "All social accounts fetched successfully",
"data": [
{
"id": "Social Account ID",
"socialAccountName": "Alex Jordan",
"platformName": "Linkedin",
"proxyId": "6745retfderty6",
"credentialsIsExpired": false,
"proxyIsExpired": false,
"readyToUse": true
}
]
}
Get social account by ID
This API will give you social account details by its ID
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account fetched successfully
Unauthorized access
Your plan does not have API access
Account not found
Requested workspace does not belongs to you
Error in fetching social account
GET /api/v1/public/social-accounts/{accountId} HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Accept: */*
{
"success": true,
"message": "Account fetched successfully",
"data": {
"id": "Social Account ID",
"socialAccountName": "Alex Jordan",
"platformName": "Linkedin",
"platformId": "6745retfderty6",
"credentials": {},
"proxyId": "6745retfderty6",
"variables": {
"key": "value"
},
"limits": {
"platformOperationsId": [
{
"limit": "100",
"interval": "daily | hourly"
}
]
},
"credentialsIsExpired": false,
"proxyIsExpired": false,
"platformUserId": "https://www.linkedin.com/in/prathmesh-kumar-saini/",
"readyToUse": false
}
}
Update a social account
This API will be used for updating the credential
or proxy
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account updated successfully
Unauthorized access
Your plan does not have API access
Account does not exist
Requested workspace does not belongs to you
Error in updating social account
PUT /api/v1/public/social-accounts/{accountId} HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Content-Type: application/json
Accept: */*
Content-Length: 101
{
"credentials": {},
"variables": {},
"name": "text",
"proxyId": "text",
"latitude": "text",
"longitude": "text"
}
{
"success": true,
"message": "Account updated successfully",
"data": {
"id": "The social account ID",
"name": "The social account name",
"readyToUse": true
}
}
Assign proxy to a social account
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Proxy assigned successfully
Unauthorized access
Your plan does not have API access
Connected account not found.
Requested workspace does not belongs to you
Error occurred in assigning proxy to connected account.
PUT /api/v1/public/social-accounts/{accountId}/proxy HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"proxyId": "text"
}
{
"success": true,
"message": "Proxy assigned successfully",
"data": {
"socialAccountId": "The social account ID",
"proxyId": "The proxy ID"
}
}
Remove proxy from a social account
Use this API to remove the proxy from the social account.
Not using a proxy may lead to suspending your social account.
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Proxy removed successfully from this account
Unauthorized access
Your plan does not have API access
Requested workspace does not belongs to you
Error in removing proxy from this account
DELETE /api/v1/public/social-accounts/{accountId}/proxy HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Accept: */*
{
"success": true,
"message": "Proxy removed successfully from this account"
}
Reset proxy of a social account.
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Proxy Location Reset Successfully
Unauthorized access
Your plan does not have API access
Account not found
Proxy you are trying to reset is not factory proxy
GET /api/v1/public/social-accounts/{accountId}/reset-proxy HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Accept: */*
No content
Set limit
Use this API to set automation limits for the specific social account
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account limit updated successfully
Unauthorized access
Your plan does not have API access
Account does not exist
Requested workspace does not belongs to you
Error in updating social account limit
PUT /api/v1/public/social-accounts/{accountId}/limit HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"operationId": "text",
"executionLimit": [
{
"limit": "1000",
"interval": "hourly"
}
]
}
{
"success": true,
"message": "message",
"data": {
"socialAccountId": "The social account ID"
}
}
Reset Limit to default (Delete limit)
Use this API to reset the limit of automation to default one (delete the limit at the account level)
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account limit deleted successfully
Unauthorized access
Your plan does not have API access
Account does not exist
Requested workspace does not belongs to you
Error in deleting social account limit
DELETE /api/v1/public/social-accounts/{accountId}/limit HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"operationId": "text"
}
{
"success": true,
"message": "message",
"data": {
"socialAccountId": "The social account ID"
}
}
Delete a social account
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account deleted successfully
Unauthorized access
Your plan does not have API access
Account not found
Account cannot be deleted as it is running in an automation. Please stop and delete automation and retry
Requested workspace does not belongs to you
Error in deleting social account
DELETE /api/v1/public/social-accounts/{accountId} HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Accept: */*
{
"success": true,
"message": "Account deleted successfully",
"data": {
"id": "The social account ID",
"name": "The social account name",
"readyToUse": true
}
}
Force Delete a social account
This endpoint is being used when a social account is used in running workflow, and user wish to force delete it.
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
Account deleted successfully
Unauthorized access
Your plan does not have API access
Account not found
Requested workspace does not belongs to you
Error in deleting social account
DELETE /api/v1/public/social-accounts/{accountId}/force HTTP/1.1
Host:
Authorization: Bearer JWT
X-TexAu-Context: text
Accept: */*
{
"success": true,
"message": "Account deleted successfully",
"data": {
"id": "The social account ID",
"name": "The social account name",
"readyToUse": true
}
}
Last updated