Getting an account
One connected account, the settings a post to it takes, its daily cap, and on Pinterest its boards.
https://antwork.io/api/v1/accounts/{id}ScopereadRequest
curl https://antwork.io/api/v1/accounts/acc_pinterest \
-H "Authorization: Bearer $ANTWORK_API_KEY"The account as GET /api/v1/accounts lists it, plus settings, the per-post fields its platform takes. Needs the read scope.
Response
{
"object": "account",
"id": "acc_pinterest",
"workspaceId": "ws_...",
"platform": "pinterest",
"name": "Antwork",
"handle": "antwork",
"accountType": "business",
"active": true,
"tokenHealth": "healthy",
"connectedAt": "2026-01-05T09:00:00.000Z",
"settings": [
{
"key": "pinTitle",
"label": "Pin title",
"type": "text",
"maxLength": 100,
"placeholder": "Optional"
},
{
"key": "link",
"label": "Destination link",
"type": "url",
"maxLength": 2048,
"placeholder": "https://…"
}
],
"boards": [
{ "id": "1234567890", "name": "Product updates" }
],
"dailyPostCap": { "limit": 15, "windowHours": 24, "tier": "free", "publishedLast24h": 1, "scheduledNext24h": 1, "remaining": 13 }
}On Pinterest, boards is the account's live board list. A pin goes to a board, and this is where its id comes from. If Pinterest refuses the lookup, boards is null and boardsError says why; reconnect: true means the account needs reconnecting in Antwork.
dailyPostCap is how many posts this account may publish in any 24 hours on your plan, what it has published in the last 24 and has scheduled in the next 24, and what is left after both: limit, publishedLast24h, scheduledNext24h and remaining. It is the cap publish and schedule enforce (daily_cap_reached). The figures per platform are on GET /api/v1/platforms.
nextFreeAt beside remaining is the earliest time a new post fits both the cap and the minimum gap between posts: now when there is room, or null when nothing fits in the next two days. Schedule there instead of counting the account's recent posts yourself.
include=recentPosts adds up to 15 of the account's posts with their metrics, the same list the MCP get_post_context tool hands an AI as the account's voice. They are read from the platform (X reads are kept a week), so this counts toward the platform-read limit, 10 per key per 10 minutes. A LinkedIn personal profile cannot be read back, so its posts are the ones published through Antwork. include=bestTimes adds the suggested posting times the composer shows. Combine them with a comma.
404 with account_not_found.Something look wrong? Tell us which.