Go to API Tokens in your dashboard to create a new token with the permissions you need.
curl -X GET "/api/v1/events" \
-H "Authorization: Bearer pol_your_token_here"All API requests require authentication via Bearer token in the Authorization header. Tokens can have different permissions: read,write,delete,admin
success: trueerror/eventspage(number)- Page number (default: 1)limit(number)- Items per page (default: 20, max: 100)status(string)- Filter by status: active, ended, allsearch(string)- Search by event namecurl -X GET "/api/v1/events?status=active&limit=10" \
-H "Authorization: Bearer pol_your_token_here"{
"success": true,
"data": {
"events": [
{
"id": "uuid",
"name": "My Event",
"event_code": "ABC123",
"numeric_code": "123456",
"is_active": true,
"created_at": "2025-01-01T00:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"totalPages": 1
}
}
}/eventsname(string)description(string)- Event descriptioncurl -X POST /api/v1/events \
-H "Authorization: Bearer pol_your_token_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Team Meeting Q1",
"description": "Quarterly team sync"
}'{
"success": true,
"data": {
"id": "uuid",
"name": "Team Meeting Q1",
"description": "Quarterly team sync",
"event_code": "XYZ789",
"numeric_code": "789012",
"is_active": true,
"created_at": "2025-01-01T00:00:00Z"
}
}/events/{eventId}curl -X GET /api/v1/events/{eventId} \
-H "Authorization: Bearer pol_your_token_here"/events/{eventId}name(string)- Event namedescription(string)- Event descriptionis_active(boolean)- Event active statuscurl -X PATCH /api/v1/events/{eventId} \
-H "Authorization: Bearer pol_your_token_here" \
-H "Content-Type: application/json" \
-d '{ "is_active": false }'/events/{eventId}curl -X DELETE /api/v1/events/{eventId} \
-H "Authorization: Bearer pol_your_token_here"Create your free account and start building with the Pollify API
Get Started for Free