# Event API

Version: v2

## Servers

Sandbox URL
```
https://api-ext-sboxmeta.partners.spotnana.com
```

## Security

### Bearer

Type: http
Scheme: bearer

## Download OpenAPI description

 - [Event API](https://developer.spotnana.com/_bundle/openapi/EventApi.yaml)

## Events

 - [POST /v2/events](https://developer.spotnana.com/openapi/eventapi/events/createevent.md): Create a draft event. Optionally pass newTraveler to create a new traveler and add them to the event. If the traveler already exists, the request fails — use the travellers field with the existing use
 - [GET /v2/events/{eventId}](https://developer.spotnana.com/openapi/eventapi/events/getevent.md): Get event details for the specified event ID.
 - [DELETE /v2/events/{eventId}](https://developer.spotnana.com/openapi/eventapi/events/deleteevent.md): Delete a draft (i.e., unpublished) event. A deleted event cannot be accessed or viewed again.
 - [GET /v2/events/read-by-external-id](https://developer.spotnana.com/openapi/eventapi/events/geteventbyexternalid.md): Get event details using the event's `externalId`. External IDs are unique identifiers which can be set based on the company's preference.
 - [POST /v2/events/{eventId}/travelers/add](https://developer.spotnana.com/openapi/eventapi/events/addtravelerstoevent.md): Add the list of travelers to be invited to the event.
 - [POST /v2/events/{eventId}/travelers/remove](https://developer.spotnana.com/openapi/eventapi/events/removetravelersfromevent.md): Remove travelers from an event. This endpoint allows you to remove up to 10 travelers per API call.
 - [POST /v2/events/list](https://developer.spotnana.com/openapi/eventapi/events/listevents.md): List all the events that match the specified criteria in the request.
 - [POST /v2/events/{eventId}/publish](https://developer.spotnana.com/openapi/eventapi/events/publishevent.md): Publish a draft event.
 - [POST /v2/events/{eventId}/edit-basic-info](https://developer.spotnana.com/openapi/eventapi/events/updateeventbasicinfo.md): Edit the basic information of an event such as the event name, description, date and time, location, and contacts.
 - [POST /v2/events/{eventId}/edit-booking-guidelines](https://developer.spotnana.com/openapi/eventapi/events/updateeventbookingguidelines.md): Update the booking guidelines for an event. You can update booking guidelines such as maximum number of guests allowed to accompany a traveler, arrival and departure window for the event, payment met
 - [POST /v2/events/{eventId}/travelers/{travelerId}/rsvp](https://developer.spotnana.com/openapi/eventapi/events/setusereventrsvp.md): Update the RSVP status and the RSVP response for a traveler.
 - [GET /v2/events/{eventId}/travelers/{travelerId}/rsvp](https://developer.spotnana.com/openapi/eventapi/events/getusereventrsvp.md): Get the RSVP status and the RSVP response for a traveler.
 - [POST /v2/events/{eventId}/invite/send](https://developer.spotnana.com/openapi/eventapi/events/sendinvite.md): Send event invites to the travelers via email. The invites can be sent to all travelers using a single API call, or you can send invites to specific travelers.
 - [POST /v2/events/{eventId}/invite/test](https://developer.spotnana.com/openapi/eventapi/events/testinvite.md): Send a test event invite to the API caller. This endpoint can be used to preview the invite before sending it to the travelers.
 - [POST /v2/events/summaries](https://developer.spotnana.com/openapi/eventapi/events/geteventsummaries.md): View summaries of specific events. This endpoint retrieves a list of traveler event summaries based on specified `userId`, `companyId`, and `tripIds`.
 - [GET /v2/events/payment-sources](https://developer.spotnana.com/openapi/eventapi/events/getallowedpaymentsources.md): Get the payment sources that are associated with the `userId` of the event coordinator.
 - [POST /v2/events/{eventId}/cancel](https://developer.spotnana.com/openapi/eventapi/events/cancelevent.md): Cancel a published event. After you've canceled the event, it's recommended that you cancel the bookings using the Cancel PNR API.
 - [POST /v2/events/{eventId}/travelers-list](https://developer.spotnana.com/openapi/eventapi/events/listeventtravelers.md): Get a paginated list of travelers for an event, including each traveler's RSVP status, RSVP response, and `tripId`.
 - [PUT /v2/events/{eventId}/custom-field-responses](https://developer.spotnana.com/openapi/eventapi/events/updatecustomfieldresponses.md): Update the response to a custom field question.
 - [POST /v2/events/bulk-publish](https://developer.spotnana.com/openapi/eventapi/events/bulkpublishevents.md): API to bulk publish events and has a support for sending invite to selective users
 - [POST /v2/events/bulk-edit](https://developer.spotnana.com/openapi/eventapi/events/bulkeditevents.md): Edit the basic info and booking guidelines in bulk for events.
 - [POST /v2/events/bulk-delete](https://developer.spotnana.com/openapi/eventapi/events/bulkdeleteevents.md): API to bulk delete draft events.
 - [POST /v2/events/bulk-cancel](https://developer.spotnana.com/openapi/eventapi/events/bulkcancelevents.md): API to bulk cancel events.
 - [POST /v2/events/{eventId}/register](https://developer.spotnana.com/openapi/eventapi/events/registerforevent.md): Register a traveler for a PROGRAM_SESSION event. If userId is omitted, the logged-in user is registered. Creates a PROGRAM_TRIP child event under the session and publishes it, triggering async trip cr
 - [POST /v2/events/jobs/status](https://developer.spotnana.com/openapi/eventapi/events/getasynceventjobdetails.md): Get current details of an async event job
