API Reference - Lightsage

Documentation Index

Fetch the complete documentation index at: /docs/llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content

The Lightsage public API exposes the same contract used by the CLI. Use it to manage Visibility prompts, start eval runs, and work with API Performance resources from your own services and automation.

The public API uses API key authentication. It does not require browser login.

​ Base URL

All requests use this production base URL:

https://api.lightsage.com

Use https://api.lightsage.com for API calls.

​ Authenticate

Create an API key in the Lightsage dashboard:

  1. Open Settings > API Keys.
  2. Click Create API key.
  3. Copy the key when it is shown.

Send the key on every authenticated request with the X-Lightsage-Api-Key header:

curl https://api.lightsage.com/v1/auth/status \
  -H "X-Lightsage-Api-Key: ls_cli_your_api_key"

You can also store the key with the CLI and reuse the same credential for local testing:

lightsage auth login

​ Check API health

Verify that the public API is reachable:

curl https://api.lightsage.com/v1/status

Check that your API key is valid:

curl https://api.lightsage.com/v1/auth/status \
  -H "X-Lightsage-Api-Key: ls_cli_your_api_key"

​ Explore endpoints

The sidebar groups endpoints by resource:

Use the interactive playground on each endpoint page to send requests with your API key.

​ Create an eval simulation

POST /v2/evals stores a reusable simulation matrix. Prompts, judges, agents, CLIs, and MCP servers are arrays. persona applies to every attempt, and runs controls how many times each prompt-agent pair executes.

curl https://api.lightsage.com/v2/evals \
  -X POST \
  -H "X-Lightsage-Api-Key: ls_cli_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Lightsage interface simulation",
    "prompts": [\
      "Use the Lightsage CLI to create an eval.",\
      "Use the Lightsage MCP server to retrieve an eval."\
    ],
    "judges": ["The requested workflow completes successfully."],
    "persona": "Platform engineer",
    "agent": ["codex:gpt-5-4", "claude-code:claude-opus-4-8"],
    "clis": [\
      {"install_command": "brew install lightsagehq/tools/lightsage"}\
    ],
    "mcps": [{\
      "name": "lightsage",\
      "type": "http",\
      "url": "https://mcp.lightsage.com/mcp",\
      "headers": {\
        "X-Lightsage-Api-Key": "${LIGHTSAGE_API_KEY}"\
      }\
    }],
    "runs": 2
  }'

CLI and MCP arrays can mix saved references such as {"id": "<uuid>"} with inline definitions. Eval definitions do not accept secret environment values.

​ Start an eval run

POST /v2/eval-runs accepts a saved eval or the same fields directly. This example creates and queues eight attempts:

curl https://api.lightsage.com/v2/eval-runs \
  -X POST \
  -H "X-Lightsage-Api-Key: ls_cli_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompts": ["Use the CLI.", "Use the MCP server."],
    "judges": ["The workflow succeeds."],
    "agent": ["codex:gpt-5-4", "claude-code:claude-opus-4-8"],
    "mcps": [{\
      "name": "lightsage",\
      "type": "http",\
      "url": "https://mcp.lightsage.com/mcp",\
      "headers": {"X-Lightsage-Api-Key": "${LIGHTSAGE_API_KEY}"}\
    }],
    "env": {"LIGHTSAGE_API_KEY": "write-only-value"},
    "runs": 2
  }'

The maximum expanded matrix is 100 attempts. Inline environment values are write-only and are not returned in public run, result, trace, or analysis payloads.

​ CLI and SDK

The CLI is generated from this same OpenAPI contract. If you prefer command-line workflows, start with the CLI Reference.Download the raw OpenAPI spec from this docs site:

For generated SDKs, see the Lightsage OpenAPI repository.

