Im havig this error error": { "message": "Invalid URL (POST /v1/assistants/idofmyassistant/completions)", "type": "invalid_request_error", when im trying to use it in postman

im sending this to my custom assistant im using postman im already create my assitant ,etc…
“messages”: [
{“role”: “user”, “content”: “¿Cómo puedo registrarme en el sistema?”}
and im getting this error
“error”: {
“message”: “Invalid URL (POST /v1/assistants/myassistantid/completions)”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null

Hello there!

This does not look like the correct api call. It looks like you’re trying to use the assistants api like the chat completions api.

assistants primarily use threads and messages to communicate with the chatbot.

You would likely build an assistant with the api:{assistant_id}

save that in code, then create (and save) a new thread that lives inside that assistant with this api:

and then send off a new message to that thread, not the assistant directly.{thread_id}/messages
1 Like