Nuvelics documentation
APIAPI reference

NRCS connections

Connect your newsroom systems, manage the webhook that delivers their stories, switch story checks on or off, and list where a story can be pushed.

GET
/api/tenant/v1/nrcs-configs

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

include?string

Set to health to include each connection's outbound credential health. Omitted entirely by default, so the ordinary list pays no health-lookup cost.

Response Body

Every NRCS connection configured for the organization. Items carry health only when the request includes ?include=health.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs'
Example Response
{  "items": [    {      "id": "string",      "orgId": "string",      "displayName": "string",      "credentialId": "string",      "skillsEnabled": false,      "skillsEnabledAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "version": 0,      "vendor": "saga",      "baseUrl": "http://example.com",      "instanceUrl": "http://example.com",      "webhookEnabled": true,      "webhookToken": "string",      "webhookCredentialId": "string",      "pitchFeed": {        "enabled": false,        "desks": {          "property1": {            "provider": "string",            "enabledAt": "2019-08-24T14:15:22Z"          },          "property2": {            "provider": "string",            "enabledAt": "2019-08-24T14:15:22Z"          }        }      },      "health": {        "status": "healthy",        "lastError": "string",        "lastCheckedAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z",        "fundingStatus": "ok"      }    }  ]}
POST
/api/tenant/v1/nrcs-configs

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

Saga NRCS connection

displayName*string

NRCS connection display name

Length1 <= length
vendor*"saga"
Value in"saga"
baseUrl*string

Saga's API host (https only)

Formaturi
instanceUrl*string

The org's hosted Saga instance (https only)

Formaturi
apiKey*string
Length1 <= length

Response Body

NRCS connection created

application/json
  1. response
id*string

NRCS connection identifier

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

Owning organization identifier

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

NRCS connection display name

Length1 <= length
credentialId*string

Reference to stored credential

skillsEnabled?boolean

Whether this connection's stories are processed by the org's skills at all. Absent (rows predating this field) means disabled.

Defaultfalse
skillsEnabledAt?string

When skillsEnabled was last switched on; workers only process stories received at or after this moment

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
version*integer

Monotonic row version; used as concurrency token

vendor*"saga"
Value in"saga"
baseUrl*string

Saga's API host (https only)

Formaturi
instanceUrl*string

The org's hosted Saga instance (https only)

Formaturi
webhookEnabled?boolean

Whether an inbound Saga webhook is enabled for this connection

webhookToken?string

URL token identifying this connection's webhook endpoint

webhookCredentialId?string

Reference to the stored credential holding the webhook verification secret

pitchFeed?

Per-connection pitch feed delivery config; absent on rows that predate it

Example Request
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs' \  -H 'Content-Type: application/json' \  -d '{  "displayName": "string",  "vendor": "saga",  "baseUrl": "http://example.com",  "instanceUrl": "http://example.com",  "apiKey": "string"}'
Example Response
{  "id": "string",  "orgId": "string",  "displayName": "string",  "credentialId": "string",  "skillsEnabled": false,  "skillsEnabledAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "version": 0,  "vendor": "saga",  "baseUrl": "http://example.com",  "instanceUrl": "http://example.com",  "webhookEnabled": true,  "webhookToken": "string",  "webhookCredentialId": "string",  "pitchFeed": {    "enabled": false,    "desks": {      "property1": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      },      "property2": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      }    }  }}

Get an NRCS connection

GET
/api/tenant/v1/nrcs-configs/{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

NRCS connection identifier

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

Query Parameters

include?string

Set to health to include the connection's outbound credential health. Omitted entirely by default.

Response Body

The NRCS connection. Carries health only when the request includes ?include=health.

application/json
  1. response
health?

Health of a credential from the most recent harvest auth check, null when never checked

id*string

NRCS connection identifier

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

Owning organization identifier

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

NRCS connection display name

Length1 <= length
credentialId*string

Reference to stored credential

skillsEnabled?boolean

Whether this connection's stories are processed by the org's skills at all. Absent (rows predating this field) means disabled.

Defaultfalse
skillsEnabledAt?string

When skillsEnabled was last switched on; workers only process stories received at or after this moment

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
version*integer

Monotonic row version; used as concurrency token

vendor*"saga"
Value in"saga"
baseUrl*string

Saga's API host (https only)

Formaturi
instanceUrl*string

The org's hosted Saga instance (https only)

Formaturi
webhookEnabled?boolean

Whether an inbound Saga webhook is enabled for this connection

webhookToken?string

URL token identifying this connection's webhook endpoint

webhookCredentialId?string

Reference to the stored credential holding the webhook verification secret

pitchFeed?

Per-connection pitch feed delivery config; absent on rows that predate it

Example Request
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string'
Example Response
{  "id": "string",  "orgId": "string",  "displayName": "string",  "credentialId": "string",  "skillsEnabled": false,  "skillsEnabledAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "version": 0,  "vendor": "saga",  "baseUrl": "http://example.com",  "instanceUrl": "http://example.com",  "webhookEnabled": true,  "webhookToken": "string",  "webhookCredentialId": "string",  "pitchFeed": {    "enabled": false,    "desks": {      "property1": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      },      "property2": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      }    }  },  "health": {    "status": "healthy",    "lastError": "string",    "lastCheckedAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "fundingStatus": "ok"  }}
PATCH
/api/tenant/v1/nrcs-configs/{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

NRCS connection identifier

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

Request Body

application/json
  1. body
displayName?string
Length1 <= length
baseUrl?string
Formaturi
instanceUrl?string
Formaturi
apiKey?string
Length1 <= length
pitchFeed?

Response Body

NRCS connection updated

application/json
  1. response
id*string

NRCS connection identifier

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

Owning organization identifier

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

NRCS connection display name

Length1 <= length
credentialId*string

Reference to stored credential

skillsEnabled?boolean

Whether this connection's stories are processed by the org's skills at all. Absent (rows predating this field) means disabled.

Defaultfalse
skillsEnabledAt?string

When skillsEnabled was last switched on; workers only process stories received at or after this moment

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
version*integer

Monotonic row version; used as concurrency token

vendor*"saga"
Value in"saga"
baseUrl*string

Saga's API host (https only)

Formaturi
instanceUrl*string

The org's hosted Saga instance (https only)

Formaturi
webhookEnabled?boolean

Whether an inbound Saga webhook is enabled for this connection

webhookToken?string

URL token identifying this connection's webhook endpoint

webhookCredentialId?string

Reference to the stored credential holding the webhook verification secret

pitchFeed?

Per-connection pitch feed delivery config; absent on rows that predate it

Example Request
curl -X PATCH 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "orgId": "string",  "displayName": "string",  "credentialId": "string",  "skillsEnabled": false,  "skillsEnabledAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "version": 0,  "vendor": "saga",  "baseUrl": "http://example.com",  "instanceUrl": "http://example.com",  "webhookEnabled": true,  "webhookToken": "string",  "webhookCredentialId": "string",  "pitchFeed": {    "enabled": false,    "desks": {      "property1": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      },      "property2": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      }    }  }}
DELETE
/api/tenant/v1/nrcs-configs/{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

NRCS connection identifier

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

Response Body

NRCS connection deleted, together with its credential

Example Request
curl -X DELETE 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string'
Example Response
Empty
POST
/api/tenant/v1/nrcs-configs/{id}/webhook/enable

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

NRCS connection identifier

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

Response Body

Webhook enabled for this NRCS connection

application/json
  1. response
config*
webhookSecret?string

Cleartext webhook verification secret; present only when a fresh one was minted (first enable, or replacing a missing one)

Example Request
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string/webhook/enable'
Example Response
{  "config": {    "id": "string",    "orgId": "string",    "displayName": "string",    "credentialId": "string",    "skillsEnabled": false,    "skillsEnabledAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "version": 0,    "vendor": "saga",    "baseUrl": "http://example.com",    "instanceUrl": "http://example.com",    "webhookEnabled": true,    "webhookToken": "string",    "webhookCredentialId": "string",    "pitchFeed": {      "enabled": false,      "desks": {        "property1": {          "provider": "string",          "enabledAt": "2019-08-24T14:15:22Z"        },        "property2": {          "provider": "string",          "enabledAt": "2019-08-24T14:15:22Z"        }      }    }  },  "webhookSecret": "string"}
POST
/api/tenant/v1/nrcs-configs/{id}/webhook/regenerate

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

NRCS connection identifier

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

Response Body

Webhook URL token and verification secret rotated

application/json
  1. response
config*
webhookSecret*string

Freshly rotated cleartext webhook verification secret

Example Request
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string/webhook/regenerate'
Example Response
{  "config": {    "id": "string",    "orgId": "string",    "displayName": "string",    "credentialId": "string",    "skillsEnabled": false,    "skillsEnabledAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "version": 0,    "vendor": "saga",    "baseUrl": "http://example.com",    "instanceUrl": "http://example.com",    "webhookEnabled": true,    "webhookToken": "string",    "webhookCredentialId": "string",    "pitchFeed": {      "enabled": false,      "desks": {        "property1": {          "provider": "string",          "enabledAt": "2019-08-24T14:15:22Z"        },        "property2": {          "provider": "string",          "enabledAt": "2019-08-24T14:15:22Z"        }      }    }  },  "webhookSecret": "string"}
POST
/api/tenant/v1/nrcs-configs/{id}/webhook/disable

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

NRCS connection identifier

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

Response Body

Webhook disabled for this NRCS connection

application/json
  1. response
id*string

NRCS connection identifier

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

Owning organization identifier

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

NRCS connection display name

Length1 <= length
credentialId*string

Reference to stored credential

skillsEnabled?boolean

Whether this connection's stories are processed by the org's skills at all. Absent (rows predating this field) means disabled.

Defaultfalse
skillsEnabledAt?string

When skillsEnabled was last switched on; workers only process stories received at or after this moment

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
version*integer

Monotonic row version; used as concurrency token

vendor*"saga"
Value in"saga"
baseUrl*string

Saga's API host (https only)

Formaturi
instanceUrl*string

The org's hosted Saga instance (https only)

Formaturi
webhookEnabled?boolean

Whether an inbound Saga webhook is enabled for this connection

webhookToken?string

URL token identifying this connection's webhook endpoint

webhookCredentialId?string

Reference to the stored credential holding the webhook verification secret

pitchFeed?

Per-connection pitch feed delivery config; absent on rows that predate it

Example Request
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string/webhook/disable'
Example Response
{  "id": "string",  "orgId": "string",  "displayName": "string",  "credentialId": "string",  "skillsEnabled": false,  "skillsEnabledAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "version": 0,  "vendor": "saga",  "baseUrl": "http://example.com",  "instanceUrl": "http://example.com",  "webhookEnabled": true,  "webhookToken": "string",  "webhookCredentialId": "string",  "pitchFeed": {    "enabled": false,    "desks": {      "property1": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      },      "property2": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      }    }  }}
PATCH
/api/tenant/v1/nrcs-configs/{id}/skills

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

NRCS connection identifier

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

Request Body

application/json
  1. body
skillsEnabled*boolean

Response Body

The connection's skills switch was updated

application/json
  1. response
id*string

NRCS connection identifier

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

Owning organization identifier

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

NRCS connection display name

Length1 <= length
credentialId*string

Reference to stored credential

skillsEnabled?boolean

Whether this connection's stories are processed by the org's skills at all. Absent (rows predating this field) means disabled.

Defaultfalse
skillsEnabledAt?string

When skillsEnabled was last switched on; workers only process stories received at or after this moment

Formatdate-time
createdAt*string

ISO 8601 creation timestamp

Formatdate-time
updatedAt*string

ISO 8601 last-modified timestamp

Formatdate-time
version*integer

Monotonic row version; used as concurrency token

vendor*"saga"
Value in"saga"
baseUrl*string

Saga's API host (https only)

Formaturi
instanceUrl*string

The org's hosted Saga instance (https only)

Formaturi
webhookEnabled?boolean

Whether an inbound Saga webhook is enabled for this connection

webhookToken?string

URL token identifying this connection's webhook endpoint

webhookCredentialId?string

Reference to the stored credential holding the webhook verification secret

pitchFeed?

Per-connection pitch feed delivery config; absent on rows that predate it

Example Request
curl -X PATCH 'https://api.nuvelics.com/api/tenant/v1/nrcs-configs/string/skills' \  -H 'Content-Type: application/json' \  -d '{  "skillsEnabled": true}'
Example Response
{  "id": "string",  "orgId": "string",  "displayName": "string",  "credentialId": "string",  "skillsEnabled": false,  "skillsEnabledAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "version": 0,  "vendor": "saga",  "baseUrl": "http://example.com",  "instanceUrl": "http://example.com",  "webhookEnabled": true,  "webhookToken": "string",  "webhookCredentialId": "string",  "pitchFeed": {    "enabled": false,    "desks": {      "property1": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      },      "property2": {        "provider": "string",        "enabledAt": "2019-08-24T14:15:22Z"      }    }  }}
GET
/api/tenant/v1/nrcs-push-targets

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.

Response Body

Every NRCS connection of the organization, as a push target.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/nrcs-push-targets'
Example Response
{  "items": [    {      "id": "string",      "displayName": "string",      "vendor": "saga",      "instanceUrl": "string"    }  ]}

Report a problem with this page

On this page