Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Swoogo Events API
version: '1.0'
description: 'Operations tagged Events across 3 of this provider''s published API definitions: swoogo-openapi.yml, swoogo-openapi.yml, swoogo-events-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
tags:
- name: Events
description: Events are the top-level resource in Swoogo. An event represents a conference, meeting, webinar, or other gathering. Most resources (registrants, sessions, speakers, sponsors) are scoped to an event via `event_id`. Use events to manage scheduling, capacity, registration windows, and event metadata.
paths:
/events:
get:
security:
- bearerAuth: []
tags:
- Events
summary: Get All Events
description: 'Retrieves a paginated list of events for your account. Returns event configuration, scheduling, and status information.
Use `fields` to control which fields are returned (defaults to `id`, `name` when not specified). Use `expand` to include related objects: `folder`, `location`.
Use `expand=capacityRemaining` to include the number of places left (the event capacity minus confirmed, attended, no-show, in-progress, allocated and waitlisted registrants and pending ticket seats, ignoring reg types excluded from event capacity). The value is an integer, or `null` when the event has no capacity (a capacity of 0 or unset means unlimited). It is calculated per event, so request it only when needed and keep `per-page` small. It cannot be used in `search` or `sort`.
Use `search` to filter by any event field (e.g., `status=live`, `start_date>=2025-01-01`, `name=*conference*`). Supports operators: `=`, `!=`, `>=`, ``, `<`, `*contains*`, `*beginswith*`, `*endswith*`. Results are paginated with a maximum of 200 per page.'
operationId: getAllEvents
x-codeSamples:
- lang: cURL
label: cURL
source: "curl -X GET \"https://api.swoogo.com/api/v1/events?fields=id,name,status,start_date,end_date&search=status%3Dlive&sort=-start_date\" \\\n -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\"\n"
- lang: JavaScript
label: Node.js
source: "const response = await fetch(\n 'https://api.swoogo.com/api/v1/events?fields=id,name,status,start_date&search=status%3Dlive',\n { headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN' } }\n);\nconst { items } = await response.json();\n"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.get(\n \"https://api.swoogo.com/api/v1/events\",\n params={\"fields\": \"id,name,status,start_date\", \"search\": \"status=live\"},\n headers={\"Authorization\": \"Bearer YOUR_ACCESS_TOKEN\"},\n)\nevents = response.json()[\"items\"]\n"
parameters:
- name: fields
in: query
schema:
type: string
example: capacity,close_date,close_time,created_at,created_by,description,domain,end_date,end_time,folder_id,free_event,hashtag,id,name,organizer_id,start_date,start_time,status,target_attendance,timezone,type_id,updated_at,updated_by,url,webinar_url
description: string - optional - Comma separated list of fields you want to return
- name: expand
in: query
schema:
type: string
example: folder,location
description: 'string - optional - Comma separated list of related objects to include. Valid values: folder, location, sessions, sponsors, speakers, translations, capacityRemaining'
- name: search
in: query
schema:
type: string
example: id>123
description: string - optional - Filter conditions to narrow the results. Valid operators are =, !=, >=, <=, >, <, *contains*, *beginswith*, *endswith*
- name: page
in: query
schema:
type: string
example: '1'
description: integer - optional - The page of results you want to view
- name: per-page
in: query
schema:
type: string
example: '5'
description: integer - optional - The number of results per page (to a max of 200)
- name: sort
in: query
schema:
type: string
description: string - optional - Sort the results (add - in front for opposite sort direction, e.g. "-id")
- name: ids
in: query
schema:
type: string
description: Comma-separated list of IDs to retrieve. When provided, only records matching these IDs are returned. All values must be positive integers. Maximum 100 IDs per request.
example: 1,2,3
requestBody:
content:
multipart/form-data:
schema:
type: object
properties: {}
responses:
'200':
description: Collection
headers:
x-rate-limit-limit:
$ref: '#/components/headers/RateLimitLimit'
x-rate-limit-remaining:
$ref: '#/components/headers/RateLimitRemaining'
x-rate-limit-reset:
$ref: '#/components/headers/RateLimitReset'
x-pagination-current-page:
$ref: '#/components/headers/PaginationCurrentPage'
x-pagination-page-count:
$ref: '#/components/headers/PaginationPageCount'
x-pagination-per-page:
$ref: '#/components/headers/PaginationPerPage'
x-pagination-total-count:
$ref: '#/components/headers/PaginationTotalCount'
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
created_at:
type: string
example: '2023-04-21 15:46:23'
updated_at:
type: string
example: '2023-04-21 15:47:37'
_links:
type: object
properties:
self:
type: object
properties:
href:
type: string
example: ''
first:
type: object
properties:
href:
type: string
example: ''
last:
type: object
properties:
href:
type: string
example: ''
_meta:
type: object
properties:
totalCount:
type: integer
example: 1
pageCount:
type: integer
example: 1
currentPage:
type: integer
example: 1
perPage:
type: integer
example: 20
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
post:
operationId: createEvent
tags:
- Events
summary: Create an event
description: Creates a new event.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
responses:
'201':
description: The created event.
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
'401':
$ref: '#/components/responses/Unauthorized_2'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/events/{event_id}:
get:
security:
- bearerAuth: []
tags:
- Events
summary: Get One Event
description: 'Retrieves a single event by its unique ID. Returns the full event record including name, dates, times, timezone, capacity, status, and registration URL.
Use `fields` to limit which fields are returned. Use `expand` to include related objects such as `folder` and `location`. Use `expand=capacityRemaining` to include the number of places left (the event capacity minus confirmed, attended, no-show, in-progress, allocated and waitlisted registrants and pending ticket seats, ignoring reg types excluded from event capacity). The value is an integer, or `null` when the event has no capacity (a capacity of 0 or unset means unlimited).'
operationId: getOneEvent
parameters:
- name: event_id
in: path
required: true
schema:
type: integer
example: 1
description: integer - required - The ID of the event you want to get
- name: fields
in: query
schema:
type: string
example: capacity,close_date,close_time,created_at,created_by,description,domain,end_date,end_time,folder_id,free_event,hashtag,id,name,organizer_id,start_date,start_time,status,target_attendance,timezone,type_id,updated_at,updated_by,url,webinar_url
description: string - optional - Comma separated list of fields you want to return
- name: expand
in: query
schema:
type: string
example: folder,location
description: 'string - optional - Comma separated list of related objects to include. Valid values: folder, location, sessions, sponsors, speakers, translations, capacityRemaining'
responses:
'200':
description: Get Event
headers:
x-rate-limit-limit:
$ref: '#/components/headers/RateLimitLimit'
x-rate-limit-remaining:
$ref: '#/components/headers/RateLimitRemaining'
x-rate-limit-reset:
$ref: '#/components/headers/RateLimitReset'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
parameters:
- $ref: '#/components/parameters/EventId'
put:
operationId: updateEvent
tags:
- Events
summary: Update an event
description: Updates an existing event.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
responses:
'200':
description: The updated event.
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
'401':
$ref: '#/components/responses/Unauthorized_2'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/events/create:
post:
security:
- bearerAuth: []
tags:
- Events
summary: Create Event
description: 'Creates a new event in your account. Returns the full event record on success.
Required fields: `name`, `start_date`, `start_time`, `end_date`, `end_time`, and `timezone` (e.g., `US/Eastern`, `Europe/London`, `Asia/Tokyo` — see the Formatting conventions page for the accepted identifiers). Optionally set `close_date` and `close_time` to control when registration closes, `folder_id` to organize the event, and `display_url` to set the registration page URL slug.
The event is created in draft status by default. Configure registration types, packages, and sessions after creation.'
operationId: postEventsCreate
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
close_date:
type: string
example: '2020-04-05'
close_time:
type: string
example: '19:13:44'
display_url:
type: string
example: new-event
end_date:
type: string
example: '2020-04-02'
end_time:
type: string
example: '22:15:04'
folder_id:
type: string
example: '2'
name:
type: string
example: New Event
start_date:
type: string
example: '2020-04-01'
start_time:
type: string
example: '23:12:10'
timezone:
type: string
example: US/Eastern
examples:
Create New Event:
value:
close_date: '2020-04-05'
close_time: '19:13:44'
display_url: new-event
end_date: '2020-04-02'
end_time: '22:15:04'
folder_id: '2'
name: New Event
start_date: '2020-04-01'
start_time: '23:12:10'
timezone: US/Eastern
responses:
'201':
description: Create Object
content:
application/json:
schema:
type: object
properties:
created_at:
type: string
example: '2022-06-26 14:30:00'
updated_at:
type: string
example: '2022-06-26 14:30:00'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
x-operation-id-source: normalized
x-operation-id-original: createEvent
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/events/{event_id}/clone:
post:
security:
- bearerAuth: []
tags:
- Events
summary: Clone Event
description: 'Creates a new event by cloning an existing one. Copies all event settings including registration types, packages, sessions, forms, and website configuration into a new event.
The source event is identified by `event_id` in the path. Override any fields in the request body to customize the clone (e.g., new `name`, `start_date`, `display_url`). Fields not provided in the body inherit values from the source event.
Cloning is asynchronous and may take a few moments to complete. Registrant data is never copied -- the cloned event starts with zero registrations.'
operationId: cloneEvent
parameters:
- name: event_id
in: path
required: true
schema:
type: integer
example: 1
description: integer - required - The ID of the event you want to clone
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
close_date:
type: string
example: ''
close_time:
type: string
example: ''
display_url:
type: string
example: ''
end_date:
type: string
example: ''
end_time:
type: string
example: ''
folder_id:
type: string
example: ''
name:
type: string
example: ''
start_date:
type: string
example: ''
start_time:
type: string
example: ''
timezone:
type: string
example: ''
examples:
Clone Existing Event:
value:
close_date: ''
close_time: ''
display_url: ''
end_date: ''
end_time: ''
folder_id: ''
name: ''
start_date: ''
start_time: ''
timezone: ''
responses:
'200':
description: ''
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/events/update/{event_id}:
put:
security:
- bearerAuth: []
tags:
- Events
summary: Update Event
description: 'Updates an existing event by its unique ID. Only the fields included in the request body are modified; omitted fields are left unchanged.
You can update scheduling (`start_date`, `end_date`, `start_time`, `end_time`), metadata (`name`, `folder_id`, `description`), and registration settings (`close_date`, `close_time`, `capacity`). Changes to dates and times on a live event take effect immediately for the registration page.'
operationId: putEventsUpdateByEventId
parameters:
- name: event_id
in: path
required: true
schema:
type: integer
example: 1
description: integer - required - The ID of the event you want to delete
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
end_date:
type: string
example: ''
end_time:
type: string
example: ''
folder_id:
type: string
example: ''
name:
type: string
example: My Original Event Updated
start_date:
type: string
example: '2021-08-28'
start_time:
type: string
example: ''
examples:
Update An Existing Event:
value:
end_date: ''
end_time: ''
folder_id: ''
name: My Original Event Updated
start_date: '2021-08-28'
start_time: ''
responses:
'200':
description: ''
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
x-operation-id-source: normalized
x-operation-id-original: updateEvent
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
components:
headers:
PaginationTotalCount:
schema:
type: integer
description: Total number of items matching the query across all pages.
example: 95
PaginationPerPage:
schema:
type: integer
description: Number of items returned per page.
example: 20
PaginationPageCount:
schema:
type: integer
description: Total number of pages available based on the current `per-page` value.
example: 5
RateLimitLimit:
schema:
type: integer
description: Maximum number of API requests allowed in the current 10-minute window.
example: 2000
PaginationCurrentPage:
schema:
type: integer
description: The current page number in the paginated result set.
example: 1
RateLimitRemaining:
schema:
type: integer
description: Number of requests remaining in the current rate limit window.
example: 1367
RateLimitReset:
schema:
type: integer
description: Number of seconds until the current rate limit window resets.
example: 0
schemas:
ErrorResponse:
type: object
description: Standard error response returned for all 4xx and 5xx status codes.
properties:
name:
type: string
description: Human-readable error type name (e.g., "Unauthorized", "Forbidden", "Not Found").
example: Unauthorized
message:
type: string
description: Detailed error message explaining what went wrong.
example: Your request was made with invalid credentials.
code:
type: integer
description: Application-specific error code. Currently `0` for all standard errors.
example: 0
status:
type: integer
description: HTTP status code of the error response.
example: 401
Event:
type: object
properties:
id:
type: integer
name:
type: string
start_date:
type: string
format: date
end_date:
type: string
format: date
timezone:
type: string
url:
type: string
status:
type: string
responses:
NotFound:
description: The specified resource does not exist or has been deleted. Verify the ID is correct and that the resource belongs to an event your credentials have access to.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Not Found
message: The requested resource does not exist.
code: 0
status: 404
Forbidden:
description: The authenticated user does not have permission to access this resource. This can occur if the resource belongs to a different account or the API credentials lack the required scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Forbidden
message: You do not have access to that resource.
code: 0
status: 403
Unauthorized:
description: Authentication failed. The bearer token is missing, expired, or invalid. Obtain a new token via `POST /oauth2/token`.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Unauthorized
message: Your request was made with invalid credentials.
code: 0
status: 401
InternalServerError:
description: An unexpected server error occurred. If this persists, contact Swoogo support with the request details and timestamp.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Internal Server Error
message: An error occurred while processing your request.
code: 0
status: 500
Unauthorized_2:
description: The bearer token is missing, invalid, or expired.
parameters:
EventId:
name: event_id
in: path
required: true
schema:
type: integer
description: The event ID.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: access_token
description: OAuth 2.0 bearer token obtained from `POST /oauth2/token`. Tokens expire after 30 minutes. Include in the `Authorization` header as `Bearer {access_token}`.
basicAuth:
type: http
scheme: basic
description: HTTP Basic authentication using your base64-encoded API consumer key and secret. Only used for the `POST /oauth2/token` endpoint to obtain a bearer token.
x-refined-from:
- swoogo-openapi.yml
- swoogo-openapi.yml
- swoogo-events-api-openapi.yml