curl --request PUT \
--url https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"channelId": "1200000000000000002"
}
'import requests
url = "https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel"
payload = { "channelId": "1200000000000000002" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({channelId: '1200000000000000002'})
};
fetch('https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel', 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://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => '1200000000000000002'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel"
payload := strings.NewReader("{\n \"channelId\": \"1200000000000000002\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"1200000000000000002\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"1200000000000000002\"\n}"
response = http.request(request)
puts response.read_body{
"programId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creatorId": "<string>",
"channelId": "<string>",
"channelName": "<string>"
}Link a Discord channel to a creator
Make a Discord text channel that you created the creator’s space on this program’s Discord server. Launchpoint then sends that creator’s drafts and notices there.
Use this when your own flow creates each creator’s channel and creator channel creation is turned off in the program’s Discord settings. It replaces the creator’s earlier space for this program; it does not delete that space.
The channel must be a text or announcement channel in the program’s server, and the Launchpoint bot must be able to see it and post in it. A thread is not accepted. This route does not give the creator access to the channel.
curl --request PUT \
--url https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"channelId": "1200000000000000002"
}
'import requests
url = "https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel"
payload = { "channelId": "1200000000000000002" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({channelId: '1200000000000000002'})
};
fetch('https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel', 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://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => '1200000000000000002'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel"
payload := strings.NewReader("{\n \"channelId\": \"1200000000000000002\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"1200000000000000002\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.launchpointhq.com/api/v1/programs/{id}/creators/{creatorId}/discord-channel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"1200000000000000002\"\n}"
response = http.request(request)
puts response.read_body{
"programId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creatorId": "<string>",
"channelId": "<string>",
"channelName": "<string>"
}Authorizations
API key created in Dashboard → Settings → Developer
Path Parameters
The program id
The creator id from GET /creators
Query Parameters
Choose the data scope. company (default) limits results to the API key company's data. agency includes the parent agency and its linked brands. scope=agency requires a parent agency key; other keys receive 403.
company, agency Body
The Discord text channel id
"1200000000000000002"