Skip to content

Authentication and API Keys

All developer APIs use:

Authorization: Bearer <api_key>

Gateway hashes the supplied key and checks active key records in D1.

Use Telegram bot commands:

  • /dev_start
  • /dev_key_new [label]
  • /dev_key_list
  • /dev_key_show <key_id_short>
  • /dev_key_revoke <key_id_short>
  • /dev_key_rotate <key_id_short> [new_label]

For end-user Telegram-facing messages:

  1. api_keys.key_label from the authenticated key (if present)
  2. developers.developer_name fallback
  3. fallback literal Developer
  • Treat keys as secrets.
  • Keep no more active keys than required.
  • Rotate and revoke regularly.
  • Revoke immediately if exposed.