Nuvelics documentation
APIAPI reference

Newsdesks

Set up the newsdesks Nuvelics writes pitches for, and choose the data sources each one subscribes to.

GET
/api/tenant/v1/newsdesks

Authorization

headerx-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.

Query Parameters

limit?integer

Maximum items per page (1–100, default 25)

Range1 <= value <= 100
Default25
cursor?string

Opaque cursor from a prior nextCursor

sort?string

Sort order: "-field" descending, "field" ascending. Accepted: name, -name, createdAt, -createdAt, updatedAt, -updatedAt (default -updatedAt)

Response Body

A page of newsdesks, most-recently-updated first

application/json
  1. response
items*array<>
pagination*
sort*
filters*
facets?

Value/count breakdown for each field requested via ?facets=. Present only when facets were requested.

included?
Example Request
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/newsdesks'
Example Response
{  "items": [    {      "id": "string",      "orgId": "string",      "name": "string",      "description": "string",      "audience": "string",      "customInstructions": "string",      "contentLanguage": "aa",      "topics": [],      "locations": [],      "datasourceIds": [],      "enabled": true,      "version": 0,      "lastRunAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "nextCursor": "string"  },  "sort": {    "applied": "string",    "default": "string",    "available": [      "string"    ]  },  "filters": {    "applied": {      "property1": null,      "property2": null    },    "available": [      {        "field": "string",        "kind": "string",        "facetable": true      }    ]  },  "facets": {    "property1": {      "values": [        {          "value": "string",          "count": 0        }      ],      "capped": true    },    "property2": {      "values": [        {          "value": "string",          "count": 0        }      ],      "capped": true    }  },  "included": {    "datasources": {      "property1": {        "id": "string",        "name": "string",        "type": "string",        "vendor": "datafactory",        "iconId": "string"      },      "property2": {        "id": "string",        "name": "string",        "type": "string",        "vendor": "datafactory",        "iconId": "string"      }    },    "credentials": {      "property1": {        "id": "string",        "name": "string",        "schemeType": "string"      },      "property2": {        "id": "string",        "name": "string",        "schemeType": "string"      }    },    "users": {      "property1": {        "id": "string",        "name": "string",        "email": "string"      },      "property2": {        "id": "string",        "name": "string",        "email": "string"      }    },    "articlePitches": {      "property1": [        {          "id": "string",          "title": "string",          "status": "string",          "newsdeskId": "string"        }      ],      "property2": [        {          "id": "string",          "title": "string",          "status": "string",          "newsdeskId": "string"        }      ]    }  }}

Create a newsdesk

POST
/api/tenant/v1/newsdesks

Authorization

headerx-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.

Request Body

application/json
  1. body
name*string

Newsdesk display name

Length1 <= length
description?string

Free-text description of the newsdesk's purpose

audience?string

Free-text description of the intended readership

customInstructions?string

Free-text editorial guidance passed to pitch generation

contentLanguage*string

Output language this newsdesk's pitches are generated in

Value in"aa""ab""ae""af""ak""am""an""ar""as""av""ay""az""ba""be""bg""bh""bi""bm""bn""bo""br""bs""ca""ce""ch""co""cr""cs""cu""cv""cy""da""de""dv""dz""ee""el""en""eo""es""et""eu""fa""ff""fi""fj""fo""fr""fy""ga""gd""gl""gn""gu""gv""ha""he""hi""ho""hr""ht""hu""hy""hz""ia""id""ie""ig""ii""ik""io""is""it""iu""ja""jv""ka""kg""ki""kj""kk""kl""km""kn""ko""kr""ks""ku""kv""kw""ky""la""lb""lg""li""ln""lo""lt""lu""lv""mg""mh""mi""mk""ml""mn""mr""ms""mt""my""na""nb""nd""ne""ng""nl""nn""no""nr""nv""ny""oc""oj""om""or""os""pa""pi""pl""ps""pt""qu""rm""rn""ro""ru""rw""sa""sc""sd""se""sg""sh""si""sk""sl""sm""sn""so""sq""sr""ss""st""su""sv""sw""ta""te""tg""th""ti""tk""tl""tn""to""tr""ts""tt""tw""ty""ug""uk""ur""uz""ve""vi""vo""wa""wo""xh""yi""yo""za""zh""zu"
topics?array<>

Beat topics this newsdesk covers, drawn from the controlled topic vocabulary

Default[]
locations?array<string>

Free-text beat locations this newsdesk covers, not a controlled vocabulary

Default[]
datasourceIds?array<>

The data sources subscribed to this newsdesk; their articles feed its pitch generation

Default[]

Response Body

Newsdesk created

application/json
  1. response
id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
orgId*string

Owning organization identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
name*string

Newsdesk display name

Length1 <= length
description?string

Free-text description of the newsdesk's purpose

audience?string

Free-text description of the intended readership

customInstructions?string

Free-text editorial guidance passed to pitch generation

contentLanguage*string

Output language this newsdesk's pitches are generated in

Value in"aa""ab""ae""af""ak""am""an""ar""as""av""ay""az""ba""be""bg""bh""bi""bm""bn""bo""br""bs""ca""ce""ch""co""cr""cs""cu""cv""cy""da""de""dv""dz""ee""el""en""eo""es""et""eu""fa""ff""fi""fj""fo""fr""fy""ga""gd""gl""gn""gu""gv""ha""he""hi""ho""hr""ht""hu""hy""hz""ia""id""ie""ig""ii""ik""io""is""it""iu""ja""jv""ka""kg""ki""kj""kk""kl""km""kn""ko""kr""ks""ku""kv""kw""ky""la""lb""lg""li""ln""lo""lt""lu""lv""mg""mh""mi""mk""ml""mn""mr""ms""mt""my""na""nb""nd""ne""ng""nl""nn""no""nr""nv""ny""oc""oj""om""or""os""pa""pi""pl""ps""pt""qu""rm""rn""ro""ru""rw""sa""sc""sd""se""sg""sh""si""sk""sl""sm""sn""so""sq""sr""ss""st""su""sv""sw""ta""te""tg""th""ti""tk""tl""tn""to""tr""ts""tt""tw""ty""ug""uk""ur""uz""ve""vi""vo""wa""wo""xh""yi""yo""za""zh""zu"
topics?array<>

Beat topics this newsdesk covers, drawn from the controlled topic vocabulary

Default[]
locations?array<string>

Free-text beat locations this newsdesk covers, not a controlled vocabulary

Default[]
datasourceIds?array<>

The data sources subscribed to this newsdesk; their articles feed its pitch generation

Default[]
enabled*boolean

When false the newsdesk is excluded from pitch generation runs

version*integer

Monotonic row version; used as concurrency token

lastRunAt?string

ISO 8601 timestamp of the most recent pitch generation run

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
Example Request
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/newsdesks' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "contentLanguage": "aa"}'
Example Response
{  "id": "string",  "orgId": "string",  "name": "string",  "description": "string",  "audience": "string",  "customInstructions": "string",  "contentLanguage": "aa",  "topics": [],  "locations": [],  "datasourceIds": [],  "enabled": true,  "version": 0,  "lastRunAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Get a newsdesk by ID

GET
/api/tenant/v1/newsdesks/{id}

Authorization

headerx-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.

Path Parameters

id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Response Body

Newsdesk found

application/json
  1. response
id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
orgId*string

Owning organization identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
name*string

Newsdesk display name

Length1 <= length
description?string

Free-text description of the newsdesk's purpose

audience?string

Free-text description of the intended readership

customInstructions?string

Free-text editorial guidance passed to pitch generation

contentLanguage*string

Output language this newsdesk's pitches are generated in

Value in"aa""ab""ae""af""ak""am""an""ar""as""av""ay""az""ba""be""bg""bh""bi""bm""bn""bo""br""bs""ca""ce""ch""co""cr""cs""cu""cv""cy""da""de""dv""dz""ee""el""en""eo""es""et""eu""fa""ff""fi""fj""fo""fr""fy""ga""gd""gl""gn""gu""gv""ha""he""hi""ho""hr""ht""hu""hy""hz""ia""id""ie""ig""ii""ik""io""is""it""iu""ja""jv""ka""kg""ki""kj""kk""kl""km""kn""ko""kr""ks""ku""kv""kw""ky""la""lb""lg""li""ln""lo""lt""lu""lv""mg""mh""mi""mk""ml""mn""mr""ms""mt""my""na""nb""nd""ne""ng""nl""nn""no""nr""nv""ny""oc""oj""om""or""os""pa""pi""pl""ps""pt""qu""rm""rn""ro""ru""rw""sa""sc""sd""se""sg""sh""si""sk""sl""sm""sn""so""sq""sr""ss""st""su""sv""sw""ta""te""tg""th""ti""tk""tl""tn""to""tr""ts""tt""tw""ty""ug""uk""ur""uz""ve""vi""vo""wa""wo""xh""yi""yo""za""zh""zu"
topics?array<>

Beat topics this newsdesk covers, drawn from the controlled topic vocabulary

Default[]
locations?array<string>

Free-text beat locations this newsdesk covers, not a controlled vocabulary

Default[]
datasourceIds?array<>

The data sources subscribed to this newsdesk; their articles feed its pitch generation

Default[]
enabled*boolean

When false the newsdesk is excluded from pitch generation runs

version*integer

Monotonic row version; used as concurrency token

lastRunAt?string

ISO 8601 timestamp of the most recent pitch generation run

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
Example Request
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/newsdesks/string'
Example Response
{  "id": "string",  "orgId": "string",  "name": "string",  "description": "string",  "audience": "string",  "customInstructions": "string",  "contentLanguage": "aa",  "topics": [],  "locations": [],  "datasourceIds": [],  "enabled": true,  "version": 0,  "lastRunAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
PATCH
/api/tenant/v1/newsdesks/{id}

Authorization

headerx-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.

Path Parameters

id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Request Body

application/json
  1. body
name?string
Length1 <= length
description?string
audience?string
customInstructions?string
contentLanguage?string
Value in"aa""ab""ae""af""ak""am""an""ar""as""av""ay""az""ba""be""bg""bh""bi""bm""bn""bo""br""bs""ca""ce""ch""co""cr""cs""cu""cv""cy""da""de""dv""dz""ee""el""en""eo""es""et""eu""fa""ff""fi""fj""fo""fr""fy""ga""gd""gl""gn""gu""gv""ha""he""hi""ho""hr""ht""hu""hy""hz""ia""id""ie""ig""ii""ik""io""is""it""iu""ja""jv""ka""kg""ki""kj""kk""kl""km""kn""ko""kr""ks""ku""kv""kw""ky""la""lb""lg""li""ln""lo""lt""lu""lv""mg""mh""mi""mk""ml""mn""mr""ms""mt""my""na""nb""nd""ne""ng""nl""nn""no""nr""nv""ny""oc""oj""om""or""os""pa""pi""pl""ps""pt""qu""rm""rn""ro""ru""rw""sa""sc""sd""se""sg""sh""si""sk""sl""sm""sn""so""sq""sr""ss""st""su""sv""sw""ta""te""tg""th""ti""tk""tl""tn""to""tr""ts""tt""tw""ty""ug""uk""ur""uz""ve""vi""vo""wa""wo""xh""yi""yo""za""zh""zu"
topics?array<>
locations?array<string>
enabled?boolean

Response Body

Newsdesk updated

application/json
  1. response
id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
orgId*string

Owning organization identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
name*string

Newsdesk display name

Length1 <= length
description?string

Free-text description of the newsdesk's purpose

audience?string

Free-text description of the intended readership

customInstructions?string

Free-text editorial guidance passed to pitch generation

contentLanguage*string

Output language this newsdesk's pitches are generated in

Value in"aa""ab""ae""af""ak""am""an""ar""as""av""ay""az""ba""be""bg""bh""bi""bm""bn""bo""br""bs""ca""ce""ch""co""cr""cs""cu""cv""cy""da""de""dv""dz""ee""el""en""eo""es""et""eu""fa""ff""fi""fj""fo""fr""fy""ga""gd""gl""gn""gu""gv""ha""he""hi""ho""hr""ht""hu""hy""hz""ia""id""ie""ig""ii""ik""io""is""it""iu""ja""jv""ka""kg""ki""kj""kk""kl""km""kn""ko""kr""ks""ku""kv""kw""ky""la""lb""lg""li""ln""lo""lt""lu""lv""mg""mh""mi""mk""ml""mn""mr""ms""mt""my""na""nb""nd""ne""ng""nl""nn""no""nr""nv""ny""oc""oj""om""or""os""pa""pi""pl""ps""pt""qu""rm""rn""ro""ru""rw""sa""sc""sd""se""sg""sh""si""sk""sl""sm""sn""so""sq""sr""ss""st""su""sv""sw""ta""te""tg""th""ti""tk""tl""tn""to""tr""ts""tt""tw""ty""ug""uk""ur""uz""ve""vi""vo""wa""wo""xh""yi""yo""za""zh""zu"
topics?array<>

Beat topics this newsdesk covers, drawn from the controlled topic vocabulary

Default[]
locations?array<string>

Free-text beat locations this newsdesk covers, not a controlled vocabulary

Default[]
datasourceIds?array<>

The data sources subscribed to this newsdesk; their articles feed its pitch generation

Default[]
enabled*boolean

When false the newsdesk is excluded from pitch generation runs

version*integer

Monotonic row version; used as concurrency token

lastRunAt?string

ISO 8601 timestamp of the most recent pitch generation run

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
Example Request
curl -X PATCH 'https://api.nuvelics.com/api/tenant/v1/newsdesks/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "orgId": "string",  "name": "string",  "description": "string",  "audience": "string",  "customInstructions": "string",  "contentLanguage": "aa",  "topics": [],  "locations": [],  "datasourceIds": [],  "enabled": true,  "version": 0,  "lastRunAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Delete a newsdesk

DELETE
/api/tenant/v1/newsdesks/{id}

Authorization

headerx-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.

Path Parameters

id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Response Body

Newsdesk deleted

Example Request
curl -X DELETE 'https://api.nuvelics.com/api/tenant/v1/newsdesks/string'
Example Response
Empty
PUT
/api/tenant/v1/newsdesks/{id}/datasources

Authorization

headerx-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.

Path Parameters

id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Request Body

application/json
  1. body
datasourceIds*array<>

Response Body

Newsdesk's datasource subscription replaced

application/json
  1. response
id*string

Newsdesk identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
orgId*string

Owning organization identifier

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
name*string

Newsdesk display name

Length1 <= length
description?string

Free-text description of the newsdesk's purpose

audience?string

Free-text description of the intended readership

customInstructions?string

Free-text editorial guidance passed to pitch generation

contentLanguage*string

Output language this newsdesk's pitches are generated in

Value in"aa""ab""ae""af""ak""am""an""ar""as""av""ay""az""ba""be""bg""bh""bi""bm""bn""bo""br""bs""ca""ce""ch""co""cr""cs""cu""cv""cy""da""de""dv""dz""ee""el""en""eo""es""et""eu""fa""ff""fi""fj""fo""fr""fy""ga""gd""gl""gn""gu""gv""ha""he""hi""ho""hr""ht""hu""hy""hz""ia""id""ie""ig""ii""ik""io""is""it""iu""ja""jv""ka""kg""ki""kj""kk""kl""km""kn""ko""kr""ks""ku""kv""kw""ky""la""lb""lg""li""ln""lo""lt""lu""lv""mg""mh""mi""mk""ml""mn""mr""ms""mt""my""na""nb""nd""ne""ng""nl""nn""no""nr""nv""ny""oc""oj""om""or""os""pa""pi""pl""ps""pt""qu""rm""rn""ro""ru""rw""sa""sc""sd""se""sg""sh""si""sk""sl""sm""sn""so""sq""sr""ss""st""su""sv""sw""ta""te""tg""th""ti""tk""tl""tn""to""tr""ts""tt""tw""ty""ug""uk""ur""uz""ve""vi""vo""wa""wo""xh""yi""yo""za""zh""zu"
topics?array<>

Beat topics this newsdesk covers, drawn from the controlled topic vocabulary

Default[]
locations?array<string>

Free-text beat locations this newsdesk covers, not a controlled vocabulary

Default[]
datasourceIds?array<>

The data sources subscribed to this newsdesk; their articles feed its pitch generation

Default[]
enabled*boolean

When false the newsdesk is excluded from pitch generation runs

version*integer

Monotonic row version; used as concurrency token

lastRunAt?string

ISO 8601 timestamp of the most recent pitch generation run

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
Example Request
curl -X PUT 'https://api.nuvelics.com/api/tenant/v1/newsdesks/string/datasources' \  -H 'Content-Type: application/json' \  -d '{  "datasourceIds": [    "string"  ]}'
Example Response
{  "id": "string",  "orgId": "string",  "name": "string",  "description": "string",  "audience": "string",  "customInstructions": "string",  "contentLanguage": "aa",  "topics": [],  "locations": [],  "datasourceIds": [],  "enabled": true,  "version": 0,  "lastRunAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Report a problem with this page

On this page