Audience Quotas
Retrieve a project's quota
Retrieve the quota configuration and progress. A project with no quota returns 200 with version v2 and an empty groups array. version discriminates a legacy v1 body when present.
GET
/
v1
/
projects
/
{projectId}
/
quotas
Retrieve a project's quota
curl --request GET \
--url https://api-staging.respondent.io/v1/projects/{projectId}/quotas \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-secret: <x-api-secret>'import requests
url = "https://api-staging.respondent.io/v1/projects/{projectId}/quotas"
headers = {
"x-api-key": "<x-api-key>",
"x-api-secret": "<x-api-secret>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-api-secret': '<x-api-secret>'}
};
fetch('https://api-staging.respondent.io/v1/projects/{projectId}/quotas', 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-staging.respondent.io/v1/projects/{projectId}/quotas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>",
"x-api-secret: <x-api-secret>"
],
]);
$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-staging.respondent.io/v1/projects/{projectId}/quotas"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-api-secret", "<x-api-secret>")
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-staging.respondent.io/v1/projects/{projectId}/quotas")
.header("x-api-key", "<x-api-key>")
.header("x-api-secret", "<x-api-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.respondent.io/v1/projects/{projectId}/quotas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-api-secret"] = '<x-api-secret>'
response = http.request(request)
puts response.read_body{
"projectId": "<string>",
"version": "v2",
"revision": 123,
"filled": true,
"closed": true,
"groups": [
{
"id": "<string>",
"name": "<string>",
"segments": [
{
"target": {
"op": "min",
"value": 1
},
"progress": {
"pending": 123,
"qualified": 123,
"invited": 123,
"attended": 123,
"externalFills": 123
},
"filled": true,
"closed": true,
"overTarget": true,
"id": "<string>",
"name": "<string>",
"rule": {
"kind": "group",
"connector": "AND",
"children": [
{
"kind": "condition",
"condition": {
"source": "attribute",
"attribute": "gender",
"op": "in",
"values": [
"<string>"
]
}
}
]
}
}
],
"noMatch": {
"target": {
"op": "min",
"value": 1
},
"progress": {
"pending": 123,
"qualified": 123,
"invited": 123,
"attended": 123,
"externalFills": 123
},
"filled": true,
"closed": true,
"overTarget": true
},
"filled": true,
"closed": true,
"minProtected": true
}
],
"id": "<string>",
"source": "app",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Path Parameters
Response
200 - application/json
- Option 1
- Option 2
Available options:
v2 Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
Hide child attributes
Hide child attributes
Available options:
group Available options:
AND, OR Hide child attributes
Hide child attributes
Available options:
condition - Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Hide child attributes
Hide child attributes
Available options:
attribute Available options:
gender, ethnicity, country, industry, companySize, seniority, education Available options:
in, notIn Hide child attributes
Hide child attributes
Available options:
app, api, agent, migration Last modified on September 15, 2026
Was this page helpful?
⌘I
Retrieve a project's quota
curl --request GET \
--url https://api-staging.respondent.io/v1/projects/{projectId}/quotas \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-secret: <x-api-secret>'import requests
url = "https://api-staging.respondent.io/v1/projects/{projectId}/quotas"
headers = {
"x-api-key": "<x-api-key>",
"x-api-secret": "<x-api-secret>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-api-secret': '<x-api-secret>'}
};
fetch('https://api-staging.respondent.io/v1/projects/{projectId}/quotas', 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-staging.respondent.io/v1/projects/{projectId}/quotas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>",
"x-api-secret: <x-api-secret>"
],
]);
$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-staging.respondent.io/v1/projects/{projectId}/quotas"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-api-secret", "<x-api-secret>")
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-staging.respondent.io/v1/projects/{projectId}/quotas")
.header("x-api-key", "<x-api-key>")
.header("x-api-secret", "<x-api-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.respondent.io/v1/projects/{projectId}/quotas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-api-secret"] = '<x-api-secret>'
response = http.request(request)
puts response.read_body{
"projectId": "<string>",
"version": "v2",
"revision": 123,
"filled": true,
"closed": true,
"groups": [
{
"id": "<string>",
"name": "<string>",
"segments": [
{
"target": {
"op": "min",
"value": 1
},
"progress": {
"pending": 123,
"qualified": 123,
"invited": 123,
"attended": 123,
"externalFills": 123
},
"filled": true,
"closed": true,
"overTarget": true,
"id": "<string>",
"name": "<string>",
"rule": {
"kind": "group",
"connector": "AND",
"children": [
{
"kind": "condition",
"condition": {
"source": "attribute",
"attribute": "gender",
"op": "in",
"values": [
"<string>"
]
}
}
]
}
}
],
"noMatch": {
"target": {
"op": "min",
"value": 1
},
"progress": {
"pending": 123,
"qualified": 123,
"invited": 123,
"attended": 123,
"externalFills": 123
},
"filled": true,
"closed": true,
"overTarget": true
},
"filled": true,
"closed": true,
"minProtected": true
}
],
"id": "<string>",
"source": "app",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}