GET /api/v2/account/getCategories
Returns participant categories for an event. Can return all categories for an event, or a single category by its ID.
Authentication
Authorization: Bearer <your_api_key>
Endpoint
GET /api/v2/account/getCategories
Query Parameters
At least one of event_id or id must be provided.
|
Parameter |
Type |
Required |
Accepted Values / Format |
Description |
|---|---|---|---|---|
|
|
integer |
Required when |
Valid event ID |
Returns all categories for the event |
|
|
integer |
Required when |
Valid category ID |
Returns a single category by its ID |
Response
Success Response — list by event (HTTP 200)
{
"code": 200,
"errors": null,
"data": [
{ "id": 5, "name": "Visitor", "is_buyer": false },
{ "id": 8, "name": "Buyer", "is_buyer": true }
],
"response_id": "1700000000.12345"
}
Success Response — single category by ID (HTTP 200)
{
"code": 200,
"errors": null,
"data": [
{ "id": 8, "title": "Buyer", "is_buyer": true }
],
"response_id": "1700000000.12345"
}
Note: When fetching by
event_id, the category name field is keyed asname. When fetching byid, it is keyed astitle.
Response Item Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
integer |
Category ID |
|
|
string |
Category name (present when fetched by |
|
|
string |
Category name (present when fetched by |
|
|
boolean |
Whether this is a buyer category |
Error Responses
|
HTTP Code |
Condition |
Error Message |
|---|---|---|
|
400 |
Neither |
|
|
400 |
|
|
|
400 |
|
|
|
400 |
|
|
|
403 |
Missing or invalid API key |
|
Example Request — list all categories for an event
curl -X GET "https://your-event-domain.com/api/v2/account/getCategories?event_id=7" \
-H "Authorization: Bearer your_api_key_here"
Example Request — get a single category by ID
curl -X GET "https://your-event-domain.com/api/v2/account/getCategories?id=8" \
-H "Authorization: Bearer your_api_key_here"