list_accountsList the social accounts the user has connected (platform, handle, display name). Call this first to see which platforms a post can target.
When to use: Call before create_post whenever you need to know which platforms are connected, or to confirm a handle before publishing.
PARAMETERS
No parameters. Send an empty object {}.
REQUEST EXAMPLE
{}RESPONSE EXAMPLE
[
{
"platform": "x",
"accountId": "1234567890",
"username": "writeonce",
"displayName": "WriteOnce",
"profilePictureUrl": "https://pbs.twimg.com/profile_images/example.jpg",
"isActive": true
},
{
"platform": "linkedin",
"accountId": "urn:li:person:abc123",
"username": "jane-doe",
"displayName": "Jane Doe",
"profilePictureUrl": null,
"isActive": true
}
]- Returns an empty array if no accounts are connected. Ask the user to connect platforms in WriteOnce Settings first.
- Use the platform field (not displayName) when passing platforms to create_post.