Get eligible in-app messages
curl --request GET \
--url https://galinum.com/api/v1/messages \
--header 'Authorization: Bearer <token>'import requests
url = "https://galinum.com/api/v1/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://galinum.com/api/v1/messages', 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://galinum.com/api/v1/messages",
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://galinum.com/api/v1/messages"
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))
}HttpResponse<String> response = Unirest.get("https://galinum.com/api/v1/messages")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://galinum.com/api/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"messages": [
{
"deliveryId": "del_55911a77-b793-4be8-992b-25b706520597",
"campaignId": "cmp_demo_welcome",
"variantId": "var_demo_welcome_a",
"pages": [
"/settings/*"
],
"content": {
"presentation": "toast",
"title": "Welcome to Galinum 👋",
"body": "Here's how to get started.",
"cta": {
"label": "Learn more",
"destination": {
"kind": "website",
"url": "https://app.example.com/exports"
}
},
"media": {
"url": "https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png",
"alt": "Screenshot of the new analytics dashboard",
"decorative": false
}
}
}
],
"userId": "<string>",
"entryId": "<string>",
"requestId": "<string>",
"evaluatedAt": 123
}{
"error": "userId is required"
}{
"error": "Unauthorized"
}{
"error": "Too many requests"
}{
"error": "Could not identify user"
}{
"error": "<string>"
}SDK endpoints
Get eligible in-app messages
Fresh non-cacheable entry decision. Correlation is echoed. Eligibility and completion serialize transactionally. No cache grants display authority.
GET
/
api
/
v1
/
messages
Get eligible in-app messages
curl --request GET \
--url https://galinum.com/api/v1/messages \
--header 'Authorization: Bearer <token>'import requests
url = "https://galinum.com/api/v1/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://galinum.com/api/v1/messages', 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://galinum.com/api/v1/messages",
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://galinum.com/api/v1/messages"
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))
}HttpResponse<String> response = Unirest.get("https://galinum.com/api/v1/messages")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://galinum.com/api/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"messages": [
{
"deliveryId": "del_55911a77-b793-4be8-992b-25b706520597",
"campaignId": "cmp_demo_welcome",
"variantId": "var_demo_welcome_a",
"pages": [
"/settings/*"
],
"content": {
"presentation": "toast",
"title": "Welcome to Galinum 👋",
"body": "Here's how to get started.",
"cta": {
"label": "Learn more",
"destination": {
"kind": "website",
"url": "https://app.example.com/exports"
}
},
"media": {
"url": "https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png",
"alt": "Screenshot of the new analytics dashboard",
"decorative": false
}
}
}
],
"userId": "<string>",
"entryId": "<string>",
"requestId": "<string>",
"evaluatedAt": 123
}{
"error": "userId is required"
}{
"error": "Unauthorized"
}{
"error": "Too many requests"
}{
"error": "Could not identify user"
}{
"error": "<string>"
}Authorizations
Your project's publishable key (pk_pub_…). Safe to expose in the browser — it identifies the project and is rate-limited, not secret.
Query Parameters
Required string length:
1 - 256Required string length:
1 - 256Required string length:
1 - 256Maximum string length:
2048Pattern:
^/Response
The user's eligible messages (may be empty).