Swoogo Packages API

Packages define pricing tiers for event registration. A package specifies the fee amount, early bird pricing, and which sessions or features are included. Registrants select a package during registration.

GitHub OpenAPI

Operations 5

GET /packages Get All Packages #
GET /packages/{package_id} Get One Package #
POST /packages/create Create Package #
PUT /packages/update/{package_id} Update Package #
DELETE /packages/delete/{package_id} Delete Package #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/swoogo:swoogo-packages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

swoogo-packages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swoogo Packages API
  version: 1.0.0
  contact:
    name: Swoogo Developer Support
    url: https://developer.swoogo.com
    email: dev@swoogo.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: https://www.swoogo.com/terms
  description: 'Operations tagged Packages across 2 of this provider''s published API definitions: swoogo-openapi.yml, swoogo-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: Packages
  description: Packages define pricing tiers for event registration. A package specifies the fee amount, early bird pricing, and which sessions or features are included. Registrants select a package during registration.
paths:
  /packages:
    get:
      security:
      - bearerAuth: []
      tags:
      - Packages
      summary: Get All Packages
      description: 'Retrieves all registration packages (pricing tiers) for a specific event. Packages define the pricing structure that registrants select during registration, including capacity limits and group size constraints. Requires the `event_id` query parameter.


        When the `fields` query parameter is omitted, the response only includes `id`, `name`, and `capacity` for each package. To retrieve additional fields, list them explicitly in `fields`. Use `expand` to include related objects such as fee pricing or translations.


        Soft-deleted packages are excluded from the results. Results default to the package `sort` order ascending unless overridden with the `sort` parameter.


        Extra Fields


        This is the extra information that can be returned if required by specifying what you need in the expand variable:


        Name

        Type

        Description


        fees

        object

        Fee record for this package, including base price and any conditional pricing.


        earlyBirds

        object

        Early-bird pricing configuration for this package''s fee. Contains a type string and either a flat price/registrations pair (registrations-based) or an items array of date-based tiers.


        translations

        object

        Custom translations for this package, keyed by language code (e.g. en, fr). Each value is an object of field name → translated string.'
      operationId: getAllPackages
      parameters:
      - name: event_id
        in: query
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the event you want to retrieve packages for
      - name: fields
        in: query
        schema:
          type: string
          example: id,name,public_short_name,admin_short_name,description,capacity,sold_out_message,min_group_size,max_group_size,created_at,updated_at
        description: string - optional - Comma separated list of fields you want to return. When omitted, only `id`, `name`, and `capacity` are returned.
      - name: expand
        in: query
        schema:
          type: string
          example: fees
        description: string - optional - Comma separated list of related objects to embed in each item. Supported values are `fees`, `earlyBirds`, and `translations`.
      - 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*. Searchable fields are `id`, `name`, `public_short_name`, `admin_short_name`, `description`, `capacity`, `min_group_size`, `max_group_size`, `created_at`, and `updated_at`.
      - name: searchCondition
        in: query
        schema:
          type: string
          enum:
          - and
          - or
          default: and
        description: string - optional - Logical operator used to combine multiple `search` conditions. Defaults to `and` (all conditions must match). Set to `or` for any-match behavior.
        example: and
      - 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. Defaults to 25. Maximum is 200 when `expand` is present.
      - name: sort
        in: query
        schema:
          type: string
        description: string - optional - Sort the results (add - in front for opposite sort direction, e.g. "-id"). Defaults to ascending package sort order.
      - 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
      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:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Gold Package
                        public_short_name:
                          type: string
                          example: Gold
                        admin_short_name:
                          type: string
                          example: Gold
                        description:
                          type: string
                          example: Full conference access including dinner.
                        capacity:
                          type: integer
                          nullable: true
                          example: 100
                        sold_out_message:
                          type: string
                          example: Sold Out
                        min_group_size:
                          type: integer
                          nullable: true
                          example: null
                        max_group_size:
                          type: integer
                          nullable: true
                          example: null
                        created_at:
                          type: string
                          example: '2023-04-21 15:46:23'
                        updated_at:
                          type: string
                          example: '2023-04-21 15:47:37'
                        fees:
                          type: object
                          description: Present when `expand=fees` is requested. Fee record for this package.
                          properties:
                            id:
                              type: integer
                              example: 42
                            package_id:
                              type: integer
                              example: 1
                            price:
                              type: number
                              format: float
                              nullable: true
                              example: 199
                            conditional_prices:
                              type: object
                              nullable: true
                              description: Object keyed by reg-type name, containing the conditional price for that reg type.
                              example:
                                Standard: '149.00'
                        earlyBirds:
                          type: object
                          description: Present when `expand=earlyBirds` is requested. Early-bird pricing configuration.
                          properties:
                            type:
                              type: string
                              description: Pricing strategy — `registrations` (count-based) or `date` (date-based).
                              example: date
                            price:
                              type: number
                              format: float
                              description: Flat early-bird price (only present when `type` is `registrations`).
                              example: 149
                            registrations:
                              type: integer
                              description: Registrant count cutoff (only present when `type` is `registrations`).
                              example: 50
                            items:
                              type: array
                              description: Date-based early-bird tiers (only present when `type` is `date`).
                              items:
                                type: object
                                properties:
                                  price:
                                    type: number
                                    format: float
                                    example: 149
                                  date:
                                    type: string
                                    example: '2024-03-01 00:00:00'
                                  conditional_fees:
                                    type: object
                                    description: Conditional prices for this tier, keyed by reg-type name.
                                    example:
                                      Standard: '129.00'
                        translations:
                          type: object
                          description: Present when `expand=translations` is requested. Custom translations keyed by language code.
                          additionalProperties:
                            type: object
                            description: Translation fields for a single language, keyed by field name.
                            additionalProperties:
                              type: string
                          example:
                            en:
                              name: Gold Package
                            fr:
                              name: Forfait Or
                  _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: 25
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    servers:
    - url: https://api.swoogo.com/api/v1
      description: Production API server
    - url: https://local.swoogo.com/api/v1
      description: Local API server
  /packages/{package_id}:
    get:
      security:
      - bearerAuth: []
      tags:
      - Packages
      summary: Get One Package
      description: 'Retrieves a single registration package by its ID, including name, capacity, group size limits, and sold-out message. Use the `expand` parameter to include related `earlyBirds` pricing tiers.


        Extra Fields


        This is the extra information that can be returned if required by specifying what you need in the expand variable:


        Name

        Type

        Description


        earlyBirds

        object

        List all available early birds for this package'
      operationId: getOnePackage
      parameters:
      - name: package_id
        in: path
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the package you want to get
      - name: fields
        in: query
        schema:
          type: string
          example: id,name,public_short_name,admin_short_name,description,capacity,sold_out_message,min_group_size,max_group_size,created_at,updated_at
        description: string - optional - Comma separated list of fields you want to return
      - name: expand
        in: query
        schema:
          type: string
          example: ''
        description: string - optional - Comma separated list of objects you want to return
      responses:
        '200':
          description: Get Package
          content:
            application/json:
              schema:
                type: object
                properties:
                  admin_short_name:
                    type: string
                    example: ''
                  capacity:
                    nullable: true
                    example: null
                  created_at:
                    type: string
                    example: '2017-01-20 09:59:39'
                  description:
                    type: string
                    example: ''
                  id:
                    type: number
                    example: 1
                  max_group_size:
                    nullable: true
                    example: null
                  min_group_size:
                    nullable: true
                    example: null
                  name:
                    type: string
                    example: Gold Package
                  public_short_name:
                    type: string
                    example: ''
                  sold_out_message:
                    type: string
                    example: Sold Out
                  updated_at:
                    type: string
                    example: '2017-05-26 14:44:05'
              examples:
                Get Package:
                  value:
                    admin_short_name: ''
                    capacity: null
                    created_at: '2017-01-20 09:59:39'
                    description: ''
                    id: 1
                    max_group_size: null
                    min_group_size: null
                    name: Gold Package
                    public_short_name: ''
                    sold_out_message: Sold Out
                    updated_at: '2017-05-26 14:44:05'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    servers:
    - url: https://api.swoogo.com/api/v1
      description: Production API server
    - url: https://local.swoogo.com/api/v1
      description: Local API server
  /packages/create:
    post:
      security:
      - bearerAuth: []
      tags:
      - Packages
      summary: Create Package
      description: Creates a new registration package for an event. Requires `event_id` and `name` in the request body. Optionally set `capacity` to limit the number of registrants who can select this package, and configure `min_group_size`/`max_group_size` for group registration constraints.
      operationId: createPackage
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                admin_short_name:
                  type: string
                  example: ''
                capacity:
                  type: string
                  example: ''
                event_id:
                  type: string
                  example: '1'
                name:
                  type: string
                  example: Sample Package
                public_short_name:
                  type: string
                  example: ''
            examples:
              Create A Package:
                value:
                  admin_short_name: ''
                  capacity: ''
                  event_id: '1'
                  name: Sample Package
                  public_short_name: ''
      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'
    servers:
    - url: https://api.swoogo.com/api/v1
      description: Production API server
    - url: https://local.swoogo.com/api/v1
      description: Local API server
  /packages/update/{package_id}:
    put:
      security:
      - bearerAuth: []
      tags:
      - Packages
      summary: Update Package
      description: Updates an existing registration package by its ID. You can modify the package name, capacity, group size limits, display names, and sold-out message. Only the fields included in the request body will be updated.
      operationId: updatePackage
      parameters:
      - name: package_id
        in: path
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the package you want to update
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                admin_short_name:
                  type: string
                  example: ''
                capacity:
                  type: string
                  example: ''
                name:
                  type: string
                  example: Updated Package Name
                public_short_name:
                  type: string
                  example: ''
            examples:
              Update A Package:
                value:
                  admin_short_name: ''
                  capacity: ''
                  name: Updated Package Name
                  public_short_name: ''
      responses:
        '200':
          description: Update A Package
          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'
          content:
            application/json:
              schema:
                type: object
                properties:
                  admin_short_name:
                    type: string
                    example: ''
                  capacity:
                    type: string
                    example: ''
                  created_at:
                    type: string
                    example: '2023-05-17 10:35:05'
                  description:
                    nullable: true
                    example: null
                  id:
                    type: number
                    example: 22
                  max_group_size:
                    nullable: true
                    example: null
                  min_group_size:
                    nullable: true
                    example: null
                  name:
                    type: string
                    example: Updated Package Name
                  public_short_name:
                    type: string
                    example: ''
                  sold_out_message:
                    type: string
                    example: Sold Out
                  updated_at:
                    type: string
                    example: '2023-05-17 10:46:19'
              examples:
                Update A Package:
                  value:
                    admin_short_name: ''
                    capacity: ''
                    created_at: '2023-05-17 10:35:05'
                    description: null
                    id: 22
                    max_group_size: null
                    min_group_size: null
                    name: Updated Package Name
                    public_short_name: ''
                    sold_out_message: Sold Out
                    updated_at: '2023-05-17 10:46:19'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    servers:
    - url: https://api.swoogo.com/api/v1
      description: Production API server
    - url: https://local.swoogo.com/api/v1
      description: Local API server
  /packages/delete/{package_id}:
    delete:
      security:
      - bearerAuth: []
      tags:
      - Packages
      summary: Delete Package
      description: Permanently deletes a registration package by its ID. This will remove the package as a selectable option for future registrations. Existing registrants already assigned to this package are not affected.
      operationId: deletePackage
      parameters:
      - name: package_id
        in: path
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the package you want to delete
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties: {}
            examples:
              Delete Package:
                value: {}
      responses:
        '204':
          description: Delete
          content: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    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
  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
  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