List polls
curl --request GET \
--url https://api.rallly.co/v1/polls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rallly.co/v1/polls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rallly.co/v1/polls', 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.rallly.co/v1/polls",
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://api.rallly.co/v1/polls"
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://api.rallly.co/v1/polls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rallly.co/v1/polls")
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{
"data": [
{
"id": "Xk3pQ9vLm2Ab",
"title": "Team sync",
"description": "Pick a time that works for everyone",
"location": "Zoom",
"timeZone": "Europe/London",
"status": "open",
"kind": "time",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2025-01-12T08:30:00.000Z",
"organizer": {
"id": "cm3f7d1qa0000t2k9c6b8h4jr",
"name": "John Doe",
"email": "organizer@example.com",
"image": "https://cdn.rallly.co/avatars/cm3f7d1qa0000t2k9c6b8h4jr.jpg"
},
"requireEmail": false,
"hideParticipants": false,
"hideScores": false,
"disableComments": true,
"allowTentativeVotes": true,
"participantCount": 3,
"options": [
{
"id": "cm5h8x2k40000q9l4f7e2d3an",
"date": "2025-01-15"
}
],
"adminUrl": "https://app.rallly.co/poll/Xk3pQ9vLm2Ab",
"inviteUrl": "https://rallly.co/invite/Xk3pQ9vLm2Ab"
}
],
"nextCursor": "Xk3pQ9vLm2Ab"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}Polls
List polls
Lists the polls in the space associated with the API key, sorted by creation date (newest first).
Use the status query parameter to only return polls in a given state — for example status=open to sweep polls that are still collecting responses. Results are paginated with a cursor: pass the nextCursor value from the previous response to fetch the next page.
GET
/
v1
/
polls
List polls
curl --request GET \
--url https://api.rallly.co/v1/polls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rallly.co/v1/polls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rallly.co/v1/polls', 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.rallly.co/v1/polls",
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://api.rallly.co/v1/polls"
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://api.rallly.co/v1/polls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rallly.co/v1/polls")
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{
"data": [
{
"id": "Xk3pQ9vLm2Ab",
"title": "Team sync",
"description": "Pick a time that works for everyone",
"location": "Zoom",
"timeZone": "Europe/London",
"status": "open",
"kind": "time",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2025-01-12T08:30:00.000Z",
"organizer": {
"id": "cm3f7d1qa0000t2k9c6b8h4jr",
"name": "John Doe",
"email": "organizer@example.com",
"image": "https://cdn.rallly.co/avatars/cm3f7d1qa0000t2k9c6b8h4jr.jpg"
},
"requireEmail": false,
"hideParticipants": false,
"hideScores": false,
"disableComments": true,
"allowTentativeVotes": true,
"participantCount": 3,
"options": [
{
"id": "cm5h8x2k40000q9l4f7e2d3an",
"date": "2025-01-15"
}
],
"adminUrl": "https://app.rallly.co/poll/Xk3pQ9vLm2Ab",
"inviteUrl": "https://rallly.co/invite/Xk3pQ9vLm2Ab"
}
],
"nextCursor": "Xk3pQ9vLm2Ab"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "title: Invalid input: expected string, received undefined"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter polls by status. Omit to include all statuses.
Available options:
open, closed, scheduled, canceled Example:
"open"
Cursor for pagination. Pass the nextCursor value from the previous response to fetch the next page.
Example:
"Xk3pQ9vLm2Ab"
Number of polls to return per page (1-100).
Required range:
1 <= x <= 100Example:
20
Was this page helpful?