[ BLOG POST ]

API keys with full, sending and read scopes: a least-privilege setup

Give each service the smallest scope it needs, store keys in a secret manager, and revoke any key you no longer use.

Quick answer

Sendflit API keys come in three scopes: full, sending and read. Give each service the narrowest scope it needs, store keys in a secret manager, and revoke any key that is no longer used.

Key takeaways

  • Full keys manage the account, sending keys only send, and read keys only retrieve.

  • Keys are shown once, so save them at creation time.

  • Review keys regularly and revoke the ones no service uses.

What can each API key scope do?

A full key can manage everything in the account, including other keys. A sending key can send mail and nothing else. A read key can list and retrieve emails and reports without changing anything.

Most services need a sending key. Dashboards and analytics jobs need a read key. Only people who administer the account need a full key, and those keys should be rare.

How should you store and rotate keys?

Keys are stored as hashes, so Sendflit does not keep the plain value after you see it once. Save it in a secret manager at creation time. If you lose it, create a new key and revoke the old one.

To rotate without downtime, create the new key, deploy it, confirm the service is sending with it, and only then revoke the old key.

How do you find and revoke unused keys?

Record which service uses which key in your secret manager. A key without an owner is the one most likely to stay active after the system it belonged to has been retired.

Review your keys every quarter. Revoke any key that no service uses, and name keys so the next person can tell which system depends on each one.

Frequently asked questions

What is the difference between sending and read keys?

A sending key can send email. A read key can only retrieve emails and reports, so it cannot send mail or change anything.

Can I see an API key again after I create it?

No. Keys are shown once and stored as hashes. If you lose one, create a new key and revoke the old one.

How do I stop a leaked key from being used?

Revoke it immediately, create a replacement, and update the service that used it.

Last updated September 2026 by the Sendflit team.