kutt icon indicating copy to clipboard operation
kutt copied to clipboard

Support for Optional Headers to Comply with TRAI Regulations

Open yescay opened this issue 4 months ago • 1 comments

Overview

This pull request introduces support for optional headers in Kutt.it. These headers allow users to include custom metadata when generating short URLs. This enhancement aims to assist organizations in complying with TRAI’s regulations for commercial communications by enabling them to add the necessary identifiers or attributes mandated by the government.

Details of the Enhancement

New Feature:

  • Users can now pass optional headers when creating or managing short URLs.
  • These headers can store additional optional metadata as sender IDs
  • Key Use Case:
  • Organizations sending promotional or transactional messages through SMS or emails need to comply with TRAI's guidelines (e.g., DLT compliance).
  • By adding the necessary headers, the short URLs generated via Kutt.it can carry the required identifiers or templates without impacting the URL structure or drastically increasing the size.

Backward Compatibility

  • The feature is backward compatible. If no headers are passed, the system behaves as before without any impact on existing functionalities.
  • Existing users are not required to change their integration or workflows unless they wish to leverage the new feature.

Manual tests have been added to verify:

Optional headers are properly accepted and processed. The absence of headers does not affect URL generation. a8-shorten-url

yescay avatar Oct 13 '24 09:10 yescay