Skip to main content
POST
/
providers
/
{id}
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});

const provider = await client.providers.update('id', { provider: 'provider' });

console.log(provider.id);
{
  "id": "<string>",
  "title": "<string>",
  "provider": "<string>",
  "settings": {},
  "created": 123,
  "alias": "<string>",
  "updated": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

A unique identifier of the provider configuration to update.

Body

application/json

Request body for updating an existing provider configuration. The provider key is required. All other fields are optional — omitted fields are cleared from the stored configuration (this is a full replacement, not a partial merge).

provider
string
required

The provider key identifying the type.

Maximum string length: 128
title
string

Updated display title.

alias
string

Updated alias. Omit to clear.

settings
object

Provider-specific settings (snake_case keys). Replaces the full settings object — omitted settings fields are removed. Use the catalog endpoint to check required fields.

Response

A configured provider in the workspace.

id
string
required

A unique identifier for the provider configuration.

title
string
required

Display title. Defaults to "Default Configuration" when not explicitly set.

provider
string
required

The provider key (e.g. "sendgrid", "twilio", "slack").

settings
object
required

Provider-specific settings (snake_case keys on the wire).

created
integer
required

Unix timestamp (ms) of when the provider was created.

alias
string

Optional alias for this configuration.

updated
integer | null

Unix timestamp (ms) of when the provider was last updated.