Skip to main content

RepurposeInput

source_typestringrequired

Possible values: [url, youtube, pdf, text]

urlstring<uri>

Article URL (url) or YouTube video URL (youtube). For text, an optional link to mention.

Possible values: <= 2000 characters

pdf_urlstring<uri>

Public URL of a PDF (pdf), at most 20 MB.

Possible values: <= 2000 characters

titlestring

Required for text. For youtube, overrides the video title.

Possible values: <= 500 characters

textstring

Required for text. Long sources are cut to about 12,000 characters.

Possible values: >= 100 characters and <= 100000 characters

transcriptstring

Video transcript for youtube.

Possible values: <= 100000 characters

platformsstring[]

Limit to connected accounts of these networks. Ignored when account_ids is set.

account_idsinteger[]

Target accounts. Default is every connected account.

tonestring

Possible values: [neutral, friendly, formal, edgy, engaging, casual, professional, humorous, inspirational, conversational]

Default value: engaging
content_lengthstring

Possible values: [short, medium, long]

Default value: medium
hashtagsstring

Possible values: [none, few, some, many]

Default value: few
ctastring

Possible values: [none, question, link, subscribe, follow, share, learn_more, signup, buy, download]

Default value: none
languagestring

Possible values: <= 10 characters

Default value: auto
custom_instructionsstring

Possible values: <= 500 characters

carouselboolean

Render carousel slides (one extra AI credit for the outline).

Default value: true
slide_countinteger

Total slides including the hook and call-to-action slides.

Possible values: >= 3 and <= 8

Default value: 7
theme object

Slide colours as #RRGGBB.

backgroundstring

Possible values: Value must match regular expression ^#?[0-9a-fA-F]{6}$

foregroundstring

Possible values: Value must match regular expression ^#?[0-9a-fA-F]{6}$

accentstring

Possible values: Value must match regular expression ^#?[0-9a-fA-F]{6}$

create_postboolean

Create the draft post. false returns captions and slides only.

Default value: true
use_brand_voiceboolean
Default value: true
asyncboolean

Answer 202 with a run id right away instead of waiting up to 20 seconds for the result.

Default value: false
RepurposeInput
{
"source_type": "url",
"url": "string",
"pdf_url": "string",
"title": "string",
"text": "string",
"transcript": "string",
"platforms": [
"string"
],
"account_ids": [
0
],
"tone": "engaging",
"content_length": "medium",
"hashtags": "few",
"cta": "none",
"language": "auto",
"custom_instructions": "string",
"carousel": true,
"slide_count": 7,
"theme": {
"background": "string",
"foreground": "string",
"accent": "string"
},
"create_post": true,
"use_brand_voice": true,
"async": false
}