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"}’
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
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"}’
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"}’
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"}’
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"}’
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.
Set limit
Use this API to set automation limits for the specific social account
Pass orgUserId and workspaceId as ‘{"orgUserId":"123","workspaceId":"123"}’
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"}’
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"}’
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"}’
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