Authentication

The credentials used by Copper CMS.

API Key

An API key reads and deletes articles on the site it was issued for. Send it as a bearer token.

GET https://api.coppercms.com/v1/wire/posts
authorization: Bearer ck_a41f9c2e77b1.8f2c…c1a9.k3Rd…

A key has parts split by dots. Only the last part is secret. The earlier parts let the API find the account.

Issue keys on the API keys screen. A key is displayed when it is issued and never again. Revoking a key takes effect immediately.

Keep the key on a server. A key in a browser bundle is public.

Ingest Webhook URL

An ingest webhook url lets a partner post articles in. The url is the credential. There is no key to send and no signature to build.

POST https://api.coppercms.com/v1/hook/8f2c…c1a9.k3Rd…

Treat the url as a password. It appears in server logs and proxy logs.

The source page shows the url again.

Rotating replaces the url immediately. A partner still posting to the old url gets a 401.

Webhook Signing Secret

A signing secret proves an outbound webhook came from Copper CMS. It is displayed when the endpoint is created and never again. It starts with whsec_.

The secret signs. It does not authorize. It cannot read anything.

See Outbound Webhooks for checking a signature.

When a Credential Fails

A missing, unknown, revoked or malformed credential gets the same answer.

401 Unauthorized

{ "error": "unauthorized" }