List all events
curl --request GET \
--url https://{workspace}.attendu.com/api/v1/events \
--header 'x-api-key: <api-key>'import requests
url = "https://{workspace}.attendu.com/api/v1/events"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://{workspace}.attendu.com/api/v1/events', 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://{workspace}.attendu.com/api/v1/events",
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: <api-key>"
],
]);
$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://{workspace}.attendu.com/api/v1/events"
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))
}HttpResponse<String> response = Unirest.get("https://{workspace}.attendu.com/api/v1/events")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{workspace}.attendu.com/api/v1/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"_id": "<string>",
"general": {
"title": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"timezone": "Europe/London",
"location": {
"placeName": "<string>",
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"country": "<string>"
},
"langs": [
"en",
"cs"
],
"ticketing": {
"isEnabled": false,
"currency": "czk",
"taxRate": {
"isEnabled": true,
"percentage": 21
},
"types": [
{
"id": "<string>",
"_cs": {
"name": "<string>",
"description": "<string>"
},
"_en": {
"name": "<string>",
"description": "<string>"
},
"isFree": true,
"priceExcludingTax": 0,
"price": 0,
"hasRestrictedVisibility": true,
"visibleOnlyTo": [
"<string>"
],
"maxCapacity": 123
}
],
"hasPromoCodesEnabled": true,
"promoCodes": [
{
"id": "<string>",
"name": "<string>",
"amount": 123,
"code": "<string>",
"maxUses": 123,
"usage": [
{
"buyerEmail": "<string>",
"usedAt": "2023-11-07T05:31:56Z",
"stripePaymentIntent": "<string>"
}
]
}
]
}
},
"guestlist": {
"properties": [
{
"id": "yN9hzaCj",
"type": "select",
"_cs": {
"name": "Typ vstupenky"
},
"_en": {
"name": "Ticket type"
},
"options": [
{
"id": "1QLXYBlw",
"_cs": {
"value": "VIP"
},
"_en": {
"value": "VIP"
}
},
{
"id": "PCx9ruxP",
"_cs": {
"value": "Standard"
},
"_en": {
"value": "Standard"
}
}
]
},
{
"id": "X62TkjiV",
"type": "text",
"_cs": {
"name": "Poznámka"
},
"_en": {
"name": "Note"
},
"options": []
},
{
"id": "Ybb48GO7",
"type": "multiSelect",
"_cs": {
"name": "Zájmy"
},
"_en": {
"name": "Interests"
},
"options": [
{
"id": "7bR7m2au",
"_cs": {
"value": "Technologie"
},
"_en": {
"value": "Technology"
}
},
{
"id": "BdwYyYmi",
"_cs": {
"value": "Byznys"
},
"_en": {
"value": "Business"
}
},
{
"id": "4igVHOnN",
"_cs": {
"value": "Marketing"
},
"_en": {
"value": "Marketing"
}
}
]
}
]
},
"pages": {
"activePage": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"error": 401,
"message": "Invalid API key."
}Events
List all events
Retrieves accessible events with optional time-based filtering.
GET
/
v1
/
events
List all events
curl --request GET \
--url https://{workspace}.attendu.com/api/v1/events \
--header 'x-api-key: <api-key>'import requests
url = "https://{workspace}.attendu.com/api/v1/events"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://{workspace}.attendu.com/api/v1/events', 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://{workspace}.attendu.com/api/v1/events",
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: <api-key>"
],
]);
$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://{workspace}.attendu.com/api/v1/events"
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))
}HttpResponse<String> response = Unirest.get("https://{workspace}.attendu.com/api/v1/events")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{workspace}.attendu.com/api/v1/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"_id": "<string>",
"general": {
"title": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"timezone": "Europe/London",
"location": {
"placeName": "<string>",
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"country": "<string>"
},
"langs": [
"en",
"cs"
],
"ticketing": {
"isEnabled": false,
"currency": "czk",
"taxRate": {
"isEnabled": true,
"percentage": 21
},
"types": [
{
"id": "<string>",
"_cs": {
"name": "<string>",
"description": "<string>"
},
"_en": {
"name": "<string>",
"description": "<string>"
},
"isFree": true,
"priceExcludingTax": 0,
"price": 0,
"hasRestrictedVisibility": true,
"visibleOnlyTo": [
"<string>"
],
"maxCapacity": 123
}
],
"hasPromoCodesEnabled": true,
"promoCodes": [
{
"id": "<string>",
"name": "<string>",
"amount": 123,
"code": "<string>",
"maxUses": 123,
"usage": [
{
"buyerEmail": "<string>",
"usedAt": "2023-11-07T05:31:56Z",
"stripePaymentIntent": "<string>"
}
]
}
]
}
},
"guestlist": {
"properties": [
{
"id": "yN9hzaCj",
"type": "select",
"_cs": {
"name": "Typ vstupenky"
},
"_en": {
"name": "Ticket type"
},
"options": [
{
"id": "1QLXYBlw",
"_cs": {
"value": "VIP"
},
"_en": {
"value": "VIP"
}
},
{
"id": "PCx9ruxP",
"_cs": {
"value": "Standard"
},
"_en": {
"value": "Standard"
}
}
]
},
{
"id": "X62TkjiV",
"type": "text",
"_cs": {
"name": "Poznámka"
},
"_en": {
"name": "Note"
},
"options": []
},
{
"id": "Ybb48GO7",
"type": "multiSelect",
"_cs": {
"name": "Zájmy"
},
"_en": {
"name": "Interests"
},
"options": [
{
"id": "7bR7m2au",
"_cs": {
"value": "Technologie"
},
"_en": {
"value": "Technology"
}
},
{
"id": "BdwYyYmi",
"_cs": {
"value": "Byznys"
},
"_en": {
"value": "Business"
}
},
{
"id": "4igVHOnN",
"_cs": {
"value": "Marketing"
},
"_en": {
"value": "Marketing"
}
}
]
}
]
},
"pages": {
"activePage": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"error": 401,
"message": "Invalid API key."
}⌘I