Releases
Preview release email recipients
Returns the list of subscribers who would receive this release email based on audience_tags. Call before publishing to see who will be notified.
Required API key scope: releases:view.
Preview release email recipients
Returns the list of subscribers who would receive this release email based on audience_tags. Call before publishing to see who will be notified.
Required API key scope: `releases:view`.
GET https://api.appgram.dev/api/v1/releases/{id}/recipients
curl --request GET \
--url 'https://api.appgram.dev/api/v1/releases/{id}/recipients' \
--header 'x-api-key: <api-key>'
Authentication: x-api-key (header)
200: OK
400: Bad Request
401: Unauthorized
403: Forbidden
404: Not FoundAuthorizations
x-api-key (header)requiredRequest examples show the credential location. Use a server-side key with the permissions required by this operation.
Path parameters
idstringpathrequiredResponses
200OK
400Bad Request
401Unauthorized
403Forbidden
404Not Found
curl --request GET \
--url 'https://api.appgram.dev/api/v1/releases/{id}/recipients' \
--header 'x-api-key: <api-key>'const response = await fetch("https://api.appgram.dev/api/v1/releases/{id}/recipients", {
method: "GET",
headers: {
"x-api-key": "<api-key>"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.text());
import requests
response = requests.request(
"GET",
"https://api.appgram.dev/api/v1/releases/{id}/recipients",
headers={"x-api-key": "<api-key>"},
timeout=30,
)
response.raise_for_status()
print(response.text)
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.appgram.dev/api/v1/releases/%7Bid%7D/recipients"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import Foundation
var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/releases/{id}/recipients")!)
request.httpMethod = "GET"
request.setValue("<api-key>", forHTTPHeaderField: "x-api-key")
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
// Requires OkHttp 4.x.
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
fun main() {
val request = Request.Builder()
.url("https://api.appgram.dev/api/v1/releases/{id}/recipients")
.method("GET", null)
.addHeader("x-api-key", "<api-key>")
.build()
OkHttpClient().newCall(request).execute().use { response ->
println(response.body?.string())
}
}
// Requires package:http in pubspec.yaml.
import 'package:http/http.dart' as http;
Future<void> main() async {
final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/releases/{id}/recipients"));
request.headers.addAll({
"x-api-key": "<api-key>",
});
final response = await request.send();
print(await response.stream.bytesToString());
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://api.appgram.dev/api/v1/releases/%7Bid%7D/recipients"),
Headers =
{
{ "x-api-key", "<api-key>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}{
"data": {
"audience_tags": [
"string"
],
"email_quota": {
"limit": 0,
"over_limit": true,
"plan": "string",
"remaining": 0,
"used": 0
},
"notify_channels": [
"string"
],
"recipients": [
{
"created_at": "1970-01-01T00:00:00.000Z",
"email": "string",
"id": "string",
"last_notified_at": "1970-01-01T00:00:00.000Z",
"name": "string",
"tags": []
}
],
"total": 0
},
"success": true
}