API v1.0.0 · https://api.readyink.ai/v1
Get started

Authentication and test mode

Every request needs an API key in the Authorization header. Keys come in two kinds: live keys send real documents, and test keys use a free sandbox.

Create a key

Sign in at app.readyink.ai and open Settings › Developers. Give the key a name you'll recognize later, like "Production server", and choose Live or Test. The name comes back as key_name from GET /account.

Send the key with each request

Use the Bearer scheme:

HTTP
GET /v1/account HTTP/1.1
Host: api.readyink.ai
Authorization: Bearer ri_live_…

A missing key returns 401 missing_key. A wrong or revoked key returns 401 invalid_key.

Live and test keys

Live key ri_live_… Test key ri_test_…
Sends Use real tokens Free (0 tokens)
Emails and texts Go to the real recipient Go to your test inbox
Text message code Real code Always 000000
Documents Live documents only Test documents only (test_mode: true)
GET /account → mode live test

Live and test data are kept apart. A test key can't see live documents, and asking for one returns 404.

Test mode

Use a test key while you build. You can run the whole flow, from creating a draft to downloading the signed PDF, without spending tokens or emailing real people.

  • Signing a test document: open the email in your test inbox and sign it as the recipient. If the recipient gets texts, enter 000000 as the code.
  • Your code doesn't change: endpoints, requests and responses are the same in both modes. Only the key changes.
  • Going live: swap in an ri_live_ key. Make sure your account has tokens first; GET /account shows your balance.

Keep keys safe

  • Keep keys on your server. Never put them in a browser, a mobile app or a public repository.
  • Store them in environment variables or a secrets manager.
  • Use a separate key for each app or environment so you can revoke one without affecting the others.
  • If a key leaks, revoke it under Settings › Developers and create a new one. Requests with the old key return 401 invalid_key straight away.
Anyone with your live key can spend your tokens

Treat a live key like a password. Sends, cancellations and email changes made with a key are recorded in the document's activity with the actor api, so you can see what a key did.

Something unclear or missing? Email info@readyink.ai or use the contact page. A real person will reply.