Set the deal name
POST
/api/intake/{conversation_id}/deal-name
const url = 'https://example.com/api/intake/example/deal-name';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"deal_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/intake/example/deal-name \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "deal_name": "example" }'Sets the deal name for the conversation and creates the Pinecone namespace.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” conversation_id
required
Conversation Id
string
Request Body required
Section titled “Request Body required ” Media type application/json
DealNameRequest
object
deal_name
required
Deal Name
string
Example generated
{ "deal_name": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
DealNameResponse
object
conversation_id
required
Conversation Id
string
deal_name
required
Deal Name
string
status
required
Status
string
conversation_state
Any of:
ConversationStateSnapshot
Compact state object included in mutation responses so the frontend
can update its wizard without a separate /status poll.
object
status
required
Status
string
file_count
File Count
integer
has_deal_name
Has Deal Name
boolean
progress_step
Progress Step
string
suggested_name_parts
null
Example
{ "conversation_state": { "file_count": 0, "has_deal_name": false, "progress_step": "Unknown" }}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}