API Reference
Programmatically manage conversations and interact with your AI agent.
The YourGPT API allows you to build custom chat interfaces, automate conversations, and deeply integrate AI capabilities into your own backend or frontend applications.
You can use these endpoints to perform actions programmatically that are typically handled by our widget.
Create Session
Initialize a new chat session for a user.
Get Sessions
Retrieve a paginated list of chat sessions for your project.
Update Session
Update a session's state, chat mode, or segment tags.
Send Message
Send a user message to the agent and get a response.
Get Session Messages
Retrieve messages for a specific chat session.
Make Outbound Call
Initiate an outbound voice call via your AI agent.
Query Knowledgebase
Search your trained knowledgebase using semantic search.
Get Execution Logs
Retrieve chatbot execution logs showing actions and flows executed during conversations.