Skip to content

Person chat

Send a message history about one person and the Deep Search API answers from that person's public footprint, with suggested next questions.

Send a request

POST/api/v1/chat
Required scope
chat
Response formats
SSE · JSON
Testing
Free sample data

Key and scope

Live calls need a key with the chat scope, sent as Authorization: Bearer $DEEPSEARCH_API_KEY. Sandbox calls can use the public test key instead.

Request fields

personobjectrequired

Who the conversation is about. Include at least person.name.

messagesMessage[]required

Every turn so far, as objects with a role (user or assistant) and a content string. Send at least one.

contextstring

Extra background for the answer, for example the summary of a dossier you already built.

formatenum

sse streams the answer while it is being written; json returns it complete.

ssejson

Default: sse

sandboxboolean

Set to true for fixed sample data that is never charged, for tests, demos and writing parsers.

Default: false

What comes back

A JSON response holds the operation's result together with request metadata, usage and every event gathered during the run. Over Server-Sent Events, those progress and result events reach you one by one while the work happens.

What the result covers

Chat carries on a conversation about one person. Post the whole message history with each call: the answer streams back grounded in that person's public footprint, together with a few related questions the user might ask next.

Cost and caching

A chat call is charged for what it really consumes: the model tokens plus any paid tools it calls.