API Reference
TicketNests API
A JSON REST API for events, paid voting, and registration forms. All endpoints are scoped to resources owned by the account behind the API key.
https://ticketnests.com/api/v1Authentication
Send your secret key as a Bearer token. Publishable keys are only for the browser SDK and hosted mobile flows.
curl https://ticketnests.com/api/v1/events \
-H "Authorization: Bearer tn_test_sk_your_secret_key"Events
Read your event catalogue and public ticket inventory.
/api/v1/eventsList events
Returns events owned by the integration, including their public ticket types.
/api/v1/events/:id-or-slugRetrieve an event
Returns one owned event and its public ticket types.
Voting
Build voting directories and initialize server-priced vote orders.
/api/v1/voting/events/:id-or-slugRetrieve voting data
Returns event details, categories, and contestants.
/api/v1/voting/events/:id-or-slug/resultsRetrieve results
Returns total votes and contestants grouped by category.
/api/v1/voting/events/:id-or-slug/checkoutInitialize vote checkout
Validates vote lines, calculates the amount on the server, and returns a hosted payment URL in live mode.
curl -X POST https://ticketnests.com/api/v1/voting/events/awards-2026/checkout \
-H "Authorization: Bearer tn_test_sk_..." \
-H "Content-Type: application/json" \
-d '{
"email": "voter@example.com",
"gateway": "paystack",
"votes": [{ "contestantId": "...", "votes": 5 }]
}'Forms
Read form schemas, submit validated responses, and retrieve submissions.
/api/v1/formsList forms
Returns forms owned by the integration.
/api/v1/forms/:id-or-slugRetrieve a form
Returns the form schema, fields, settings, and publication status.
/api/v1/forms/:id-or-slug/responsesList responses
Returns paginated responses. Use page and limit query parameters.
/api/v1/forms/:id-or-slug/responsesSubmit a response
Validates required fields and one-entry-per-email settings before storing a live response.
curl -X POST https://ticketnests.com/api/v1/forms/speaker-application/responses \
-H "Authorization: Bearer tn_test_sk_..." \
-H "Content-Type: application/json" \
-d '{
"data": {
"full-name": "Ada Okafor",
"email": "ada@example.com"
}
}'Errors
Non-2xx responses contain a stable machine-readable code and a human-readable message.
{
"error": {
"code": "invalid_api_key",
"message": "Provide a valid secret API key in the Authorization header"
}
}