여러 채널 글 쓰기
원문 하나로 계정마다 그 계정 페르소나 말투의 글을 씁니다.
curl -X POST "https://example.com/api/v1/channel-texts" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/blog/spring-menu", "targets": [ { "accountId": "11111111-1111-4111-8111-111111111111" }, { "accountId": "22222222-2222-4222-8222-222222222222" }, { "accountId": "33333333-3333-4333-8333-333333333333" } ] }'{ "channels": [ { "accountId": "11111111-1111-4111-8111-111111111111", "platform": "threads", "personaId": "44444444-4444-4444-8444-444444444444", "posts": [ "Spring is on the menu from March 3.", "Three seasonal drinks and a new weekend brunch set. Which one are you trying first?" ] }, { "accountId": "22222222-2222-4222-8222-222222222222", "platform": "linkedin", "personaId": "55555555-5555-4555-8555-555555555555", "posts": [ "We are launching our spring menu on March 3, with three seasonal drinks and a new brunch set." ] }, { "accountId": "33333333-3333-4333-8333-333333333333", "platform": "instagram", "personaId": "66666666-6666-4666-8666-666666666666", "posts": [ "Spring menu drops March 3. Three new drinks and a weekend brunch set." ] } ], "failed": [], "sourceMedia": [ { "type": "IMAGE", "url": "https://example.com/images/spring-menu.jpg" } ], "partialSource": false}원문 하나(텍스트, 공개 링크, 발행된 내 게시물)로 고른 계정마다 글을 씁니다. 계정마다 그 계정 페르소나의 말투와 플랫폼 형식으로 쓰며, Posteady 앱의 '여러 채널 한 번에'와 같습니다. 플랫폼마다 계정 하나를 고르고, 각 계정에는 활성 페르소나가 있어야 합니다. 글을 다 쓸 때까지 기다렸다가 응답하며 보통 10~30초 걸립니다. Posteady는 결과를 저장하거나 발행하지 않습니다. 채널마다 받은 글을 POST /api/v1/posts로 발행하거나 POST /api/v1/scheduled-posts로 예약하세요. 글을 쓴 채널마다 5크레딧이 차감되고, 링크 원문은 요청당 한 번 5크레딧이 더 차감됩니다. 일부 채널이 실패하면 응답의 failed에 나오며 그 채널은 차감되지 않습니다. 모든 채널이 실패하면 오류를 반환하고 차감하지 않습니다.
인증
apiKey 위치: header
요청 본문
application/json
TypeScript 타입
TypeScript에서 request body 타입을 사용하세요.
원문으로 text, url, post 중 정확히 하나와 글을 쓸 계정을 넣으세요.
응답 본문
application/json
application/json
application/json
application/json
application/json