Content
Queue async post generation
Changed onQueues a generation job for one content type and returns 202 with the job. Select sources with integrations.github, integrations.linear, or github.repositories; when no selector is given at all, every connected GitHub integration is used. Poll GET /v1/posts/generate/{jobId} until job.status is completed, failed, or skipped. Subscribe to post.generation.completed, post.generation.failed, or post.generation.skipped using /v1/webhooks for completion notifications.
post/v1/posts/generate
Request
- Base URL: https://api.usenotra.com
- URL: https://api.usenotra.com/v1/posts/generate
- Auth: HTTP bearer
Request body
Example request
{
"contentType": "blog_post",
"lookbackWindow": "last_7_days",
"brandVoiceId": "51c2f3aa-efdd-4e28-8e69-23fa2dfd3561",
"brandIdentityId": "51c2f3aa-efdd-4e28-8e69-23fa2dfd3561",
"repositoryIds": [
"repo_1",
"repo_2"
],
"linearIntegrationIds": [
"linear_integration_1"
],
"integrations": {
"github": [
"integration_1",
"integration_2"
],
"linear": [
"linear_integration_1"
]
},
"github": {
"repositories": [
{
"owner": "usenotra",
"repo": "notra"
}
]
},
"timezone": "America/New_York"
}Response
Post generation queued successfully
Changes
- info
added the new optional request property
- info