antworkDOCS

Three ways in, one server

Connect the assistant you already use, run the CLI, or call the REST API from your own server. All three reach the same accounts, see the same data and hit the same platform limits.

Building on the API? What Antwork handles per platform →

Get started

Connect an AI

REST API

IntroductionThe base URL, how requests are authenticated, every endpoint and the rate limits.v1 · API keyAPI keys & scopesCreate a key, send it as a bearer token, and grant it only the scopes it needs.Bearer tokenCreating postsPOSTOne request creates one post per target account, now or scheduled.POST /v1/postsChecking a postGETLook a post up by id to learn whether it went out, and where it landed.GET /v1/posts/{id}Listing postsGETEvery post you own, newest first, filtered by status and paged with a cursor.GET /v1/postsEditing a postPATChange a draft, scheduled or failed post: text, hashtags, account, settings, time and media.PATCH /v1/posts/{id}Sending a postPOSTPublish or schedule a stored post or a whole campaign, retry a failed one, or move it back to draft.POST /v1/posts/{id}/publishBatch operationsPOSTSchedule, publish, change, read, unschedule or delete many posts in one request instead of looping.POST /v1/posts/scheduleDeleting a postDELCancel a scheduled post or remove a draft, and delete the live post only if you ask.DELETE /v1/posts/{id}Listing accountsGETYour connected accounts and their ids, which creating a post needs.GET /v1/accountsGetting an accountGETOne account, the settings a post to it takes, its daily cap and its Pinterest boards.GET /v1/accounts/{id}Reading platform postsPOSTAn account's recent posts read back from the platform, with metrics and links.POST /v1/accounts/{id}/platform-posts:fetchListing workspacesGETYour workspaces and their ids, for the `workspaceId` other calls take.GET /v1/workspacesCreating a workspacePOSTA new workspace for another brand, with its own accounts, posts and media.POST /v1/workspacesUpdating a workspacePATChange a workspace's name, website or logo.PATCH /v1/workspaces/{id}Connect linksGETA link per platform that connects or reconnects an account.GET /v1/workspaces/{id}/connect-urlsPlatform rulesGETCharacter limits, media rules, daily caps and post settings for every platform.GET /v1/platformsPerformanceGETLifetime metrics per published post and totals per platform, over a window.GET /v1/analytics/performanceEngagement per dayGETWhat each platform earned per day, and followers per account, as a table to chart.GET /v1/analytics/dailyUsageGETYour plan, posts this cycle against its limit, and workspaces.GET /v1/usageListing mediaGETYour media library, newest first, with the ids and URLs a post's `media` takes.GET /v1/mediaUploading mediaPOSTAdd a file to the media library from a public link or a one-time upload, and attach it to posts in the same call.POST /v1/mediaDeleting mediaDELRemove a file from the library, unless a post still uses it.DELETE /v1/media/{id}WebhooksSigned events pushed to your server when posts and accounts change.POST /v1/webhooksIdempotencySend an Idempotency-Key so a retried request never creates a second post.Idempotency-KeyErrorsOne error shape across every endpoint, the codes it carries, and why an account was rejected.type · code · param

Tools

Reference

Troubleshooting