# Ask the agent a question
Source: https://docs.file.ai/api-reference/endpoint/ask-the-agent-a-question

> Adds a turn to the session and queues the agent run.

post /prod/v2/agent/sessions/{session_id}/ask

Adds a turn to the session and queues the agent run.

Returns 202 with a job_id and never an answer: a run routinely outlives
any HTTP request. Poll poll_url for the result, or let it arrive at the
API key's callback URL when the job settles.

A session runs one turn at a time — asking again while a run is live is
a 409. Wait for the job to reach a terminal status, or stop the run
first.

Scope the turn with file_ids, document_ids or directory_id; omit them to
inherit the session's scope, or set use_all_files to search the whole
workspace.
