Discohook
    Discohook
    • Discohook API
    • Reference
    • Discohook CDN
    • Using Discohook as an external message designer or previewer
    • Changelog
    • Share Links
      • Create Share Link
        POST
      • Get Share Link
        GET
    • Link Preview
      • Unfurl URL Embed
        GET
    • GitHub
      • Execute GitHub-Compatible Webhook in Forum Channel
        POST

    Reference

    Resources#

    All resources have a snowflake ID with an epoch of January 1, 2024. This is with the "exception" of share links, which do have a snowflake ID, but it is not exposed to clients (and we instead refer to the short alphanumeric code as the ID). This may change in the future for clarity.

    Rate Limits#

    Upon encountering a rate limit, you will receive a 429 response with the following headers:
    HeaderDescription
    Retry-AfterSeconds until you should try again
    X-RateLimit-LimitHow many requests can be made within the bucket that you are nearest to overflowing
    X-RateLimit-RemainingHow many requests are remaining in this bucket
    X-RateLimit-NameThe name of this bucket
    Buckets are scoped by the route and HTTP method. We have names for each API route that can be found below (these are what we use to define the buckets). There is also a global bucket that ticks up along with every other bucket. API routes with no bucket will still be subject to the global bucket for the method used.

    Buckets#

    NameRoutes
    share/share, /share/:id
    Modified at 2024-09-12 02:09:41
    Previous
    Discohook API
    Next
    Discohook CDN
    Built with