ParasendDocs
Sign in Start free

Test and live mode

Every account has two modes. The API key decides which one a request uses: ps_test_ keys work in test mode, ps_live_ keys in live mode. Both use the same address, https://api.parasend.com/v1.

What test mode does

  • Sends nothing. Notices by e-mail and SMS go to a test sink, never to a real address or phone. The delivery still moves on as if they were sent: you get delivery.notified and the rest.
  • Costs nothing. Test deliveries are never billed and do not use the free allowance.
  • Keeps the two apart. Test mode and live mode never see each other's deliveries, files, batches or events. Asking for an object from the other mode answers 404, the same as for one that does not exist.
  • Runs the same code. Everything else works as in live mode: validation, idempotency, webhooks, the recipient's page, the certificate.

Deliveries, batches and webhook endpoints carry livemode. A webhook endpoint made with a test key receives only test-mode events, and one made with a live key only live ones.

The recipient's side in test mode

Open the delivery's delivery_url yourself to act as the recipient. Each verification_level works like this in test mode:

LevelIn test mode
lowThe link alone, as in live mode.
mediumNo SMS is sent. The code is always 000000.
substantialThe ID document check runs in the provider's sandbox.
higheID sign-in goes through the eID providers' test systems: sign in with a test identity, never a real one.

Moving to live

  1. Make a live key in API keys in the portal, with only the permissions it needs.
  2. Store it in your secret store, and switch the key your code reads. Nothing else changes: same address, same requests.
  3. Choose a plan in the portal before you send more than the free allowance.

A live key sends real notices to real people. Keep it out of logs, URLs and front-end code.