View as Markdown

Get started · Guide

Go live

Use this checklist to move an integration that works in the sandbox to live. Your code changes only the key and the base URL; the paths, the SDKs and the responses stay the same.

Before you begin: your integration runs against the sandbox, you've sent yourself a test webhook, and, if you send texts, you've checked them with test texts in the sandbox.

1. Sign up and get a live key

Sign up on the site opens the live console. Once your email is verified, the account starts on the Free plan with a live key, bounded by the Free trial's limits; pricing lists the plans.

Live keys start prv_live_, sandbox keys prv_test_, and each reaches only its own environment. Create one key per service under Developers → API keys, with only the products that service uses (scopes). A live key's scopes follow the products your account has: a call to a product the account doesn't have answers 403 product_not_enabled.

2. Point your code at live

Set PROVENANCE_API to the live base URL and PROVENANCE_KEY to the live key, from your secret store. Keep the sandbox values for your tests. A sandbox ID used with a live key, or the other way round, answers 403 environment_mismatch.

3. Register a public webhook endpoint

In the sandbox an endpoint can be http://localhost; in live it must be a public https URL. Register it, store its signing secret and verify every delivery's signature, as in receive webhook events. The events you can subscribe to are listed in webhook events.

4. Set up texts, if you send them

Live texts to your customers go from a number registered to your company. Save your business details and follow the carrier review in your own sending number, and record each person's agreement as in get consent to text. Texts start on Pro.

5. Check your plan and limits

  • Plans and usage: what counts toward your plan, the Free trial's counters, seats and spend caps.
  • Rate limits: the same as in the sandbox. Back off on 429 as the Retry-After header says.
  • Errors: branch on error.code, and log request_id for support.

6. Plan for a leaked key

Keep keys out of code, logs and browsers; browsers and apps use a publishable key (embeds). Know how to rotate a key, and what Provenance does when a key turns up in public: if a key leaks.

Errors you might see

CodeStatusWhat it means
product_not_enabled403The account doesn't have the product this route belongs to.
insufficient_scope403The key doesn't carry the product's scope. Create a key for that product.
environment_mismatch403A sandbox ID with a live key, or a live ID with a sandbox key.
beta_access_required403The operator limits console sign-in to a list of emails, and yours isn't on it.
trial_ended402A Free trial counter is used up, or the 30 days have ended. Choose a plan.
service_unavailable_maintenance503The API is in maintenance mode. Retry after the Retry-After header.

See also