{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lightsage","colors":{"primary":"#0EA5E9","light":"#38BDF8","dark":"#0284C7"},"logo":{"light":"https://mintcdn.com/sapient-14d4e375/0RQiSxJPQv6MyuZt/images/lightsage-logo-with-text-light.svg?fit=max\\u0026auto=format\\u0026n=0RQiSxJPQv6MyuZt\\u0026q=85\\u0026s=843d0563baa54c778891f942711ab938","dark":"https://mintcdn.com/sapient-14d4e375/0RQiSxJPQv6MyuZt/images/lightsage-logo-with-text-dark.svg?fit=max\\u0026auto=format\\u0026n=0RQiSxJPQv6MyuZt\\u0026q=85\\u0026s=0ec933f6e5153f8392cb4c5f19b7017f"},"favicon":"https://mintcdn.com/sapient-14d4e375/lnqlKs8p\_hzadcGt/images/favicon.png?fit=max\\u0026auto=format\\u0026n=lnqlKs8p\_hzadcGt\\u0026q=85\\u0026s=358b3be56f25189cd6d5417fd300fefc","background":{"color":{"light":"#FFFFFF","dark":"#0D0C0C"}},"navbar":{"links":\[{"href":"https://lightsage.com","label":"Homepage"}\],"primary":{"type":"button","label":"Dashboard","href":"https://app.lightsage.com"}},"seo":{"indexing":"all"},"fonts":{"family":"Geist"},"integrations":{"ga4":{"measurementId":"G-417S0EJVMS"},"posthog":{"apiKey":"phc\_yrA1TjjqeYfsoJEofjxd0Bw7cTrxs8N402k3NwusII7"}},"contextual":{"options":\["copy","chatgpt","cursor","vscode"\],"display":"header"},"styling":{"latex":false},"navigation":{"pages":\[\]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sapient-14d4e375","hasAudioNarration":false,"actualSubdomain":"sapient-14d4e375","customDomains":\["lightsage.com"\],"gitSource":{"type":"github","owner":"lightsagehq","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae02c324c09e96410641fcb","collectionId":"82419905-7508-4f98-a30d-d180f437b2ae","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae02c324c09e96410641fcb"},"entitlements":{"AI\_CHAT":{"status":"DISABLED"}},"buildId":"6ae02c324c09e96410641fcb","clientVersion":"0.0.3971","searchFilterCounts":\[{"language":"default","tag":"API Reference","count":74},{"language":"default","tag":"CLI Reference","count":18},{"language":"default","tag":"Evals","count":14},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Prompts","count":13},{"language":"default","tag":"Visibility","count":12},{"language":"default","tag":"MCP Reference","count":10},{"language":"default","tag":"Clients","count":9},{"language":"default","tag":"Agent Preference","count":8},{"language":"default","tag":"Agent Analytics","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/introduction","slug":"/api-reference/introduction","pageMetadata":{"title":"API Reference","sidebarTitle":"Overview","description":"Authenticate and call the Lightsage public API from your own integrations.","icon":"code","href":"/api-reference/introduction"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Authenticate and call the Lightsage public API from your own integrations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Lightsage public API exposes the same contract used by the CLI. Use it to manage Visibility prompts, start eval runs, and work with API Performance resources from your own services and automation.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The public API uses API key authentication. It does not require browser login.`})}),`\n`,_jsx(Heading,{level:`2`,id:`base-url`,children:`Base URL`}),`\n`,_jsx(_components.p,{children:`All requests use this production base URL:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.lightsage.com\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{})})\]})})}),\`\\n\`,\_jsx(Warning,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`https://api.lightsage.com\`}),\` for API calls.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authenticate`,children:`Authenticate`}),`\n`,_jsx(_components.p,{children:`Create an API key in the Lightsage dashboard:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`Settings > API Keys`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Create API key`}),`.`]}),`\n`,_jsx(_components.li,{children:`Copy the key when it is shown.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Send the key on every authenticated request with the `,_jsx(_components.code,{children:`X-Lightsage-Api-Key`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.lightsage.com/v1/auth/status\`}),\_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Lightsage-Api-Key: ls_cli_your_api_key\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can also store the key with the CLI and reuse the same credential for local testing:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lightsage`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`check-api-health`,children:`Check API health`}),`\n`,_jsx(_components.p,{children:`Verify that the public API is reachable:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.lightsage.com/v1/status\`})\]}),\`\\n\`\]})})}),\`\\n\`,\_jsx(_components.p,{children:`Check that your API key is valid:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.lightsage.com/v1/auth/status\`}),\_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Lightsage-Api-Key: ls_cli_your_api_key\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`explore-endpoints`,children:`Explore endpoints`}),`\n`,_jsx(_components.p,{children:`The sidebar groups endpoints by resource:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Status`}),` — health and authentication checks`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Prompts`}),` — Visibility prompt and topic workflows`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Performance`}),` — eval runs, sources, targets, skills, and related resources`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Use the interactive playground on each endpoint page to send requests with your API key.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-an-eval-simulation`,children:`Create an eval simulation`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v2/evals`}),` stores a reusable simulation matrix. Prompts, judges, agents,\nCLIs, and MCP servers are arrays. `,_jsx(_components.code,{children:`persona`}),` applies to every attempt, and `,_jsx(_components.code,{children:`runs`}),`\ncontrols how many times each prompt-agent pair executes.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.lightsage.com/v2/evals\`}),\_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Lightsage-Api-Key: ls_cli_your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Lightsage interface simulation\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompts\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Use the Lightsage CLI to create an eval.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Use the Lightsage MCP server to retrieve an eval.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"judges\": [\"The requested workflow completes successfully.\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"persona\": \"Platform engineer\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent\": [\"codex:gpt-5-4\", \"claude-code:claude-opus-4-8\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"clis\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {\"install_command\": \"brew install lightsagehq/tools/lightsage\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mcps\": [{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"lightsage\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"http\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://mcp.lightsage.com/mcp\\",\`})}),\`\\n\`,\_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"headers\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"X-Lightsage-Api-Key\": \"${LIGHTSAGE_API_KEY}\"'})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"runs\": 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`CLI and MCP arrays can mix saved references such as `,_jsx(_components.code,{children:`{\"id\": \"\u003cuuid>\"}`}),` with\ninline definitions. Eval definitions do not accept secret environment values.`]}),`\n`,_jsx(Heading,{level:`2`,id:`start-an-eval-run`,children:`Start an eval run`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v2/eval-runs`}),` accepts a saved eval or the same fields directly. This\nexample creates and queues eight attempts:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.lightsage.com/v2/eval-runs\`}),\_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Lightsage-Api-Key: ls_cli_your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompts\": [\"Use the CLI.\", \"Use the MCP server.\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"judges\": [\"The workflow succeeds.\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent\": [\"codex:gpt-5-4\", \"claude-code:claude-opus-4-8\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mcps\": [{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"lightsage\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"http\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://mcp.lightsage.com/mcp\\",\`})}),\`\\n\`,\_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"headers\": {\"X-Lightsage-Api-Key\": \"${LIGHTSAGE_API_KEY}\"}'})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"env\": {\"LIGHTSAGE_API_KEY\": \"write-only-value\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"runs\": 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The maximum expanded matrix is 100 attempts. Inline environment values are\nwrite-only and are not returned in public run, result, trace, or analysis\npayloads.`}),`\n`,_jsx(Heading,{level:`2`,id:`cli-and-sdk`,children:`CLI and SDK`}),`\n`,_jsxs(_components.p,{children:[`The CLI is generated from this same OpenAPI contract. If you prefer command-line workflows, start with the `,_jsx(_components.a,{href:`/cli-reference`,children:`CLI Reference`}),`.`]}),`\n`,_jsx(_components.p,{children:`Download the raw OpenAPI spec from this docs site:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://lightsage.com/docs/openapi.json\`,children:\`openapi.json\`})}),\`\\n\`\]}),\`\\n\`,\_jsxs(_components.p,{children:[`For generated SDKs, see the `,_jsx(_components.a,{href:`https://github.com/lightsagehq/openapi\`,children:\`Lightsage OpenAPI repository`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API Reference","sidebarTitle":"Overview","description":"Authenticate and call the Lightsage public API from your own integrations.","icon":"code","href":"/api-reference/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Base URL","slug":"base-url","depth":2,"children":[]},{"title":"Authenticate","slug":"authenticate","depth":2,"children":[]},{"title":"Check API health","slug":"check-api-health","depth":2,"children":[]},{"title":"Explore endpoints","slug":"explore-endpoints","depth":2,"children":[]},{"title":"Create an eval simulation","slug":"create-an-eval-simulation","depth":2,"children":[]},{"title":"Start an eval run","slug":"start-an-eval-run","depth":2,"children":[]},{"title":"CLI and SDK","slug":"cli-and-sdk","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sapient-14d4e375","siteName":"Lightsage","title":"API Reference - Lightsage","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-15T23:54:24.842Z","originalFileLocation":"api-reference/introduction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Authenticate and call the Lightsage public API from your own integrations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lightsage\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Reference - Lightsage\">\u003cmeta data-mint-head property=\"og:description\" content=\"Authenticate and call the Lightsage public API from your own integrations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lightsage\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://lightsage.com/docs/api-reference/introduction\\">\\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sapient-14d4e375.mintlify.app/\_mintlify/api/og/v2?division=Overview\\u0026amp;title=API+Reference\\u0026amp;description=Authenticate+and+call+the+Lightsage+public+API+from+your+own+integrations.\\u0026amp;theme=dd8ce0054346ff07fc865000\\u0026amp;signature=717b2aabeb2e6981e675c4de25e94c4f4fc13e4c0765147120bef139eb2e026d\\">\\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"API Reference - Lightsage\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Authenticate and call the Lightsage public API from your own integrations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sapient-14d4e375.mintlify.app/\_mintlify/api/og/v2?division=Overview\\u0026amp;title=API+Reference\\u0026amp;description=Authenticate+and+call+the+Lightsage+public+API+from+your+own+integrations.\\u0026amp;theme=dd8ce0054346ff07fc865000\\u0026amp;signature=717b2aabeb2e6981e675c4de25e94c4f4fc13e4c0765147120bef139eb2e026d\\">\\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lightsage\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0EA5E9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://lightsage.com/docs/api-reference/introduction\\">\\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\\",\\"@graph\\":\[{\\"@type\\":\\"Organization\\",\\"@id\\":\\"https://lightsage.com/#organization\\",\\"name\\":\\"Lightsage\\",\\"url\\":\\"https://lightsage.com\\",\\"logo\\":{\\"@type\\":\\"ImageObject\\",\\"url\\":\\"https://mintcdn.com/sapient-14d4e375/0RQiSxJPQv6MyuZt/images/lightsage-logo-with-text-light.svg?fit=max\\u0026auto=format\\u0026n=0RQiSxJPQv6MyuZt\\u0026q=85\\u0026s=843d0563baa54c778891f942711ab938\\"}},{\\"@type\\":\\"WebSite\\",\\"@id\\":\\"https://lightsage.com/docs#website\\",\\"name\\":\\"Lightsage\\",\\"url\\":\\"https://lightsage.com/docs\\",\\"publisher\\":{\\"@id\\":\\"https://lightsage.com/#organization\\"}},{\\"@type\\":\\"WebPage\\",\\"@id\\":\\"https://lightsage.com/docs/api-reference/introduction#webpage\\",\\"url\\":\\"https://lightsage.com/docs/api-reference/introduction\\",\\"name\\":\\"API Reference\",\"description\":\"Authenticate and call the Lightsage public API from your own integrations.\",\"dateModified\":\"2026-09-15T23:54:24.842Z\",\"isPartOf\":{\"@id\":\"https://lightsage.com/docs#website\\"},\\"breadcrumb\\":{\\"@id\\":\\"https://lightsage.com/docs/api-reference/introduction#breadcrumb\\"}},{\\"@type\\":\\"BreadcrumbList\\",\\"@id\\":\\"https://lightsage.com/docs/api-reference/introduction#breadcrumb\\",\\"itemListElement\\":\[{\\"@type\\":\\"ListItem\\",\\"position\\":1,\\"name\\":\\"Lightsage\\",\\"item\\":\\"https://lightsage.com/docs\\"},{\\"@type\\":\\"ListItem\\",\\"position\\":2,\\"name\\":\\"API Reference\",\"item\":\"https://lightsage.com/docs/api-reference/introduction\\"}\]},{\\"@type\\":\[\\"Article\\",\\"TechArticle\\"\],\\"@id\\":\\"https://lightsage.com/docs/api-reference/introduction#article\\",\\"headline\\":\\"API Reference\",\"name\":\"API Reference\",\"description\":\"Authenticate and call the Lightsage public API from your own integrations.\",\"url\":\"https://lightsage.com/docs/api-reference/introduction\\",\\"mainEntityOfPage\\":{\\"@id\\":\\"https://lightsage.com/docs/api-reference/introduction#webpage\\"},\\"dateModified\\":\\"2026-09-15T23:54:24.842Z\\",\\"publisher\\":{\\"@id\\":\\"https://lightsage.com/#organization\\"},\\"isPartOf\\":{\\"@id\\":\\"https://lightsage.com/docs#website\\"}}\]}\\u003c/script>\\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Lightsage\\",\\"creator\\":{\\"@type\\":\\"Organization\\",\\"name\\":\\"Mintlify\\",\\"url\\":\\"https://mintlify.com\\"}}\\u003c/script>","siteName":"Lightsage","nav":{"global":null,"tabs":\[{"tab":"Documentation","pages":\[{"title":"Documentation","href":""}\]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli-reference"}]},{"tab":"MCP Reference","pages":[{"title":"MCP Reference","href":"/mcp-reference"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","sidebarTitle":"Overview","icon":"code","href":"/api-reference/introduction"}]},{"group":"Status","pages":[{"title":"Get Status","description":"Checks API liveness without authentication. Use `GET /v2/auth/status` to validate an API key.","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/status","href":"/api-reference/status/get-status"},{"title":"Get Auth Status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/auth/status","href":"/api-reference/status/get-auth-status"}]},{"group":"Visibility","pages":[{"title":"Retrieve Current Visibility","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/current","href":"/api-reference/visibility/retrieve-current-visibility"},{"title":"Retrieve Visibility Overview","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/overview","href":"/api-reference/visibility/retrieve-visibility-overview"},{"title":"List Top Cited Urls","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/citations","href":"/api-reference/visibility/list-top-cited-urls"},{"title":"Retrieve Prompt Visibility Report","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/prompts","href":"/api-reference/visibility/retrieve-prompt-visibility-report"}]},{"group":"Prompts","pages":[{"title":"List Prompts","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts","href":"/api-reference/prompts/list-prompts"},{"title":"Create Prompts","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/prompts","href":"/api-reference/prompts/create-prompts"},{"title":"List Topics","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/topics","href":"/api-reference/prompts/list-topics"},{"title":"Create Topic","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/prompts/topics","href":"/api-reference/prompts/create-topic"},{"title":"Delete Topic","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/prompts/topics/{topic_id}","href":"/api-reference/prompts/delete-topic"},{"title":"Update Topic","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/prompts/topics/{topic_id}","href":"/api-reference/prompts/update-topic"},{"title":"List Prompt Runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/runs","href":"/api-reference/prompts/list-prompt-runs"},{"title":"Run Prompts","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/prompts/runs","href":"/api-reference/prompts/run-prompts"},{"title":"Get Prompt Run Status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/runs/{run_id}/status","href":"/api-reference/prompts/get-prompt-run-status"},{"title":"Retrieve Prompt Run","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/runs/{run_id}","href":"/api-reference/prompts/retrieve-prompt-run"},{"title":"Retrieve Prompt","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/{prompt_id}","href":"/api-reference/prompts/retrieve-prompt"},{"title":"Delete Prompt","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/prompts/{prompt_id}","href":"/api-reference/prompts/delete-prompt"},{"title":"Update Prompt","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/prompts/{prompt_id}","href":"/api-reference/prompts/update-prompt"}]},{"group":"Opportunities","pages":[{"title":"List Opportunities","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/opportunities","href":"/api-reference/opportunities/list-opportunities"},{"title":"Retrieve Opportunity","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/opportunities/{opportunity_id}","href":"/api-reference/opportunities/retrieve-opportunity"}]},{"group":"Tasks","pages":[{"title":"List Tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Create Task","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/tasks","href":"/api-reference/tasks/create-task"},{"title":"Retrieve Task","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/tasks/{task_id}","href":"/api-reference/tasks/retrieve-task"},{"title":"Update Task","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/tasks/{task_id}","href":"/api-reference/tasks/update-task"}]},{"group":"Site Audits","pages":[{"title":"List Site Audits","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/site-audits","href":"/api-reference/site-audits/list-site-audits"},{"title":"Retrieve Site Audit","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/site-audits/{site_id}","href":"/api-reference/site-audits/retrieve-site-audit"}]},{"group":"Agent Analytics","pages":[{"title":"List Agent Analytics Sites","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites","href":"/api-reference/agent-analytics/list-agent-analytics-sites"},{"title":"Retrieve Agent Analytics Summary","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/summary","href":"/api-reference/agent-analytics/retrieve-agent-analytics-summary"},{"title":"List Agent Analytics Sources","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/sources","href":"/api-reference/agent-analytics/list-agent-analytics-sources"},{"title":"List Agent Analytics Pages","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/pages","href":"/api-reference/agent-analytics/list-agent-analytics-pages"},{"title":"List Agent Analytics Error Pages","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/error-pages","href":"/api-reference/agent-analytics/list-agent-analytics-error-pages"},{"title":"List Agent Analytics Countries","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/countries","href":"/api-reference/agent-analytics/list-agent-analytics-countries"}]},{"group":"Evals","pages":[{"title":"List Evals","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals","href":"/api-reference/evals/list-evals"},{"title":"Create Eval","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/evals","href":"/api-reference/evals/create-eval"},{"title":"Create evals from a template","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/evals/batch","href":"/api-reference/evals/create-evals-from-a-template"},{"title":"Retrieve Eval","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals/{eval_id}","href":"/api-reference/evals/retrieve-eval"},{"title":"Delete Eval","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/evals/{eval_id}","href":"/api-reference/evals/delete-eval"},{"title":"Update Eval","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/evals/{eval_id}","href":"/api-reference/evals/update-eval"},{"title":"List Configurations","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals/{eval_id}/configurations","href":"/api-reference/evals/list-configurations"},{"title":"Create Configuration","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/evals/{eval_id}/configurations","href":"/api-reference/evals/create-configuration"},{"title":"Retrieve Configuration","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals/{eval_id}/configurations/{configuration_id}","href":"/api-reference/evals/retrieve-configuration"},{"title":"Delete Configuration","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/evals/{eval_id}/configurations/{configuration_id}","href":"/api-reference/evals/delete-configuration"},{"title":"Update Configuration","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/evals/{eval_id}/configurations/{configuration_id}","href":"/api-reference/evals/update-configuration"}]},{"group":"Eval Templates","pages":[{"title":"List Eval templates","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-templates","href":"/api-reference/eval-templates/list-eval-templates"},{"title":"Create an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/eval-templates","href":"/api-reference/eval-templates/create-an-eval-template"},{"title":"Retrieve an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-templates/{template_id}","href":"/api-reference/eval-templates/retrieve-an-eval-template"},{"title":"Delete an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/eval-templates/{template_id}","href":"/api-reference/eval-templates/delete-an-eval-template"},{"title":"Update an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/eval-templates/{template_id}","href":"/api-reference/eval-templates/update-an-eval-template"}]},{"group":"Eval Runs","pages":[{"title":"List Runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs","href":"/api-reference/eval-runs/list-runs"},{"title":"Start an eval run","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/eval-runs","href":"/api-reference/eval-runs/start-an-eval-run"},{"title":"Cancel an eval run","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/eval-runs/{run_id}/cancel","href":"/api-reference/eval-runs/cancel-an-eval-run"},{"title":"Monitor Runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs/monitor","href":"/api-reference/eval-runs/monitor-runs"},{"title":"Retrieve an eval run trace","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs/{run_id}/trace","href":"/api-reference/eval-runs/retrieve-an-eval-run-trace"},{"title":"Retrieve an eval run","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs/{run_id}","href":"/api-reference/eval-runs/retrieve-an-eval-run"}]},{"group":"Agent Preference","pages":[{"title":"List Competitors","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/competitors","href":"/api-reference/agent-preference/list-competitors"},{"title":"Retrieve Head To Head","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/head-to-head","href":"/api-reference/agent-preference/retrieve-head-to-head"},{"title":"List Evals","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/evals","href":"/api-reference/agent-preference/list-evals"},{"title":"Create Eval","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/agent-preference/evals","href":"/api-reference/agent-preference/create-eval"},{"title":"Retrieve Eval","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/evals/{eval_id}","href":"/api-reference/agent-preference/retrieve-eval"},{"title":"Delete Eval","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/agent-preference/evals/{eval_id}","href":"/api-reference/agent-preference/delete-eval"},{"title":"Update Eval","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/agent-preference/evals/{eval_id}","href":"/api-reference/agent-preference/update-eval"},{"title":"List Results","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/evals/{eval_id}/results","href":"/api-reference/agent-preference/list-results"}]},{"group":"Agents","pages":[{"title":"List Agents","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agents","href":"/api-reference/agents/list-agents"}]},{"group":"Repositories","pages":[{"title":"List Repositories","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/repositories","href":"/api-reference/repositories/list-repositories"},{"title":"Create Repository","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/repositories","href":"/api-reference/repositories/create-repository"},{"title":"Retrieve Repository","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/repositories/{repository_id}","href":"/api-reference/repositories/retrieve-repository"},{"title":"Delete Repository","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/repositories/{repository_id}","href":"/api-reference/repositories/delete-repository"},{"title":"Update Repository","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/repositories/{repository_id}","href":"/api-reference/repositories/update-repository"}]},{"group":"Environments","pages":[{"title":"List Environments","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/environments","href":"/api-reference/environments/list-environments"}]},{"group":"MCP Servers","pages":[{"title":"List Mcp Servers","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/mcp-servers","href":"/api-reference/mcp-servers/list-mcp-servers"}]},{"group":"CLIs","pages":[{"title":"List Clis","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/clis","href":"/api-reference/clis/list-clis"}]},{"group":"Skills","pages":[{"title":"List Skills","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/skills","href":"/api-reference/skills/list-skills"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"API Reference - Lightsage","buildId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","deploymentId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","dynamics":[],"chunks":[]}