Create a conversation.
Changed onCreates a new conversation session for an agent. Returns a session ID that you'll use to send messages. You can optionally provide a name to help identify the conversation later.
Notes: You can also create conversations implicitly by sending a message with a new session ID.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the agent (formerly known as project).
Request body
Example request
{
"name": "My conversation"
}Response
Create a new conversation
Example response
{
"status": "success",
"data": {
"created_at": "2023-04-30 16:43:53",
"updated_at": "2023-04-30 16:43:53",
"deleted_at": "2023-04-30 16:43:53",
"id": 1,
"name": "Conversation 1",
"session_id": "f1b9aaf0-5e4e-11eb-ae93-0242ac130002"
}
}Changes
- warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the non-success response with the status
- warning
- warning
added the new
Agent id is requiredenum value to the/response property for the response status - warning
added the new
Agent with id {projectId} not foundenum value to the/response property for the response status - info
removed the
Project id is requiredenum value from the/response property for the response status - info
removed the
Project with id {projectId} not foundenum value from the/response property for the response status
- warning