What kind of permissions can be set for TinyURL API Tokens?
TinyURL allows users to create permission specific API tokens. For example, there can be a token that can only be used to create TinyURLs. Similarly, there can be a token which can only be used to delete TinyURLs. It is possible to create a token with multiple or even all permissions.
At the moment, following permissions can be set for Free users,
- Create TinyURL - Permission to create a TinyURL using /create endpoint.
- Update TinyURL - Used to update endpoint which allows to update TinyURL alias
- Archive TinyURL - Used to archive or unarchive a TinyURL with /archive endpoint.
Paid users have a wider set of functionalities at their disposal,
- Create TinyURL - To create a TinyURL using
/create
endpoint - Update TinyURL - To use /update endpoint which allows to update TinyURL alias, tags, stats settings
- Change URL - To change destination URL for an existing TinyURL using /change endpoint
- Delete TinyURL - To delete an existing TinyURL using the
/delete
endpoint - Archive TinyURL - To archive or unarchive a TinyURL with
/archive
endpoint - Use Analytics - To enable/disable dashboard analytics for an existing link
- Raw Analytics Logs - To get raw analytics data via multiple endpoints
- Use Bulk Requests - To use Bulk requests with multiple operations using
/bulk
endpoint. - Manage TinyURL Expiration - To manage expiration date with create/update endpoints
Sometimes, permissions need to be combined to be able to complete the required task. For example, having permission for Use Bulk Requests enables processing multiple links in one go but the API token must have additional permission for what kind of operations can be done in the Bulk Requests e.g. create or delete.