Gpt3.5 turbo api now to use please help me new to openai

How to use gpt3.5 turbo api
Can you please guide
getting this error for this endpoint*******
{ “error”: { “message”: “Unrecognized request argument supplied: messages”, “type”: “invalid_request_error”, “param”: null, “code”: null } }

The endpoint is /api/v1/chat/completions

You are missing the chat part of the URL

Here are the docs you need