Help Needed: Integrating Trello API with CustomGPT on OpenAI's ChatGPT - API Key and Token Issue

Help Needed: Integrating Trello API with CustomGPT on OpenAI’s ChatGPT - API Key and Token Issue

Context:

We are integrating Trello’s API with CustomGPT on OpenAI’s ChatGPT to fetch boards and create cards. We have an API key and an authentication token, but the OpenAPI 3.0 spec seems to support only one key.

Steps Taken:

  1. API Key and Token: Successfully obtained from Trello.
  2. OpenAPI Specification Attempts:
    • Tried using Authorization header for Base64 encoded key:token.
    • Faced issues with OpenAPI spec ignoring Authorization header.
    • Tried using key and token as query parameters but encountered authentication errors.

OpenAPI Specification (Latest Attempt):

openapi: 3.0.0
info:
  title: Trello API
  description: API specification for interacting with Trello.
  version: 1.0.0
servers:
  - url: https://api.trello.com/1
paths:
  /members/me/boards:
    get:
      operationId: getAllBoards
      summary: Get all boards for the authenticated user
      parameters:
        - name: key
          in: query
          required: true
          schema:
            type: string
          example: f95df4a0fb0f261c4f180df9abf26d40
        - name: token
          in: query
          required: true
          schema:
            type: string
          example: ATTAd7c5a0ddef9acc593e5f5d4dbaab56e49e8d134d55b01f82929f4ac98f8c460e4F9A0B8B
      responses:
        '200':
          description: A list of boards
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Board'
  /cards:
    post:
      operationId: createCard
      summary: Create a new card on a specific board
      parameters:
        - name: key
          in: query
          required: true
          schema:
            type: string
          example: f95df4a0fb0f261c4f180df9abf26d40
        - name: token
          in: query
          required: true
          schema:
            type: string
          example: ATTAd7c5a0ddef9acc593e5f5d4dbaab56e49e8d134d55b01f82929f4ac98f8c460e4F9A0B8B
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Card'
      responses:
        '200':
          description: The created card
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Card'
components:
  schemas:
    Board:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        desc:
          type: string
    Card:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        desc:
          type: string
        idList:
          type: string
  securitySchemes:
    ApiKeyTokenAuth:
      type: apiKey
      in: query
      name: key
security:
  - ApiKeyTokenAuth: []

Issues Encountered:

  • OpenAPI spec ignored the Authorization header.
  • Authentication errors when using key and token as query parameters.

Questions:

  1. How can we correctly integrate both the API key and token in the OpenAPI spec for Trello API?
  2. Is there a recommended approach to authenticate Trello API requests in the CustomGPT environment?

Any guidance on this would be highly appreciated!

Hi friend, I’m facing the same challenge, were you able to solve it and generate a call to create a card on Trello with a direct action?

I’m only getting it using n8n or make as an assistant connection and trello

I’m also trying to automate tasks from ChatGPT on custom actinons. I have the API key, the token, but I find OpenAI can’t use them together, can only use one securityScheme instead of those two needed.

Any one has been able to make ChatGPT create Trello cards or lists?