Skip to main content
POST
Python SDK
Beta. This endpoint is in beta: the request shape may still change, and it may be temporarily unavailable during maintenance. Submit feedback on a best-effort basis — send it asynchronously, treat a failure as non-fatal, and never block your agent on the response.
Feedback tells Tavily how useful its results actually were for your task. It is the signal we use to improve ranking and result quality. Submitting feedback is free — it does not consume API credits.

Zero Data Retention

If your account or organization has Zero Data Retention enabled, the free-text and URL content you send here is not stored.

Authorizations

Authorization
string
header
required

Bearer authentication header in the form Bearer , where is your Tavily API key (e.g., Bearer tvly-YOUR_API_KEY).

Body

application/json
request_id
string

The search request to give feedback on, as returned in the request_id field of the search response. When provided, the feedback applies to this request.

Maximum string length: 200
Example:

"8442d8d0-8b74-4fca-a89e-5b1b6dd33295"

session_id
string

The session to give feedback on — the value you sent in the X-Session-Id header. When request_id is omitted, the feedback applies to the whole session. Optional if request_id is provided.

Maximum string length: 200
Example:

"5874812a-2e9b-43ea-8978-6cc9225b587b"

agent_score

Overall score for how relevant and useful the results were for your task.

Example:

1

human_score

Feedback from your end user, if you collect it.

Example:

1

extra_scores
object[]

Additional labeled scores for the dimensions you care about.

Maximum array length: 50
Example:
comment
string

Free-text explanation of the feedback.

Maximum string length: 10000
Example:

"Results were authoritative but several were more than a year old."

response_delivered
string

The final answer you produced using the results.

Maximum string length: 50000
Example:

"Lionel Messi is an Argentine footballer born in 1987..."

used_ids
string[]

IDs of the results you actually used in your answer. Alternative to used_urls.

Maximum array length: 100
Maximum string length: 200
Example:
used_urls
string[]

URLs of the results you actually used in your answer. Alternative to used_ids.

Maximum array length: 100
Maximum string length: 2000
Example:
used_citations
string[]

The specific content snippets you quoted from the results.

Maximum array length: 100
Maximum string length: 2000
Example:
urls_scores
object[]

Per-result feedback. Identify each result by id or url.

Maximum array length: 100
Example:

Response

Feedback accepted

success
boolean

Whether the feedback was accepted.

Example:

true

feedback_id
string

Unique identifier of this feedback submission.

Example:

"f1c0f0a5-0f9b-4a62-9e0e-1b6b2f0a6d31"

response_time
number

Response time of this feedback request in seconds.

Example:

0.05