Create user link
curl --request POST \
--url https://api.duckybot.xyz/links \
--header 'Roblox-Code: <roblox-code>' \
--header 'Token: <token>'import requests
url = "https://api.duckybot.xyz/links"
headers = {
"Token": "<token>",
"Roblox-Code": "<roblox-code>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Token: '<token>', 'Roblox-Code': '<roblox-code>'}};
fetch('https://api.duckybot.xyz/links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.duckybot.xyz/links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Roblox-Code: <roblox-code>",
"Token: <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.duckybot.xyz/links"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Token", "<token>")
req.Header.Add("Roblox-Code", "<roblox-code>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.duckybot.xyz/links")
.header("Token", "<token>")
.header("Roblox-Code", "<roblox-code>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Token"] = '<token>'
request["Roblox-Code"] = '<roblox-code>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Discord user '@troptopreal' successfully linked with Roblox user '@troptopreal'.",
"data": {
"discord": {
"username": "troptopreal",
"name": "Troptop",
"id": "598958193032560642",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png"
},
"roblox": {
"name": "troptopreal",
"displayName": "Troptop",
"id": 1038671897,
"avatar": "https://t4.rbxcdn.com/30DAY-AvatarHeadshot-7E3036777BDD02D485E0A0CCC240BDCC-Png",
"description": "colombiano ☕💖",
"profile": "https://roblox.com/users/1038671897/profile",
"hyperlink": "[troptopreal](<https://roblox.com/users/1038671897/profile>)",
"verified": false,
"banned": false,
"created": 1555162890.283
}
}
}
Data Endpoints
Create user link
Create a new link between a Discord and Roblox user.
POST
/
links
Create user link
curl --request POST \
--url https://api.duckybot.xyz/links \
--header 'Roblox-Code: <roblox-code>' \
--header 'Token: <token>'import requests
url = "https://api.duckybot.xyz/links"
headers = {
"Token": "<token>",
"Roblox-Code": "<roblox-code>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Token: '<token>', 'Roblox-Code': '<roblox-code>'}};
fetch('https://api.duckybot.xyz/links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.duckybot.xyz/links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Roblox-Code: <roblox-code>",
"Token: <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.duckybot.xyz/links"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Token", "<token>")
req.Header.Add("Roblox-Code", "<roblox-code>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.duckybot.xyz/links")
.header("Token", "<token>")
.header("Roblox-Code", "<roblox-code>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Token"] = '<token>'
request["Roblox-Code"] = '<roblox-code>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Discord user '@troptopreal' successfully linked with Roblox user '@troptopreal'.",
"data": {
"discord": {
"username": "troptopreal",
"name": "Troptop",
"id": "598958193032560642",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png"
},
"roblox": {
"name": "troptopreal",
"displayName": "Troptop",
"id": 1038671897,
"avatar": "https://t4.rbxcdn.com/30DAY-AvatarHeadshot-7E3036777BDD02D485E0A0CCC240BDCC-Png",
"description": "colombiano ☕💖",
"profile": "https://roblox.com/users/1038671897/profile",
"hyperlink": "[troptopreal](<https://roblox.com/users/1038671897/profile>)",
"verified": false,
"banned": false,
"created": 1555162890.283
}
}
}
{
"code": 200,
"message": "Discord user '@troptopreal' successfully linked with Roblox user '@troptopreal'.",
"data": {
"discord": {
"username": "troptopreal",
"name": "Troptop",
"id": "598958193032560642",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png"
},
"roblox": {
"name": "troptopreal",
"displayName": "Troptop",
"id": 1038671897,
"avatar": "https://t4.rbxcdn.com/30DAY-AvatarHeadshot-7E3036777BDD02D485E0A0CCC240BDCC-Png",
"description": "colombiano ☕💖",
"profile": "https://roblox.com/users/1038671897/profile",
"hyperlink": "[troptopreal](<https://roblox.com/users/1038671897/profile>)",
"verified": false,
"banned": false,
"created": 1555162890.283
}
}
}
Headers
string
required
The Ducky session token of the user.
string
required
The Roblox OAuth2 access code of the user.
Response Data
object
object
The Roblox player associated with this link.
Show properties
Show properties
string
The player’s username.
string
The player’s display name.
number
The player’s ID.
string
The player’s avatar URL.
string
The player’s description/bio.
string
A link to the player’s profile.
string
A hyperlink to the player’s profile, where the label is the player’s username.
boolean
Whether or not the player is verified on Roblox.
boolean
Whether or not the player is banned from Roblox.
number
An epoch timestamp (in seconds) representing when the player’s account was created.
⌘I