Analyze posts into a persona
Make a persona from an account's posts, the same as analyzing an account in Posteady. The analysis runs in the background.
curl -X POST "https://example.com/api/v1/personas/analyses" \ -H "Content-Type: application/json" \ -d '{ "requestId": "77777777-7777-4777-8777-777777777777", "method": "account_analysis", "accountId": "11111111-1111-4111-8111-111111111111" }'{ "job": { "jobId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa", "status": "failed", "method": "account_analysis", "accountId": "11111111-1111-4111-8111-111111111111", "createdAt": "2026-11-26T09:00:00Z", "finishedAt": "2026-11-26T09:00:40Z", "error": { "code": "NOT_ENOUGH_POSTS", "message": "Posteady couldn't find enough posts with text to analyze. You aren't charged for this analysis." } }}Make a persona from the posts of a social account, the same way as the Posteady app. account_analysis studies the recent posts of a connected account, the same as 'Analyze my profile and posts'. reference_account studies the public posts of another account on Threads, Instagram, X, LinkedIn, or TikTok, the same as an account in 'Reference accounts or posts'. With topPosts, only the best-performing posts are studied.
Collecting and analyzing the posts takes longer than a request can wait. The request checks the input, the plan, and the credit balance, then returns 202 with a jobId. The analysis usually takes 30 seconds to 2 minutes. Poll GET /api/v1/personas/analyses/{jobId} until status is completed or failed. Each analysis costs 5 credits, charged when the analysis starts, and a failed analysis is refunded. Repeating the request with the same requestId and the same body returns the same job instead of starting and charging for another one.
Each account, and No account, has two persona slots, A and B. Without replacePersonaId, the persona goes into a free slot, and the request fails with REQUEST_CONFLICT when both slots are taken, counting the slots that analyses in progress will fill. With replacePersonaId, the new persona overwrites that persona and keeps its ID.
Authorization
apiKey In: header
Request body
application/json
TypeScript definitions
Use the request body type in TypeScript.
account_analysis studies the posts of accountId. reference_account studies the public account in referenceAccount and saves the persona to the slots of accountId, or of No account when accountId is null.
Response body
application/json
application/json
application/json
application/json
application/json
application/json
application/json