Swoogo Session Fields API

Manage custom fields on sessions. Create, update, and delete session-level custom field definitions.

GitHub OpenAPI

Operations 5

GET /sessions/fields Get All Fields #
POST /sessions/field Create Field #
GET /sessions/field/{field_id} Get One Field #
PUT /sessions/field/{field_id} Update Field #
DELETE /sessions/field/{field_id} Delete Field #

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-session-fields-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-session-fields-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swoogo Session Fields 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 Session Fields 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: Session Fields
  description: Manage custom fields on sessions. Create, update, and delete session-level custom field definitions.
paths:
  /sessions/fields:
    get:
      security:
      - bearerAuth: []
      tags:
      - Session Fields
      summary: Get All Fields
      description: Retrieves all custom field definitions for sessions. These fields define the schema for additional data that can be captured on sessions (e.g., custom text fields, dropdowns, URLs). Each field includes its attribute name, display type, visibility, sort order, and validation requirements.
      operationId: getAllSessionFields
      parameters:
      - name: fields
        in: query
        schema:
          type: string
          example: id,attribute,name,s_hint,type,visible,required,sort,allow_html,s_url_display_format,s_button_text,s_url_image_id,s_max_links,s_link_collection_fields
        description: string - optional - Comma separated list of fields you want to return
      - 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: expand
        in: query
        schema:
          type: string
          example: translations
        description: 'string - optional - Comma separated list of related objects to include inline. Supported value: `translations`'
      - 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:
                        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'
    servers:
    - url: https://api.swoogo.com/api/v1
      description: Production API server
    - url: https://local.swoogo.com/api/v1
      description: Local API server
  /sessions/field:
    post:
      security:
      - bearerAuth: []
      tags:
      - Session Fields
      summary: Create Field
      description: Creates a new custom field definition for sessions. Specify the field name, type (text, dropdown, checkbox, etc.), visibility, sort order, and choices (for selection-type fields). The field will become available for data entry on all sessions.
      operationId: createSessionField
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                choices:
                  type: array
                  items:
                    type: string
                    example: first
                  example:
                  - first
                  - second
                  - third
                name:
                  type: string
                  example: new session field
                type:
                  type: string
                  example: dropDownList
            examples:
              Create Session Field:
                value:
                  choices:
                  - first
                  - second
                  - third
                  name: new session field
                  type: dropDownList
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                allow_html:
                  type: string
                  example: ''
                choices:
                  type: string
                  example: ''
                name:
                  type: string
                  example: ''
                required:
                  type: string
                  example: ''
                s_button_text:
                  type: string
                  example: ''
                s_link_collection_fields:
                  type: string
                  example: ''
                s_max_links:
                  type: string
                  example: ''
                s_url_display_format:
                  type: string
                  example: ''
                s_url_image_id:
                  type: string
                  example: ''
                sort:
                  type: string
                  example: ''
                type:
                  type: string
                  example: ''
                visible:
                  type: string
                  example: ''
            examples:
              Create Session Field:
                value:
                  allow_html: ''
                  choices: ''
                  name: ''
                  required: ''
                  s_button_text: ''
                  s_link_collection_fields: ''
                  s_max_links: ''
                  s_url_display_format: ''
                  s_url_image_id: ''
                  sort: ''
                  type: ''
                  visible: ''
      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
  /sessions/field/{field_id}:
    get:
      security:
      - bearerAuth: []
      tags:
      - Session Fields
      summary: Get One Field
      description: Retrieves a single custom session field definition by its ID, including the attribute name, field type, visibility settings, validation rules, and available choices (for dropdown/radio fields).
      operationId: getOneSessionField
      parameters:
      - name: field_id
        in: path
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the field you want to get
      - name: fields
        in: query
        schema:
          type: string
          example: id,attribute,name,s_hint,type,visible,required,sort,allow_html,s_url_display_format,s_button_text,s_url_image_id,s_max_links,s_link_collection_fields
        description: string - optional - Comma separated list of fields you want to return
      responses:
        '200':
          description: Get Session Field
          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:
                  allow_html:
                    type: boolean
                    example: false
                  attribute:
                    type: string
                    example: c_57
                  choices:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                          example: 109
                        name:
                          type: string
                          example: 'Basic: 0-1 years of experience with the topic/product; looking for a basic introduction'
                        sort:
                          type: number
                          example: 0
                    example:
                    - id: 109
                      name: 'Basic: 0-1 years of experience with the topic/product; looking for a basic introduction'
                      sort: 0
                    - id: 110
                      name: 'Intermediate: 1-3 years of experience with the topic/product: comfortable with basic functions; looking to dive deeper'
                      sort: 1
                    - id: 111
                      name: 'Advanced: 3+ years of experience with the topic/product; well-versed in all functions‚ looking to learn complexities and new trends'
                      sort: 2
                  id:
                    type: number
                    example: 57
                  name:
                    type: string
                    example: dropdown list
                  required:
                    type: boolean
                    example: false
                  settings:
                    nullable: true
                    example: null
                  sort:
                    type: number
                    example: 11
                  type:
                    type: string
                    example: dropDownList
                  visible:
                    type: boolean
                    example: true
              examples:
                Get Session Field:
                  value:
                    allow_html: false
                    attribute: c_57
                    choices:
                    - id: 109
                      name: 'Basic: 0-1 years of experience with the topic/product; looking for a basic introduction'
                      sort: 0
                    - id: 110
                      name: 'Intermediate: 1-3 years of experience with the topic/product: comfortable with basic functions; looking to dive deeper'
                      sort: 1
                    - id: 111
                      name: 'Advanced: 3+ years of experience with the topic/product; well-versed in all functions‚ looking to learn complexities and new trends'
                      sort: 2
                    id: 57
                    name: dropdown list
                    required: false
                    settings: null
                    sort: 11
                    type: dropDownList
                    visible: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    put:
      security:
      - bearerAuth: []
      tags:
      - Session Fields
      summary: Update Field
      description: Updates an existing custom session field definition by its ID. You can modify the field name, type, visibility, sort order, validation rules, and available choices.
      operationId: updateSessionField
      parameters:
      - name: field_id
        in: path
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the field you want to update
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                choices:
                  type: array
                  items:
                    type: object
                    properties:
                      delete:
                        type: boolean
                        example: true
                      id:
                        example: 149
                        anyOf:
                        - type: number
                          example: 149
                        - type: string
                          example: '152'
                      name:
                        type: string
                        example: new choice
                  example:
                  - delete: true
                    id: 149
                  - name: new choice
                  - id: '152'
                    name: updated choice
                name:
                  type: string
                  example: updated name
            examples:
              Update An Existing Session Field:
                value:
                  choices:
                  - delete: true
                    id: 149
                  - name: new choice
                  - id: '152'
                    name: updated choice
                  name: updated name
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                allow_html:
                  type: string
                  example: ''
                choices:
                  type: string
                  example: ''
                name:
                  type: string
                  example: ''
                required:
                  type: string
                  example: ''
                s_button_text:
                  type: string
                  example: ''
                s_link_collection_fields:
                  type: string
                  example: ''
                s_max_links:
                  type: string
                  example: ''
                s_url_display_format:
                  type: string
                  example: ''
                s_url_image_id:
                  type: string
                  example: ''
                sort:
                  type: string
                  example: ''
                visible:
                  type: string
                  example: ''
            examples:
              Update An Existing Session Field:
                value:
                  allow_html: ''
                  choices: ''
                  name: ''
                  required: ''
                  s_button_text: ''
                  s_link_collection_fields: ''
                  s_max_links: ''
                  s_url_display_format: ''
                  s_url_image_id: ''
                  sort: ''
                  visible: ''
      responses:
        '200':
          description: Update An Existing Session Field
          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:
                  allow_html:
                    type: boolean
                    example: false
                  attribute:
                    type: string
                    example: c_104
                  choices:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                          example: 150
                        name:
                          type: string
                          example: second
                        sort:
                          type: number
                          example: 1
                    example:
                    - id: 150
                      name: second
                      sort: 1
                    - id: 151
                      name: third
                      sort: 2
                    - id: 152
                      name: updated choice
                      sort: 3
                    - id: 153
                      name: new choice
                      sort: 4
                  id:
                    type: number
                    example: 104
                  name:
                    type: string
                    example: updated name
                  required:
                    type: boolean
                    example: false
                  settings:
                    nullable: true
                    example: null
                  sort:
                    type: number
                    example: 28
                  type:
                    type: string
                    example: dropDownList
                  visible:
                    type: boolean
                    example: true
              examples:
                Update An Existing Session Field:
                  value:
                    allow_html: false
                    attribute: c_104
                    choices:
                    - id: 150
                      name: second
                      sort: 1
                    - id: 151
                      name: third
                      sort: 2
                    - id: 152
                      name: updated choice
                      sort: 3
                    - id: 153
                      name: new choice
                      sort: 4
                    id: 104
                    name: updated name
                    required: false
                    settings: null
                    sort: 28
                    type: dropDownList
                    visible: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    delete:
      security:
      - bearerAuth: []
      tags:
      - Session Fields
      summary: Delete Field
      description: Permanently deletes a custom session field definition by its ID. Any data stored in this field on existing sessions will no longer be accessible.
      operationId: deleteSessionField
      parameters:
      - name: field_id
        in: path
        required: true
        schema:
          type: integer
          example: 1
        description: integer - required - The ID of the field you want to delete
      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