e
Thanks, yeah i found the test interface in the UI, my question is if there is an API available.
s
That's not their test interface, it's mine, I created that UI using their API.
e
ohh
got a link to the docs you used?
s
Didn't use any docs. Just got it through trial and error.
Try sending something like this as a payload to /chat and then go from there.
Copy code
{
  "assistantId": "<assistantId>",
  "messages": [
    {
      "role": "user",
      "content": "put the first message here"
    }
  ],
  "stream": true
}
e
Thanks, yeah found that /chat endpoint indeed, but not feeling very confident using an undocumented api in a production app 😄
s
I'd expect ALL of this to change. I love VAPI, but they break shit constantly.
With that said, they'll probably keep that format for starting messages/chats. I think they just haven't gotten around to writing documentation for it yet.