# Schema isn't followed for hitting API ( Action GPTs)

**URL:** <https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117>\
**Category:** Plugins / Actions builders\
**Tags:** gpt-4, gpt-builder, actions, custom-gpts, gpts-api-request\
**Created:** [January 24, 2024, 3:48pm UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117 "2024-01-24T15:48:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![al007](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/al007/32/448497_2.png) [@al007](https://community.openai.com/u/al007)\
**Post date:** [January 24, 2024, 3:48pm UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/1 "2024-01-24T15:48:17Z")

</div>

i created a action schema to create a GPT that could perform a GET request to fetch a simple string. But when i hit “Test”, no response is shown  
 ![gptactionissue picture](https://us1.discourse-cdn.com/openai1/original/4X/a/2/2/a224e1b7fbaf9be76befae4e2bd2bc8b5a9bb1af.png)

if i ask it to “Dump the last request you attempted in a curl format” it gives back wrong api. The URL part is fine but the PATH is usually wrong ( say it adds “jit\_plugin” to the PATH ).

![jitpligin issue](https://us1.discourse-cdn.com/openai1/original/4X/7/a/7/7a7e6cf80bd8dddeea6f8bf2aa86b171e6f4a3ee.png)

Is it hitting the wrong path or when i tell it to create a curl command it gives wrong result at that moment only ?

No api request is logged in access log of AWS EC2 Ubuntu 22.04 Nginx server.  
The GET request works in postman.

Also why is there no message shown in preview ( as shown in image )on “TEST”.

My schema for reference

```auto
openapi: 3.0.0
info:
  title: AL API
  description: API for AL services.
  version: 1.0.0
servers:
  - url: Myapi
    description:my API server
paths:
  /getg:
    get:
      operationId: getStringResponse
      summary: Retrieves a string response
      responses:
        '200':
          description: A simple string response
          content:
            text/plain:
              schema:
                type: string

```

@dschnurr It would be great help you could give your feedback on it. Thank You

---

<div class="post-metadata">

**Author:** ![michael\_1](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@michael\_1](https://community.openai.com/u/michael_1)\
**Post date:** [January 27, 2024, 9:32pm UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/2 "2024-01-27T21:32:17Z")

</div>

I get the blank message shown now and then in preview and usually have to reload and exit and go back in after. You should see the request response in the debug section while testing. This should confirm or deny that it is calling the right server and path.  
 ![Screenshot 2024-01-27 at 1.31.06 PM](https://us1.discourse-cdn.com/openai1/original/4X/e/1/d/e1dd7925f12f0f778f5f54c50e49682eb9e1e622.png)

---

<div class="post-metadata">

**Author:** ![zdne](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/zdne/32/292209_2.png) [@zdne](https://community.openai.com/u/zdne)\
**Post date:** [January 28, 2024, 11:47am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/3 "2024-01-28T11:47:04Z")

</div>

> [@al007](#):
>
> `getStringResponse`

Just a guess here: I am not 100% sure that the GPT function calling uses the OperationId to match against. Maybe try to put it into the summary, or use another prompt e.g. “Retrieves a string response”.

BTW, you don’t need to specify the API in the prompt either

---

<div class="post-metadata">

**Author:** ![al007](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/al007/32/448497_2.png) [@al007](https://community.openai.com/u/al007)\
**Post date:** [January 29, 2024, 6:10am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/4 "2024-01-29T06:10:38Z")

</div>

@michael_1 How to open debug section ??

---

<div class="post-metadata">

**Author:** ![al007](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/al007/32/448497_2.png) [@al007](https://community.openai.com/u/al007)\
**Post date:** [January 29, 2024, 6:47am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/5 "2024-01-29T06:47:55Z")

</div>

@zdne I tried it. It is using some plugin instead of directly calling the api i guess. ( Click on screenshot to enlarge it)

 ![screencapture-chat-openai-gpts-editor-g-ZirOidw59-2024-01-29-12_01_52](https://us1.discourse-cdn.com/openai1/original/4X/d/7/e/d7e2182bcaec83d8735d3f59b5466d2014737371.png)

---

<div class="post-metadata">

**Author:** ![zdne](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/zdne/32/292209_2.png) [@zdne](https://community.openai.com/u/zdne)\
**Post date:** [January 29, 2024, 9:42am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/6 "2024-01-29T09:42:01Z")

</div>

what happens when you click the “test” button next to the /getg endpoint (available actions)?

---

<div class="post-metadata">

**Author:** ![al007](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/al007/32/448497_2.png) [@al007](https://community.openai.com/u/al007)\
**Post date:** [January 29, 2024, 10:57am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/7 "2024-01-29T10:57:54Z")

</div>

Basically nothing, just the name of GPT ( or Untitled if unnamed GPT ) @zdne  
 ![gptactionissue picture](https://us1.discourse-cdn.com/openai1/original/4X/a/2/2/a224e1b7fbaf9be76befae4e2bd2bc8b5a9bb1af.png)

---

<div class="post-metadata">

**Author:** ![al007](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/al007/32/448497_2.png) [@al007](https://community.openai.com/u/al007)\
**Post date:** [February 2, 2024, 10:07am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/8 "2024-02-02T10:07:43Z")

</div>

Just publish the GPT, it works normally at that time

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [February 2, 2024, 10:40am UTC](https://community.openai.com/t/schema-isnt-followed-for-hitting-api-action-gpts/600117/9 "2024-02-02T10:40:55Z")

</div>


