cURL
curl --request POST \
--url https://api.flipsuite.xyz/v1/community/tipping/tips \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"channelId": "1234567890123456789",
"recipientId": "1234567890123456789",
"comment": "Good job!",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
'import requests
url = "https://api.flipsuite.xyz/v1/community/tipping/tips"
payload = {
"channelId": "1234567890123456789",
"recipientId": "1234567890123456789",
"comment": "Good job!",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
channelId: '1234567890123456789',
recipientId: '1234567890123456789',
comment: 'Good job!',
item: {
type: 'TOKEN',
chain: 'Polygon',
tokenAddress: '0x162539172b53e9a93b7d98fb6c41682de558a320',
amount: 1000
}
})
};
fetch('https://api.flipsuite.xyz/v1/community/tipping/tips', 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.flipsuite.xyz/v1/community/tipping/tips",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => '1234567890123456789',
'recipientId' => '1234567890123456789',
'comment' => 'Good job!',
'item' => [
'type' => 'TOKEN',
'chain' => 'Polygon',
'tokenAddress' => '0x162539172b53e9a93b7d98fb6c41682de558a320',
'amount' => 1000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flipsuite.xyz/v1/community/tipping/tips"
payload := strings.NewReader("{\n \"channelId\": \"1234567890123456789\",\n \"recipientId\": \"1234567890123456789\",\n \"comment\": \"Good job!\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
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.flipsuite.xyz/v1/community/tipping/tips")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"1234567890123456789\",\n \"recipientId\": \"1234567890123456789\",\n \"comment\": \"Good job!\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flipsuite.xyz/v1/community/tipping/tips")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"1234567890123456789\",\n \"recipientId\": \"1234567890123456789\",\n \"comment\": \"Good job!\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}"
response = http.request(request)
puts response.read_bodyTips
Send Tip
Send automated tips to Discord users
POST
/
v1
/
community
/
tipping
/
tips
cURL
curl --request POST \
--url https://api.flipsuite.xyz/v1/community/tipping/tips \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"channelId": "1234567890123456789",
"recipientId": "1234567890123456789",
"comment": "Good job!",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
'import requests
url = "https://api.flipsuite.xyz/v1/community/tipping/tips"
payload = {
"channelId": "1234567890123456789",
"recipientId": "1234567890123456789",
"comment": "Good job!",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
channelId: '1234567890123456789',
recipientId: '1234567890123456789',
comment: 'Good job!',
item: {
type: 'TOKEN',
chain: 'Polygon',
tokenAddress: '0x162539172b53e9a93b7d98fb6c41682de558a320',
amount: 1000
}
})
};
fetch('https://api.flipsuite.xyz/v1/community/tipping/tips', 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.flipsuite.xyz/v1/community/tipping/tips",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => '1234567890123456789',
'recipientId' => '1234567890123456789',
'comment' => 'Good job!',
'item' => [
'type' => 'TOKEN',
'chain' => 'Polygon',
'tokenAddress' => '0x162539172b53e9a93b7d98fb6c41682de558a320',
'amount' => 1000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flipsuite.xyz/v1/community/tipping/tips"
payload := strings.NewReader("{\n \"channelId\": \"1234567890123456789\",\n \"recipientId\": \"1234567890123456789\",\n \"comment\": \"Good job!\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
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.flipsuite.xyz/v1/community/tipping/tips")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"1234567890123456789\",\n \"recipientId\": \"1234567890123456789\",\n \"comment\": \"Good job!\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flipsuite.xyz/v1/community/tipping/tips")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"1234567890123456789\",\n \"recipientId\": \"1234567890123456789\",\n \"comment\": \"Good job!\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}"
response = http.request(request)
puts response.read_bodyHeaders
Your community API key
Body
application/json
ID of a Discord channel in your server where the tip should be sent.
Pattern:
^\d+$ID of a Discord user in your server that should receive the tip.
Pattern:
^\d+$Points, tokens, or NFT to tip.
- Points
- Token
- NFT
Show child attributes
Show child attributes
Note that will be shown on the "Tip received" message.
Maximum string length:
256Whether to hide the public "Tip received" channel notification after sending the tip.
Response
201
Tip has been sent successfully
⌘I