Output templates
Manage the templates that say how each kind of output is written: its tone, house style and length.
x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
type?stringNarrow the list to one template type
"web_article""x_post""instagram_post""tiktok_post""facebook_post""linkedin_post""short_form_video"isActive?stringNarrow the list to active (true) or retired (false) templates
"true""false"newsdeskId?stringNarrow the list to templates scoped to this desk, plus every template scoped to no desk
^[0-7][0-9A-HJKMNP-TV-Z]{25}$The org's output templates, narrowed by any filters supplied
application/json- response
items*array<||||||>curl -X GET 'https://api.nuvelics.com/api/tenant/v1/output-templates'{ "items": [ { "id": "string", "orgId": "string", "name": "string", "newsdeskId": "string", "isActive": true, "tone": "string", "styleNotes": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "version": 0, "type": "web_article", "minWords": 1, "maxWords": 1, "includeByline": true, "bylineDefault": "string", "featuredImage": true, "inlineImages": true } ]}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
application/json- body
Web article template
name*stringTemplate display name
1 <= lengthnewsdeskId*stringDesk this template is scoped to; null means it is offered on every desk
^[0-7][0-9A-HJKMNP-TV-Z]{25}$tone*stringFree-text description of the intended voice, e.g. 'measured, wire-service neutral'
1 <= length <= 2000styleNotes?stringFree-text house style notes, e.g. 'AP style, metric units'
length <= 2000type*"web_article""web_article"minWords*integerMinimum article length in words
1 <= valuemaxWords*integerMaximum article length in words; must be >= minWords
1 <= valueincludeByline*booleanWhether generated articles carry a byline
bylineDefault?stringDefault byline text; required when includeByline is true
featuredImage?booleanWhether generation picks a featured image for the article
trueinlineImages?booleanWhether generation may place images in the article body
trueOutput template created
application/json- response
id*stringOutput template identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgId*stringOwning organization identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$name*stringTemplate display name
1 <= lengthnewsdeskId*stringDesk this template is scoped to; null means it is offered on every desk
^[0-7][0-9A-HJKMNP-TV-Z]{25}$isActive*booleanWhether the template is offered on the add-an-output picker
tone*stringFree-text description of the intended voice, e.g. 'measured, wire-service neutral'
1 <= length <= 2000styleNotes?stringFree-text house style notes, e.g. 'AP style, metric units'
length <= 2000createdAt*stringISO 8601 creation timestamp
date-timeupdatedAt*stringISO 8601 last-modified timestamp
date-timeversion*integerMonotonic row version; used as concurrency token
type*"web_article""web_article"minWords*integerMinimum article length in words
1 <= valuemaxWords*integerMaximum article length in words; must be >= minWords
1 <= valueincludeByline*booleanWhether generated articles carry a byline
bylineDefault?stringDefault byline text; required when includeByline is true
featuredImage?booleanWhether generation picks a featured image for the article
trueinlineImages?booleanWhether generation may place images in the article body
truecurl -X POST 'https://api.nuvelics.com/api/tenant/v1/output-templates' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "newsdeskId": "string", "tone": "string", "type": "web_article", "minWords": 1, "maxWords": 1, "includeByline": true}'{ "id": "string", "orgId": "string", "name": "string", "newsdeskId": "string", "isActive": true, "tone": "string", "styleNotes": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "version": 0, "type": "web_article", "minWords": 1, "maxWords": 1, "includeByline": true, "bylineDefault": "string", "featuredImage": true, "inlineImages": true}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringOutput template identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$The output template.
application/json- response
id*stringOutput template identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgId*stringOwning organization identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$name*stringTemplate display name
1 <= lengthnewsdeskId*stringDesk this template is scoped to; null means it is offered on every desk
^[0-7][0-9A-HJKMNP-TV-Z]{25}$isActive*booleanWhether the template is offered on the add-an-output picker
tone*stringFree-text description of the intended voice, e.g. 'measured, wire-service neutral'
1 <= length <= 2000styleNotes?stringFree-text house style notes, e.g. 'AP style, metric units'
length <= 2000createdAt*stringISO 8601 creation timestamp
date-timeupdatedAt*stringISO 8601 last-modified timestamp
date-timeversion*integerMonotonic row version; used as concurrency token
type*"web_article""web_article"minWords*integerMinimum article length in words
1 <= valuemaxWords*integerMaximum article length in words; must be >= minWords
1 <= valueincludeByline*booleanWhether generated articles carry a byline
bylineDefault?stringDefault byline text; required when includeByline is true
featuredImage?booleanWhether generation picks a featured image for the article
trueinlineImages?booleanWhether generation may place images in the article body
truecurl -X GET 'https://api.nuvelics.com/api/tenant/v1/output-templates/string'{ "id": "string", "orgId": "string", "name": "string", "newsdeskId": "string", "isActive": true, "tone": "string", "styleNotes": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "version": 0, "type": "web_article", "minWords": 1, "maxWords": 1, "includeByline": true, "bylineDefault": "string", "featuredImage": true, "inlineImages": true}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringOutput template identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$application/json- body
name?string1 <= lengthnewsdeskId?stringNewsdesk identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$isActive?booleantone?string1 <= length <= 2000styleNotes?stringlength <= 2000minWords?integer1 <= valuemaxWords?integer1 <= valueincludeByline?booleanbylineDefault?stringfeaturedImage?booleaninlineImages?booleanmaxCharacters?integer1 <= valuemaxHashtags?integer0 <= valueformats?array<>1 <= itemsminSeconds?integer5 <= valuemaxSeconds?integervalue <= 20captionStyle?"cards""cards"brandKitId?stringBrand kit identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$media?The cards and videos a post carries; null means a text-only post
Output template updated
application/json- response
id*stringOutput template identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgId*stringOwning organization identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$name*stringTemplate display name
1 <= lengthnewsdeskId*stringDesk this template is scoped to; null means it is offered on every desk
^[0-7][0-9A-HJKMNP-TV-Z]{25}$isActive*booleanWhether the template is offered on the add-an-output picker
tone*stringFree-text description of the intended voice, e.g. 'measured, wire-service neutral'
1 <= length <= 2000styleNotes?stringFree-text house style notes, e.g. 'AP style, metric units'
length <= 2000createdAt*stringISO 8601 creation timestamp
date-timeupdatedAt*stringISO 8601 last-modified timestamp
date-timeversion*integerMonotonic row version; used as concurrency token
type*"web_article""web_article"minWords*integerMinimum article length in words
1 <= valuemaxWords*integerMaximum article length in words; must be >= minWords
1 <= valueincludeByline*booleanWhether generated articles carry a byline
bylineDefault?stringDefault byline text; required when includeByline is true
featuredImage?booleanWhether generation picks a featured image for the article
trueinlineImages?booleanWhether generation may place images in the article body
truecurl -X PATCH 'https://api.nuvelics.com/api/tenant/v1/output-templates/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "orgId": "string", "name": "string", "newsdeskId": "string", "isActive": true, "tone": "string", "styleNotes": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "version": 0, "type": "web_article", "minWords": 1, "maxWords": 1, "includeByline": true, "bylineDefault": "string", "featuredImage": true, "inlineImages": true}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringOutput template identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$Output template deleted
curl -X DELETE 'https://api.nuvelics.com/api/tenant/v1/output-templates/string'