Archive and open a fresh conversation
POST
/conversation/save-and-start-new
const url = 'https://api.harperharbor.com/open/v1/conversation/save-and-start-new';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://api.harperharbor.com/open/v1/conversation/save-and-start-new \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”New conversation.
Media typeapplication/json
object
conversationId
string
title
string
messageCount
integer
Examplegenerated
{ "conversationId": "example", "title": "example", "messageCount": 1}conversation_limit_reached — the card already has 20 saves ({ limit, count }). Existing saves are retained.
Media typeapplication/json
object
error
required
Machine-readable code. unauthorized means authentication failed. Refresh the token; if refresh fails, request authorization again.
string
message
required
One English sentence a client may show verbatim.
string
retryable
boolean
detail
Present on some 4xx errors with the offending part.
object
key
additional properties
any
Example
{ "error": "unauthorized"}