Discohook
  1. Share Links
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
  1. Share Links

Get Share Link

Production
https://discohook.app/api/v1
Production
https://discohook.app/api/v1
GET
https://discohook.app/api/v1
/share/{id}
Get message data for a share ID. Keep in mind that share IDs may be reused after they have expired.

Request

Path Params
id
string 
required

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://discohook.app/api/v1/share/'

Responses

🟢200Success
application/json
Body
data
object (QueryData) 
required
version
enum<string> 
optional
Allowed value:
d2
backup_id
string 
optional
messages
array[object (QueryDataMessage) {3}] 
required
targets
array[object (QueryDataTarget) {2}] 
required
expires
string <date-time>
required
When the share link expires
Example
{
  "data": {
    "version": "d2",
    "backup_id": "string",
    "messages": [
      {
        "_id": "string",
        "data": {
          "username": "string",
          "avatar_url": "string",
          "author": {
            "name": "string",
            "icon_url": "string",
            "badge": "string"
          },
          "content": "string",
          "embeds": [
            {
              "title": "string",
              "description": "string",
              "color": 0,
              "author": {
                "name": "string",
                "url": "string",
                "icon_url": "string"
              },
              "fields": [
                {
                  "name": "string",
                  "value": "string",
                  "inline": true
                }
              ],
              "footer": {
                "text": "string",
                "icon_url": "string"
              },
              "timestamp": "2019-08-24T14:15:22Z",
              "image": {
                "url": "string"
              },
              "thumbnail": {
                "url": "string"
              },
              "provider": {
                "name": "string",
                "url": "string"
              }
            }
          ],
          "attachments": [
            "string"
          ],
          "webhook_id": "string",
          "components": [
            {
              "type": 1,
              "components": [
                {
                  "style": "1",
                  "custom_id": "string"
                }
              ]
            }
          ],
          "flags": 0
        },
        "reference": "string"
      }
    ],
    "targets": [
      {
        "type": 1,
        "url": "http://example.com"
      }
    ]
  },
  "expires": "2019-08-24T14:15:22Z"
}
🟠404Record Not Found
Previous
Create Share Link
Next
Unfurl URL Embed
Built with