Retrieve All Events

This endpoint allows you to retrieve a list of all available events for a specific user based on their API key.

Endpoint

Live

POST https://business.festivalcadeau.com/api/endpoint/v1/getallevents

Sandbox

POST https://business.festivalcadeautestsite.nl/api/endpoint/v1/getallevents

Authentication

This endpoint requires an API key for authentication. The API key should be included in the request parameters.

Request Parameters

apikey: The API key associated with the user.

Response

The response to a successful request is a JSON array of event objects. Each event object contains various fields about the event such as `id`, `company_id`, `bannerpath`, `simpleticket_reference`, `poster`, `featured`, `title`, `description`, `organiser`, and many others. For example:

[
    {
        "id": 1,
        "company_id": 1,
        "bannerpath": "http://bannerurl.com/1",
        "simpleticket_reference": "0",
        "poster": "http://posterurl.com/1",
        "featured": "0",
        "title": "Event 1",
        "description": "This is a description for Event 1.",
        "organiser": "Organiser 1",
        "date": "2023-07-20",
        "time": "18:00:00",
        "end_date": "2023-07-21",
        "end_time": "00:00:00",
        "location": "Amsterdam",
        "url": "http://eventwebsite.com/1",
        "video_link": "http://videourl.com/1",
        "ticket_link": "http://ticketlink.com/1",
        ...
        "created_at": "2023-06-19T12:28:53.000000Z",
        "updated_at": "2023-06-19T12:28:53.000000Z"
    },
    ...
]

If there are no events available, the response will be an empty JSON array [].

Example Request

POST https://business.festivalcadeau.com/api/endpoint/v1/getallevents
{
    "apikey": "your_api_key"
}

Example Response

HTTP/1.1 200 OK
Content-Type: application/json

[
    {
        "id": 1,
        "company_id": 1,
        "bannerpath": "http://bannerurl.com/1",
        "simpleticket_reference": "0",
        "poster": "http://posterurl.com/1",
        "featured": "0",
        "title": "Event 1",
        ...
        "created_at": "2023-06-19T12:28:53.000000Z",
        "updated_at": "2023-06-19T12:28:53.000000Z"
    },
    ...
]