GPTs actions設定を行ってGPTからkintoneのデータにアクセスしたい

GPTs actionsの設定を行ってkintoneにアクセスしたい。

GPTs actionsがエラーを出さないのでswaggerとcurlから確認したところlocationの設定の問題な気がしています。

現在試しているコードがこちらです。

openapi: 3.1.0
info:
  title: Sample Redirect API
  description: API that includes a redirect operation.
  version: 1.0.0
servers:
  - url: https:/***************.cybozu.com/k/v1
    description: Main (production) server
paths:
  /records.json:
    get:
      parameters:
        - name: app
          in: query
          required: true
          description: The ID of the kintone application
          schema:
            type: integer
            example: 137
      operationId: getExample
      summary: Example endpoint that might redirect.
      responses:
        "200":
          description: A normal response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        "302":
          description: Temporary redirect
          headers:
            Location:
              description: The URL to redirect to
              schema:
                type: string

は、
https:/***************.cybozu.com/
までのように思います。
pathの方も修正が必要そうです。

いろいろと試してみましたがうまくいきません。
接続自体はできてきてリクエストが不正ですというエラーになることがあります。

info:
  version: 1.0.0
  title: aaa
  summary: ''
servers:
  - url: https://******.cybozu.com
    description: ''
paths:
  /k/v1/records.json:
    get:
      parameters:
        - name: app
          in: query
          required: true
          description: The ID of the kintone application
          schema:
            type: integer
            example: 137
      summary: Your GET endpoint
      operationId: receivedata
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://ogura-printing.cybozu.com'
          description: ''
      responses:
        "200":
          description: A normal response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string```
現在のコードはこちらですが、apikeyのスキーマがうまく動いていない気はします。
尚、以下
```components:
  securitySchemes:
    apikey:
      type: apiKey
      name: X-Cybozu-API-Token
      in: header```
こちらのapiスキーマもいれたのですが、こちらは読まれていないような気がします。

GPTsのスキーマが若干仕様が違うようです。

kintoneの REST APIは、外部サイト(GPTs)から呼び出せない設定になっているので
呼び出せないのだと思います。
もし、設定するなら GPTs → 中継API → kintoneなどとするようです。
CORS - MDN Web Docs 用語集: ウェブ関連用語の定義 | MDN

GPTsのプレビュー画面でAPIを呼び出しているような画面で接続失敗するときに適当な文言がでますが、適当なことを回答しているようです。(APIトークンで認証しようとしているのにログインIDが違いますと表示されることもあった)

天気やペットのAPIが動く理由は、このCORSの設定が違うAPIだからということになります。

このトピックはベストアンサーに選ばれた返信から 3 日が経過したので自動的にクローズされました。新たに返信することはできません。