share.discohook.app
, migrate ASAP; it will stop being hosted soon!300
creates a share link that expires in 5 minutes.{
"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"
}
]
},
"ttl": 604800
}
curl --location --request POST 'https://discohook.app/api/v1/share' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
]
},
"ttl": 604800
}'
id
is not guaranteed to never be used again, and so in the future may refer to different data{
"id": "7pSFyueh",
"url": "https://discohook.app/?share=7pSFyueh",
"expires": "2024-05-29T14:38:53.519Z"
}