Dub’s API is currently in beta. If you have any questions or feedback, please reach out to us at firstname.lastname@example.org.
Dub’s API is built on REST principles and is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.
The Base URL for all API endpoints is:
Authentication to the Dub API is performed via the Authorization header with a Bearer token. To authenticate, you need to include the Authorization header with the word
Bearer followed by your token in your API requests like so:
Authorization: Bearer <Your-Token>
You can get your token under your Dub Account Settings.
The API returns standard HTTP response codes to indicate the success or failure of an API request. Here are a few examples:
|The request was successful.|
|The request was invalid or cannot be served.|
|The request requires user authentication.|
|The server understood the request, but refuses to authorize it.|
|The requested resource could not be found.|
|Too many requests.|
|The server encountered an unexpected condition which prevented it from fulfilling the request.|
- Dub’s API is currently in beta and is subject to change. However, we will do our best to keep breaking changes to a minimum.
- The API does not support
PUTrequests at this time. One workaround would be to
DELETEthe resource and
POSTa new one.
- The API does not support generic shortlinks (
chatg.pt) at this time.
Was this page helpful?