List per-account delivery targets for a post.
List per-account delivery targets for a post.
GET
https://app.softsolz.uk/api/v1/services/social/posts/{id}/targetsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Response
Response Body · array of objects
idstringTarget id (numeric string).post_idstringId of the parent post.account_idstringId of the destination account.override_bodystring | nullPer-account text override; null to use the post body.statusstringDelivery status for this account.attemptintegerDelivery attempt count.next_attempt_atstring | nullWhen the next retry is scheduled, if any.external_post_idstring | nullId of the published post on the platform, once delivered.errorstring | nullLast delivery error, if any.published_atstring | nullWhen this target was successfully published.created_atstringCreation timestamp.updated_atstringLast update timestamp.platformstringDestination platform.display_namestring | nullDestination account display name.avatar_urlstring | nullDestination account avatar URL.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.social.listPostTargets('<id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": [ { "id": "string", "post_id": "string", "account_id": "string", "override_body": "string", "status": "string", "attempt": 0, "next_attempt_at": "string", "external_post_id": "string", "error": "string", "published_at": "string", "created_at": "string", "updated_at": "string", "platform": "string", "display_name": "string", "avatar_url": "string" } ]}