Account lookup
Resolve REST account, Page, board, and playlist IDs without guessing a publishing destination.
Compact reference for agents making REST requests. All endpoint paths below are relative to https://backend.blotato.com/v2. For task instructions, read the workflow guide. For tool calls, use the MCP reference.
Step 0: get accounts (always do this first)
Before publishing, match the returned platform and account name to the user's requested destination. Use the account's id as post.accountId. If several accounts match, ask which to use. If none match, check Accounts. An empty list is not publishing readiness.
GET /users/me/accounts
GET /users/me/accounts?platform=twitter (filter by platform)
Response:
{
"items": [
{ "id": "98432", "platform": "twitter", "fullname": "Jane", "username": "jane" }
]
}
For a Facebook Page or LinkedIn company Page, fetch the selected account's subaccounts.
GET /users/me/accounts/{accountId}/subaccounts
Response:
{
"items": [
{ "id": "123456789", "accountId": "selected_account_id", "name": "My Business Page" }
]
}
Facebook Page: select the requested Page and use its id as target.pageId (required).
LinkedIn company Page: select the requested Page and use its id as target.pageId.
LinkedIn personal profile: omit target.pageId.
Do not replace post.accountId with a Page ID or select the first Page by default.
For YouTube, fetch subaccounts only when playlist placement is requested.
GET /users/me/accounts/{accountId}/subaccounts
Use the selected playlist items[].id values as target.playlistIds (optional array).
Omit playlistIds when no playlist placement is requested.
For Pinterest, fetch boards to get boardId:
GET /social/pinterest/boards?accountId={accountId}
Response: { "items": [{ "id": "1234567890123456789", "name": "Summer Outfits" }] }
Use items[].id as target.boardId when publishing a pin.Keep the credential, platform, account, and destination together. Stop if a required Page or board ID is unavailable. After reconnection, fetch the current account ID again. For lookup errors, follow Account not found.
Return to the agent reference index.
Last updated