Coveo In-App API

The In-App API from Coveo — 6 operation(s) for in-app.

Operations 6

POST /rest/organizations/{organizationID}/pages/inappwidget Create InAppWidget
PUT /rest/organizations/{organizationID}/pages/inappwidget/{pageID} Update InAppWidget
GET /rest/organizations/{organizationID}/pages/inappwidgets List InAppWidgets
POST /rest/organizations/{organizationID}/pages/inappwidgets/ids List InAppWidgets by Ids
GET /rest/organizations/{organizationID}/pages/inappwidgets/projectid List InAppWidgets by Project ID
GET /rest/organizations/{organizationID}/pages/{pageID}/inappwidget/loader Get InAppWidget Loader

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-passagev3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restfacetrequest-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restfacetresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restfacetresultvalue-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restgroupby-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restgroupbyresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restgroupbyvalue-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-resthighlightresponse-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restquerycorrection-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryfunction-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryparameters-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryparentresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryresponse-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restrankingfunction-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-retrievepassagesrequestv3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-retrievepassagesresponsev3-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-passagev3-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restfacetrequest-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restfacetresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restfacetresultvalue-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restgroupby-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restgroupbyresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restgroupbyvalue-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-resthighlightresponse-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restquerycorrection-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryfunction-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryparameters-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryparentresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryresponse-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restrankingfunction-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-retrievepassagesrequestv3-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-retrievepassagesresponsev3-structure.json

Other Resources

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/coveo-in-app-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

coveo-in-app-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Service in charge of CRUD operations for Coveo Cloud hosted search pages
  title: Coveo Search Pages In App API
  termsOfService: http://www.coveo.com/en/support/terms-agreements
  contact:
    name: Coveo Community
    url: https://answers.coveo.com/
  version: '1.0'
servers:
- url: https://platform.cloud.coveo.com
  description: Coveo public API endpoint
