Get Discord Integration Details
curl --request GET \
--url https://app.papelship.com/api/qpapel/v1/discord-integrations/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.papelship.com/api/qpapel/v1/discord-integrations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.papelship.com/api/qpapel/v1/discord-integrations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.papelship.com/api/qpapel/v1/discord-integrations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <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://app.papelship.com/api/qpapel/v1/discord-integrations/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"integration": {
"id": 2,
"guild_id": "1234567890123456",
"guild_name": "Developer Community",
"is_active": 1,
"log_channel_id": "9876543210987654",
"log_dm_enabled": 1,
"owner_username": "dev_admin",
"products": [
{
"id": 4,
"name": "Premium Access"
}
],
"permissions": [
{
"id": 1,
"subject_type": "ROLE",
"subject_id": "888888888888",
"product_id": null,
"can_create_key": 1,
"can_delete_key": 0,
"can_ban_key": 1,
"can_freeze_key": 0,
"can_reset_hwid": 1
}
]
}
}{
"success": false,
"error": "Unauthorized access. Valid API key required."
}{
"success": false,
"error": "Resource not found"
}Discord Integrations
Get Discord Integration Details
Retrieve complete configuration, attached products, and role permissions for a Discord guild connection.
GET
/
discord-integrations
/
{id}
Get Discord Integration Details
curl --request GET \
--url https://app.papelship.com/api/qpapel/v1/discord-integrations/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.papelship.com/api/qpapel/v1/discord-integrations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.papelship.com/api/qpapel/v1/discord-integrations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.papelship.com/api/qpapel/v1/discord-integrations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <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://app.papelship.com/api/qpapel/v1/discord-integrations/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"integration": {
"id": 2,
"guild_id": "1234567890123456",
"guild_name": "Developer Community",
"is_active": 1,
"log_channel_id": "9876543210987654",
"log_dm_enabled": 1,
"owner_username": "dev_admin",
"products": [
{
"id": 4,
"name": "Premium Access"
}
],
"permissions": [
{
"id": 1,
"subject_type": "ROLE",
"subject_id": "888888888888",
"product_id": null,
"can_create_key": 1,
"can_delete_key": 0,
"can_ban_key": 1,
"can_freeze_key": 0,
"can_reset_hwid": 1
}
]
}
}{
"success": false,
"error": "Unauthorized access. Valid API key required."
}{
"success": false,
"error": "Resource not found"
}Authorizations
BearerAuthApiKeyHeaderApiKeyHeaderLegacy
Standard HTTP Bearer token authentication header (e.g. Authorization: Bearer pk_live_...).
Path Parameters
Unique database ID of the integration.