curl --request GET \
--url https://api.revinel.com/v1/workspaces/{workspaceId}/ads/servingimport requests
url = "https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving', 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://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ads": [
{
"id": "<string>",
"name": "<string>",
"websiteUrl": "<string>",
"faviconUrl": "<string>",
"weight": 123,
"meta": {}
}
]
}{
"defined": true,
"code": "CONFLICT_FIELD",
"status": 409,
"message": "CONFLICT_FIELD",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}{
"defined": true,
"code": "INPUT_VALIDATION_FAILED",
"status": 422,
"message": "INPUT_VALIDATION_FAILED",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}Fetch ads currently serving for a workspace
curl --request GET \
--url https://api.revinel.com/v1/workspaces/{workspaceId}/ads/servingimport requests
url = "https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving', 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://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revinel.com/v1/workspaces/{workspaceId}/ads/serving")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ads": [
{
"id": "<string>",
"name": "<string>",
"websiteUrl": "<string>",
"faviconUrl": "<string>",
"weight": 123,
"meta": {}
}
]
}{
"defined": true,
"code": "CONFLICT_FIELD",
"status": 409,
"message": "CONFLICT_FIELD",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}{
"defined": true,
"code": "INPUT_VALIDATION_FAILED",
"status": 422,
"message": "INPUT_VALIDATION_FAILED",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}Path Parameters
Workspace ID to serve ads for.
Query Parameters
Tier-weight range filter for placement targeting, e.g. weight[gte]=2.5 (premium), weight[lt]=2.5 (regular), or a band weight[gte]=2.5&weight[lt]=5.
Show child attributes
Show child attributes
Only serve ads from this tier, or any tier in a set — a fixed slot backed by specific tiers (deterministic complement to weight). Single id or comma-joined set.
Ad IDs to exclude for dedupe across slots. Comma-joined string or array.
Number of distinct ads to return. Clamped to 1–50 (out-of-range values are clamped, not rejected).
Response
OK
Ads eligible to serve now, in rotation order; empty when none are eligible. Order is stable for identical parameters within a 60-second window and re-rolls on the next window, so clients don't need their own shuffle stabilization.
Show child attributes
Show child attributes