tags:
- name: In-App
paths:
  /rest/organizations/{organizationID}/pages/inappwidget:
    post:
      security:
      - OAuth2:
        - full
      description: 'Creates an InAppWidget in a [Coveo Cloud organization](https://docs.coveo.com/en/185). <br/><br/>**Required privilege:** Search Pages - Create<br/><details><summary>Privilege required</summary>```{ "owner": "SEARCH_API", "targetDomain": "SEARCH_PAGES", "type": "CREATE", "targetId": "*" }```</details>'
      tags:
      - In-App
      summary: Create InAppWidget
      parameters:
      - description: The unique identifier of the target [organization](https://docs.coveo.com/en/185) (e.g., 'mycoveocloudv2organizationg8tp8wu3').
        name: organizationID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.InAppWidgetCreateResponseBody'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorBadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorUnauthorized'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorInternalServerError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/swaggermodels.FullInAppWidgetRequestModel'
        description: The configuration to use for the new InAppWidget.
        required: true
  /rest/organizations/{organizationID}/pages/inappwidget/{pageID}:
    put:
      security:
      - OAuth2:
        - full
      description: 'Updates an InAppWidget in a [Coveo Cloud organization](https://docs.coveo.com/en/185). <br/><br/>**Required privilege:** Search Pages - Edit<br/><details><summary>Privilege required</summary>```{ "owner": "SEARCH_API", "targetDomain": "SEARCH_PAGES", "type": "EDIT", "targetId": "*" }```</details>'
      tags:
      - In-App
      summary: Update InAppWidget
      parameters:
      - description: The unique identifier of the target Coveo Cloud [organization](https://docs.coveo.com/en/185) (e.g., 'mycoveocloudv2organizationg8tp8wu3').
        name: organizationID
        in: path
        required: true
        schema:
          type: string
      - description: The unique identifier of the search page whose corresponding InAppWidget should be updated (e.g., '12b627f9-e3aa-49db-a0f5-5c0c1392e59e').
        name: pageID
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Updated successfully
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorBadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorUnauthorized'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorInternalServerError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/swaggermodels.FullInAppWidgetRequestModel'
        description: The new configuration to use for the updated InAppWidget.
        required: true
  /rest/organizations/{organizationID}/pages/inappwidgets:
    get:
      security:
      - OAuth2:
        - full
      description: 'Lists all InAppWidgets in a [Coveo Cloud organization](https://docs.coveo.com/en/185/). <br/><br/>**Required privilege:** Search Pages - View<br/><details><summary>Privilege required</summary>```{ "owner": "SEARCH_API", "targetDomain": "SEARCH_PAGES", "type": "VIEW", "targetId": "*" }```</details>'
      tags:
      - In-App
      summary: List InAppWidgets
      parameters:
      - description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/) (e.g., 'mycoveocloudv2organizationg8tp8wu3').
        name: organizationID
        in: path
        required: true
        schema:
          type: string
      - description: The 'name' metadata value of the search page whose corresponding InAppWidget should be retrieved (e.g., 'mysearchpage').
        name: name
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  required:
                  - name
                  - title
                  properties:
                    button:
                      description: The button.
                      type: object
                      properties:
                        buttonCSS:
                          description: The button's CSS.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.buttonCSSResponseModel'
                        buttonCSSClasses:
                          description: The CSS classes of the button.
                          type: array
                          items:
                            type: string
                          example:
                          - btn
                          - mod-primary
                        buttonColor:
                          description: The button's colors.
                          type: object
                          properties:
                            color:
                              description: The value of the button CSS background-color property.
                              type: string
                              example: '#2a2aa2'
                            textColor:
                              description: The value of the CSS color property.
                              type: string
                              example: '#e0e0e0'
                        buttonFont:
                          description: The button's font.
                          type: object
                          properties:
                            family:
                              description: The value of the CSS font-family property.
                              type: string
                              example: '''Courier New'', Courier, monospace'
                            size:
                              description: The value of the CSS font-size property.
                              type: string
                              example: 24px
                        buttonIcon:
                          description: The button's icon.
                          type: object
                          properties:
                            value:
                              description: The icon's stringified HTML.
                              type: string
                              default: "\n\t\t<svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\">     \n            <g fill=\"currentColor\">         \n                <path d=\"m1,11c0,5.52 4.48,10 10,10s10,-4.48 10,-10s-4.48,-10 -10,-10s-10,4.48 -10,10z\" fill=\"transparent\"></path>         \n                <path d=\"m11,22c-6.07,0 -11,-4.935 -11,-11s4.935,-11 11,-11s11,4.935 11,11s-4.935,11 -11,11m0,-20c-4.962,0 -9,4.04 -9,9s4.04,9 9,9s9,-4.04 9,-9s-4.04,-9 -9,-9\"></path>         \n                <path d=\"m10,17l2,0l0,-2l-2,0l0,2m1,-12.344c-2.21,0 -4,1.79 -4,4l2,0c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5l2,0c0,-2.25 3,-2.5 3,-5c0,-2.21 -1.79,-4 -4,-4\"></path>     \n            </g>\n        </svg>\n\t\t"
                              example: <svg><circle/></svg>
                        buttonJS:
                          description: The button's JavaScript.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.buttonJavaScriptResponseModel'
                        buttonPosition:
                          description: The button's text alignment.
                          type: object
                          properties:
                            horizontalPosition:
                              description: The horizontal alignment of the button.
                              type: string
                              default: Right
                              enum:
                              - Undefined
                              - Left
                              - Center
                              - Right
                              example: Center
                            verticalPosition:
                              description: 'The vertical alignment of the button.

                                The vertical alignment.'
                              type: string
                              default: Bottom
                              enum:
                              - Undefined
                              - Top
                              - Middle
                              - Bottom
                              example: Middle
                    content:
                      description: The HTML body content of the widget's page.
                      type: string
                      example: <main><h1>My page</h1></main>
                    hasToken:
                      description: Whether or not this InAppWidget has a search token.
                      type: boolean
                      default: true
                      example: true
                    header:
                      description: The HTML head content of the widget's page.
                      type: object
                      properties:
                        css:
                          description: The CSS resources of the widget.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.CSSResourceSharedModel'
                        javascript:
                          description: The JavaScript resources of the widget.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.JavaScriptResourceSharedModel'
                    id:
                      description: The unique identifier of the search page.
                      type: string
                      example: 12b627f9-e3aa-49db-a0f5-5c0c1392e59e
                    lastModified:
                      description: The time at which the search page was last modified.
                      type: string
                      example: '2019-10-31T20:17:35-04:00'
                    name:
                      description: The unique name of the search page.
                      type: string
                      example: My_Page
                    orgId:
                      description: The unique identifier of the parent Coveo Cloud organization.
                      type: string
                      example: mycoveocloudv2organizationg8tp8wu3
                    title:
                      description: The search page HTML title tag value.
                      type: string
                      example: My page
                    token:
                      description: The [search token](https://docs.coveo.com/en/1346/) to request when initializing the InAppWidget.
                      allOf:
                      - $ref: '#/components/schemas/swaggermodels.searchTokenConfigurationResponseModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorBadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorUnauthorized'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorForbidden'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorInternalServerError'
  /rest/organizations/{organizationID}/pages/inappwidgets/ids:
    post:
      security:
      - OAuth2:
        - full
      description: 'lists InAppWidgets by ids in a [Coveo Cloud organization](https://docs.coveo.com/en/185/). <br/><br/>**Required privilege:** Search Pages - View<br/><details><summary>Privilege required</summary>```{ "owner": "SEARCH_API", "targetDomain": "SEARCH_PAGES", "type": "VIEW", "targetId": "*" }```</details>'
      tags:
      - In-App
      summary: List InAppWidgets by Ids
      parameters:
      - description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/) (e.g., 'mycoveocloudv2organizationg8tp8wu3').
        name: organizationID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  required:
                  - name
                  - title
                  properties:
                    button:
                      description: The button.
                      type: object
                      properties:
                        buttonCSS:
                          description: The button's CSS.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.buttonCSSResponseModel'
                        buttonCSSClasses:
                          description: The CSS classes of the button.
                          type: array
                          items:
                            type: string
                          example:
                          - btn
                          - mod-primary
                        buttonColor:
                          description: The button's colors.
                          type: object
                          properties:
                            color:
                              description: The value of the button CSS background-color property.
                              type: string
                              example: '#2a2aa2'
                            textColor:
                              description: The value of the CSS color property.
                              type: string
                              example: '#e0e0e0'
                        buttonFont:
                          description: The button's font.
                          type: object
                          properties:
                            family:
                              description: The value of the CSS font-family property.
                              type: string
                              example: '''Courier New'', Courier, monospace'
                            size:
                              description: The value of the CSS font-size property.
                              type: string
                              example: 24px
                        buttonIcon:
                          description: The button's icon.
                          type: object
                          properties:
                            value:
                              description: The icon's stringified HTML.
                              type: string
                              default: "\n\t\t<svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\">     \n            <g fill=\"currentColor\">         \n                <path d=\"m1,11c0,5.52 4.48,10 10,10s10,-4.48 10,-10s-4.48,-10 -10,-10s-10,4.48 -10,10z\" fill=\"transparent\"></path>         \n                <path d=\"m11,22c-6.07,0 -11,-4.935 -11,-11s4.935,-11 11,-11s11,4.935 11,11s-4.935,11 -11,11m0,-20c-4.962,0 -9,4.04 -9,9s4.04,9 9,9s9,-4.04 9,-9s-4.04,-9 -9,-9\"></path>         \n                <path d=\"m10,17l2,0l0,-2l-2,0l0,2m1,-12.344c-2.21,0 -4,1.79 -4,4l2,0c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5l2,0c0,-2.25 3,-2.5 3,-5c0,-2.21 -1.79,-4 -4,-4\"></path>     \n            </g>\n        </svg>\n\t\t"
                              example: <svg><circle/></svg>
                        buttonJS:
                          description: The button's JavaScript.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.buttonJavaScriptResponseModel'
                        buttonPosition:
                          description: The button's text alignment.
                          type: object
                          properties:
                            horizontalPosition:
                              description: The horizontal alignment of the button.
                              type: string
                              default: Right
                              enum:
                              - Undefined
                              - Left
                              - Center
                              - Right
                              example: Center
                            verticalPosition:
                              description: 'The vertical alignment of the button.

                                The vertical alignment.'
                              type: string
                              default: Bottom
                              enum:
                              - Undefined
                              - Top
                              - Middle
                              - Bottom
                              example: Middle
                    content:
                      description: The HTML body content of the widget's page.
                      type: string
                      example: <main><h1>My page</h1></main>
                    hasToken:
                      description: Whether or not this InAppWidget has a search token.
                      type: boolean
                      default: true
                      example: true
                    header:
                      description: The HTML head content of the widget's page.
                      type: object
                      properties:
                        css:
                          description: The CSS resources of the widget.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.CSSResourceSharedModel'
                        javascript:
                          description: The JavaScript resources of the widget.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.JavaScriptResourceSharedModel'
                    id:
                      description: The unique identifier of the search page.
                      type: string
                      example: 12b627f9-e3aa-49db-a0f5-5c0c1392e59e
                    lastModified:
                      description: The time at which the search page was last modified.
                      type: string
                      example: '2019-10-31T20:17:35-04:00'
                    name:
                      description: The unique name of the search page.
                      type: string
                      example: My_Page
                    orgId:
                      description: The unique identifier of the parent Coveo Cloud organization.
                      type: string
                      example: mycoveocloudv2organizationg8tp8wu3
                    title:
                      description: The search page HTML title tag value.
                      type: string
                      example: My page
                    token:
                      description: The [search token](https://docs.coveo.com/en/1346/) to request when initializing the InAppWidget.
                      allOf:
                      - $ref: '#/components/schemas/swaggermodels.searchTokenConfigurationResponseModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorBadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorUnauthorized'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorForbidden'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorInternalServerError'
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
        description: The list of ids
        required: true
  /rest/organizations/{organizationID}/pages/inappwidgets/projectid:
    get:
      security:
      - OAuth2:
        - full
      description: 'lists InAppWidgets by project id in a [Coveo Cloud organization](https://docs.coveo.com/en/185/). <br/><br/>**Required privilege:** Search Pages - View<br/><details><summary>Privilege required</summary>```{ "owner": "SEARCH_API", "targetDomain": "SEARCH_PAGES", "type": "VIEW", "targetId": "*" }```</details>'
      tags:
      - In-App
      summary: List InAppWidgets by Project ID
      parameters:
      - description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/) (e.g., 'mycoveocloudv2organizationg8tp8wu3').
        name: organizationID
        in: path
        required: true
        schema:
          type: string
      - description: The project id
        name: projectid
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  required:
                  - name
                  - title
                  properties:
                    button:
                      description: The button.
                      type: object
                      properties:
                        buttonCSS:
                          description: The button's CSS.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.buttonCSSResponseModel'
                        buttonCSSClasses:
                          description: The CSS classes of the button.
                          type: array
                          items:
                            type: string
                          example:
                          - btn
                          - mod-primary
                        buttonColor:
                          description: The button's colors.
                          type: object
                          properties:
                            color:
                              description: The value of the button CSS background-color property.
                              type: string
                              example: '#2a2aa2'
                            textColor:
                              description: The value of the CSS color property.
                              type: string
                              example: '#e0e0e0'
                        buttonFont:
                          description: The button's font.
                          type: object
                          properties:
                            family:
                              description: The value of the CSS font-family property.
                              type: string
                              example: '''Courier New'', Courier, monospace'
                            size:
                              description: The value of the CSS font-size property.
                              type: string
                              example: 24px
                        buttonIcon:
                          description: The button's icon.
                          type: object
                          properties:
                            value:
                              description: The icon's stringified HTML.
                              type: string
                              default: "\n\t\t<svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\">     \n            <g fill=\"currentColor\">         \n                <path d=\"m1,11c0,5.52 4.48,10 10,10s10,-4.48 10,-10s-4.48,-10 -10,-10s-10,4.48 -10,10z\" fill=\"transparent\"></path>         \n                <path d=\"m11,22c-6.07,0 -11,-4.935 -11,-11s4.935,-11 11,-11s11,4.935 11,11s-4.935,11 -11,11m0,-20c-4.962,0 -9,4.04 -9,9s4.04,9 9,9s9,-4.04 9,-9s-4.04,-9 -9,-9\"></path>         \n                <path d=\"m10,17l2,0l0,-2l-2,0l0,2m1,-12.344c-2.21,0 -4,1.79 -4,4l2,0c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5l2,0c0,-2.25 3,-2.5 3,-5c0,-2.21 -1.79,-4 -4,-4\"></path>     \n            </g>\n        </svg>\n\t\t"
                              example: <svg><circle/></svg>
                        buttonJS:
                          description: The button's JavaScript.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.buttonJavaScriptResponseModel'
                        buttonPosition:
                          description: The button's text alignment.
                          type: object
                          properties:
                            horizontalPosition:
                              description: The horizontal alignment of the button.
                              type: string
                              default: Right
                              enum:
                              - Undefined
                              - Left
                              - Center
                              - Right
                              example: Center
                            verticalPosition:
                              description: 'The vertical alignment of the button.

                                The vertical alignment.'
                              type: string
                              default: Bottom
                              enum:
                              - Undefined
                              - Top
                              - Middle
                              - Bottom
                              example: Middle
                    content:
                      description: The HTML body content of the widget's page.
                      type: string
                      example: <main><h1>My page</h1></main>
                    hasToken:
                      description: Whether or not this InAppWidget has a search token.
                      type: boolean
                      default: true
                      example: true
                    header:
                      description: The HTML head content of the widget's page.
                      type: object
                      properties:
                        css:
                          description: The CSS resources of the widget.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.CSSResourceSharedModel'
                        javascript:
                          description: The JavaScript resources of the widget.
                          type: array
                          items:
                            $ref: '#/components/schemas/swaggermodels.JavaScriptResourceSharedModel'
                    id:
                      description: The unique identifier of the search page.
                      type: string
                      example: 12b627f9-e3aa-49db-a0f5-5c0c1392e59e
                    lastModified:
                      description: The time at which the search page was last modified.
                      type: string
                      example: '2019-10-31T20:17:35-04:00'
                    name:
                      description: The unique name of the search page.
                      type: string
                      example: My_Page
                    orgId:
                      description: The unique identifier of the parent Coveo Cloud organization.
                      type: string
                      example: mycoveocloudv2organizationg8tp8wu3
                    title:
                      description: The search page HTML title tag value.
                      type: string
                      example: My page
                    token:
                      description: The [search token](https://docs.coveo.com/en/1346/) to request when initializing the InAppWidget.
                      allOf:
                      - $ref: '#/components/schemas/swaggermodels.searchTokenConfigurationResponseModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorBadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorUnauthorized'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorForbidden'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/swaggermodels.ResponseApplicationErrorInternalServerError'
  /rest/organizations/{organizationID}/pages/{pageID}/inappwidget/loader:
    get:
      security:
      - OAuth2:
        - full
      description: Retrieves the JavaScript code that can initialize a specific InAppWidget configured in a [Coveo Cloud organization](https://docs.coveo.com/en/185). <br/><br/>**Required privilege:** None<br/>
      tags:
      - In-App
      summary: Get InAppWidget Loader
      parameters:
      - description: The unique identifier of the target Coveo Cloud [organization](https://docs.coveo.com/en/185) whose InAppWidget loader should be retrieved (e.g., 'mycoveocloudv2organizationg8tp8wu3').
        name: organizationID
        in: path
        required: true
        schema:
          type: string
      - description: The unique identifier of the search page whose corresponding InAppWidget loader should be retrieved (e.g., '12b627f9-e3aa-49db-a0f5-5c0c1392e59e').
        name: pageID
        in: path
        required: true
        schema:
          type: string
      - description: 

# --- truncated at 32 KB (48 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/openapi/coveo-in-app-api-openapi.yml