Create a program invite link
curl --request POST \
--url https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"expiresInDays": 14,
"maxUses": 50
}
'import requests
url = "https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite"
payload = {
"expiresInDays": 14,
"maxUses": 50
}
headers = {
"x-api-key": "<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': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({expiresInDays: 14, maxUses: 50})
};
fetch('https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite', 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}/invite",
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([
'expiresInDays' => 14,
'maxUses' => 50
]),
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}/invite"
payload := strings.NewReader("{\n \"expiresInDays\": 14,\n \"maxUses\": 50\n}")
req, _ := http.NewRequest("POST", 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.post("https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expiresInDays\": 14,\n \"maxUses\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expiresInDays\": 14,\n \"maxUses\": 50\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"link": "<string>",
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"maxUses": 123,
"programId": "<string>",
"programName": "<string>"
}Programs
Create a program invite link
Create a shareable invite link for a program.
Creators can join the program directly through this link.
POST
/
programs
/
{id}
/
invite
Create a program invite link
curl --request POST \
--url https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"expiresInDays": 14,
"maxUses": 50
}
'import requests
url = "https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite"
payload = {
"expiresInDays": 14,
"maxUses": 50
}
headers = {
"x-api-key": "<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': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({expiresInDays: 14, maxUses: 50})
};
fetch('https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite', 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}/invite",
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([
'expiresInDays' => 14,
'maxUses' => 50
]),
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}/invite"
payload := strings.NewReader("{\n \"expiresInDays\": 14,\n \"maxUses\": 50\n}")
req, _ := http.NewRequest("POST", 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.post("https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expiresInDays\": 14,\n \"maxUses\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.launchpointhq.com/api/v1/programs/{id}/invite")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expiresInDays\": 14,\n \"maxUses\": 50\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"link": "<string>",
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"maxUses": 123,
"programId": "<string>",
"programName": "<string>"
}Authorizations
API key created in Dashboard → Settings → Developer
Path Parameters
ID of the program
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.
Available options:
company, agency Body
application/json