Report whether the caller can import eval results.
GET
/v1/evals/import/preflight
const url = 'https://app.everruns.com/api/v1/evals/import/preflight';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.everruns.com/api/v1/evals/import/preflightResponses
Section titled “ Responses ”Success
Media typeapplication/json
Preflight capability report so optional-feature clients (e.g. Mira) can check before publishing instead of failing mid-import.
object
can_import
required
Whether the caller may import (holds eval-management permission).
boolean
evals_enabled
required
Whether the evals feature is enabled for this org.
boolean
Example
{ "can_import": true, "evals_enabled": true}