Skip to content

ecentic API authentication.

Public discovery needs no credential at all. Anything that reads or changes a merchant account takes a bearer key you mint yourself — no sales call, no manual provisioning.

Self-serve keys · Bearer tokens · OAuth metadata

01

Choose a request path

Explore the API first. Add a bearer key when your client acts on a merchant account.

Your client

No credential required

Discovery + sandbox

What needs no key

Discovery is open, deliberately.

No credential required

02

Minting a key

Two self-serve routes, both under your control.

  1. Create an account
  2. Mint a key
  3. Save it once

Create an account, then mint a key either from the dashboard or by calling the create_api_key MCP tool from an authenticated session. Keys look like ecentic_sk_…, are long-lived, and are shown exactly once — ecentic stores only a hash, so a lost key is replaced rather than recovered.

Rotate by minting a new key and revoking the old one. Nothing about the process requires contacting a human.

Full registration guide
03

When it fails

A 401 tells you where to go next.

  1. HTTP 401Missing or invalid credential
  2. RFC 9728Protected resource metadata
  3. RFC 8414Authorization server metadata
401

A missing or invalid credential returns HTTP 401 with a WWW-Authenticate header naming the Protected Resource Metadata document (RFC 9728). Following it leads to the authorization server metadata (RFC 8414), so a client that hits a 401 can discover how to authenticate without a human reading documentation.

On the REST surface the body is an RFC 9457 problem with code: "unauthenticated". On the MCP endpoint it is a JSON-RPC error with code -32001 and a resource_metadata hint in error.data.

Credentials are never required to evaluate ecentic — only to act on a merchant account.