Retrieve a paginated list of Records for a Run, including all scores for each record.
GET
/
runs
/
{runId}
/
records
JavaScript
import Scorecard from 'scorecard-ai';const client = new Scorecard({ apiKey: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const recordListResponse of client.records.list('135')) { console.log(recordListResponse);}
import os
from scorecard_ai import Scorecard
client = Scorecard(
api_key=os.environ.get("SCORECARD_API_KEY"), # This is the default and can be omitted
)
page = client.records.list(
run_id="135",
)
page = page.data[0]
print(page)
{ "data": [ { "id": "456", "runId": "135", "testcaseId": "248", "inputs": { "question": "What is the capital of France?" }, "expected": { "idealAnswer": "Paris is the capital of France" }, "outputs": { "response": "The capital of France is Paris." }, "scores": [ { "recordId": "456", "metricConfigId": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "score": { "binaryScore": true, "reasoning": "The response correctly identifies Paris as the capital." } }, { "recordId": "456", "metricConfigId": "b2c3d4e5-f6a7-8901-2345-67890abcdef0", "score": { "intScore": 4, "reasoning": "Good answer but could be more detailed." } } ] }, { "id": "457", "runId": "135", "testcaseId": "249", "inputs": { "question": "What is the largest planet in our solar system?" }, "expected": { "idealAnswer": "Jupiter" }, "outputs": { "response": "Jupiter is the largest planet in our solar system." }, "scores": [ { "recordId": "457", "metricConfigId": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "score": { "binaryScore": true, "reasoning": "Correctly identified Jupiter." } }, { "recordId": "457", "metricConfigId": "b2c3d4e5-f6a7-8901-2345-67890abcdef0", "score": { "intScore": 5, "reasoning": "Perfect answer with good detail." } } ] } ], "nextCursor": "458", "hasMore": true}
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
runId
string
required
The ID of the Run to list records for.
Example:
"135"
Query Parameters
limit
integer
default:20
Maximum number of items to return (1-100). Use with cursor for pagination through large sets.
Example:
20
cursor
string
Cursor for pagination. Pass the nextCursor from the previous response to get the next page of results.
Example:
"123"
tags
string[]
Filter to records carrying every listed tag (repeatable, AND semantics). E.g. ?tags=urgent&tags=regression.
Maximum array length: 50
Minimum string length: 1
Response
Successfully retrieved list of Records with scores.
import Scorecard from 'scorecard-ai';const client = new Scorecard({ apiKey: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const recordListResponse of client.records.list('135')) { console.log(recordListResponse);}
import os
from scorecard_ai import Scorecard
client = Scorecard(
api_key=os.environ.get("SCORECARD_API_KEY"), # This is the default and can be omitted
)
page = client.records.list(
run_id="135",
)
page = page.data[0]
print(page)
{ "data": [ { "id": "456", "runId": "135", "testcaseId": "248", "inputs": { "question": "What is the capital of France?" }, "expected": { "idealAnswer": "Paris is the capital of France" }, "outputs": { "response": "The capital of France is Paris." }, "scores": [ { "recordId": "456", "metricConfigId": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "score": { "binaryScore": true, "reasoning": "The response correctly identifies Paris as the capital." } }, { "recordId": "456", "metricConfigId": "b2c3d4e5-f6a7-8901-2345-67890abcdef0", "score": { "intScore": 4, "reasoning": "Good answer but could be more detailed." } } ] }, { "id": "457", "runId": "135", "testcaseId": "249", "inputs": { "question": "What is the largest planet in our solar system?" }, "expected": { "idealAnswer": "Jupiter" }, "outputs": { "response": "Jupiter is the largest planet in our solar system." }, "scores": [ { "recordId": "457", "metricConfigId": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "score": { "binaryScore": true, "reasoning": "Correctly identified Jupiter." } }, { "recordId": "457", "metricConfigId": "b2c3d4e5-f6a7-8901-2345-67890abcdef0", "score": { "intScore": 5, "reasoning": "Perfect answer with good detail." } } ] } ], "nextCursor": "458", "hasMore": true}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Scorecard Docs","colors":{"primary":"#ff6e3e","light":"#ff6e3e","dark":"#ff6e3e"},"logo":{"light":"https://mintcdn.com/scorecard-d65b5e8a/gviGR82kwZvvX_2x/icons/avatar-light.png?fit=max\u0026auto=format\u0026n=gviGR82kwZvvX_2x\u0026q=85\u0026s=c58566770c3c6cf99bc06db1589525fa","dark":"https://mintcdn.com/scorecard-d65b5e8a/gviGR82kwZvvX_2x/icons/avatar-dark.png?fit=max\u0026auto=format\u0026n=gviGR82kwZvvX_2x\u0026q=85\u0026s=0b6b15c75e1afb22a729b620ca86cce7"},"favicon":"https://mintcdn.com/scorecard-d65b5e8a/gviGR82kwZvvX_2x/favicon.png?fit=max\u0026auto=format\u0026n=gviGR82kwZvvX_2x\u0026q=85\u0026s=5d4f8e005d4b93a6d970bf6827a3ddf3","api":{"examples":{"languages":["javascript","python","go","curl"]}},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://www.scorecard.io/book-a-demo","label":"Contact"}],"primary":{"type":"button","label":"Sign In","href":"https://app.scorecard.io/"}},"footer":{"socials":{"website":"https://www.scorecard.io/","github":"https://github.com/scorecard-ai","linkedin":"https://www.linkedin.com/company/scorecard-ai","twitter":"https://x.com/scorecardai"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-Y98MZSSCE3"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"About Us","icon":"building","href":"https://www.scorecard.io/about-us"},{"anchor":"Blog","icon":"newspaper","href":"https://www.scorecard.io/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scorecard-d65b5e8a","hasAudioNarration":false,"actualSubdomain":"scorecard-d65b5e8a","customDomains":["docs.scorecard.io"],"gitSource":{"type":"github","owner":"scorecard-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true,"edits":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae26cca66b0546299496241","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API Reference","count":51},{"language":"default","tag":"Guides","count":29},{"language":"default","tag":"Records","count":10},{"language":"default","tag":"Advanced features","count":9},{"language":"default","tag":"Quickstarts","count":9},{"language":"default","tag":"Core features","count":6},{"language":"default","tag":"Attachments","count":5},{"language":"default","tag":"Metrics","count":5},{"language":"default","tag":"Metric Groups","count":5},{"language":"default","tag":"Testcases","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"site-roles","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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area{max-width:55rem}#content-area:has([data-page-title=\"Product Updates\"]){margin-left:0}code{--primary-light: 62 255 110}"}]}
{"page":{"pagePath":"api-reference/list-records","slug":"/api-reference/list-records","pageMetadata":{"openapi":"get /runs/{runId}/records","title":"List Records and Scores","description":"Retrieve a paginated list of Records for a Run, including all scores for each record.","href":"/api-reference/list-records"},"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: \"Retrieve a paginated list of Records for a Run, including all scores for each record.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"get /runs/{runId}/records","title":"List Records and Scores","description":"Retrieve a paginated list of Records for a Run, including all scores for each record.","href":"/api-reference/list-records"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/scorecard-d65b5e8a/bc6995fc9737b50b/sentry.js"],"openApiReferenceData":{"operation":{"operationId":"listRecords","summary":"List Records","description":"Retrieve a paginated list of Records for a Run, including all scores for each record.","parameters":["ffdced0c-b244-46df-824c-41d860225bdb","0ae6f61e-8f14-4849-a7ca-7e4abf764e32","bf432e2d-965c-4eb2-8bed-d56cbad0f134","fefcb392-7c13-4aa7-8c00-85a5eb129ef4"],"responses":{"200":"ccca2bca-948e-4513-aebf-f86f38c5474d","401":"119cdcd2-eb7e-4898-9f7c-1fd9d0d18dc5","500":"ea90eeb1-cd3f-48f2-8358-e7cc119b3353"},"x-codeSamples":[{"lang":"JavaScript","source":"import Scorecard from 'scorecard-ai';\n\nconst client = new Scorecard({\n apiKey: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted\n});\n\n// Automatically fetches more pages as needed.\nfor await (const recordListResponse of client.records.list('135')) {\n console.log(recordListResponse);\n}"},{"lang":"Python","source":"import os\nfrom scorecard_ai import Scorecard\n\nclient = Scorecard(\n api_key=os.environ.get(\"SCORECARD_API_KEY\"), # This is the default and can be omitted\n)\npage = client.records.list(\n run_id=\"135\",\n)\npage = page.data[0]\nprint(page)"},{"lang":"cURL","source":"curl https://api2.scorecard.io/api/v2/runs/$RUN_ID/records \\\n -H \"Authorization: Bearer $SCORECARD_API_KEY\""}],"method":"get","type":"path","servers":["e39cf137-569b-4385-90e0-2afddbb16842"],"security":["3b6a4f46-fd7d-4270-8c7f-031599d7e714"],"path":"/runs/{runId}/records","baseUrlOptions":["https://api2.scorecard.io/api/v2"],"title":"List Records","codeSamples":[{"lang":"JavaScript","source":"import Scorecard from 'scorecard-ai';\n\nconst client = new Scorecard({\n apiKey: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted\n});\n\n// Automatically fetches more pages as needed.\nfor await (const recordListResponse of client.records.list('135')) {\n console.log(recordListResponse);\n}"},{"lang":"Python","source":"import os\nfrom scorecard_ai import Scorecard\n\nclient = Scorecard(\n api_key=os.environ.get(\"SCORECARD_API_KEY\"), # This is the default and can be omitted\n)\npage = client.records.list(\n run_id=\"135\",\n)\npage = page.data[0]\nprint(page)"},{"lang":"cURL","source":"curl https://api2.scorecard.io/api/v2/runs/$RUN_ID/records \\\n -H \"Authorization: Bearer $SCORECARD_API_KEY\""}],"requestExampleLanguages":["javascript","python","go","bash"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"ffdced0c-b244-46df-824c-41d860225bdb":{"in":"path","name":"runId","description":"The ID of the Run to list records for.","schema":{"type":"string","example":"135","isRequired":true,"description":"The ID of the Run to list records for.","uniqueKey":"","typeLabel":"string"},"required":true},"0ae6f61e-8f14-4849-a7ca-7e4abf764e32":{"in":"query","name":"limit","description":"Maximum number of items to return (1-100). Use with `cursor` for pagination through large sets.","schema":{"type":"integer","exclusiveMinimum":0,"default":20,"example":20,"description":"Maximum number of items to return (1-100). Use with `cursor` for pagination through large sets.","uniqueKey":"","typeLabel":"integer"}},"bf432e2d-965c-4eb2-8bed-d56cbad0f134":{"in":"query","name":"cursor","description":"Cursor for pagination. Pass the `nextCursor` from the previous response to get the next page of results.","schema":{"type":"string","example":"123","description":"Cursor for pagination. Pass the `nextCursor` from the previous response to get the next page of results.","uniqueKey":"","typeLabel":"string"}},"fefcb392-7c13-4aa7-8c00-85a5eb129ef4":{"in":"query","name":"tags","description":"Filter to records carrying every listed tag (repeatable, AND semantics). E.g. `?tags=urgent\u0026tags=regression`.","schema":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"items.[INDEX]","typeLabel":"string"},"maxItems":50,"description":"Filter to records carrying every listed tag (repeatable, AND semantics). E.g. `?tags=urgent\u0026tags=regression`.","uniqueKey":"","typeLabel":"string[]"}}},"responses":{"ccca2bca-948e-4513-aebf-f86f38c5474d":{"description":"Successfully retrieved list of Records with scores.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","description":"A record with all its associated scores.","required":["scores","id","runId","inputs","expected","outputs"],"properties":{"id":{"type":"string","description":"The ID of the Record.","isRequired":true,"uniqueKey":"data.items.[INDEX].id","typeLabel":"string"},"runId":{"type":"string","description":"The ID of the Run containing this Record.","isRequired":true,"uniqueKey":"data.items.[INDEX].runId","typeLabel":"string"},"inputs":{"type":"object","additionalProperties":true,"description":"The actual inputs sent to the system, which should match the system's input schema.","isRequired":true,"uniqueKey":"data.items.[INDEX].inputs","typeLabel":"object"},"expected":{"type":"object","additionalProperties":true,"description":"The expected outputs for the Testcase.","isRequired":true,"uniqueKey":"data.items.[INDEX].expected","typeLabel":"object"},"outputs":{"type":"object","additionalProperties":true,"description":"The actual outputs from the system.","isRequired":true,"uniqueKey":"data.items.[INDEX].outputs","typeLabel":"object"},"scores":{"type":"array","items":{"type":"object","properties":{"recordId":{"type":"string","description":"The ID of the Record this Score is for.","isRequired":true,"uniqueKey":"data.items.[INDEX].scores.items.[INDEX].recordId","typeLabel":"string"},"metricConfigId":{"type":"string","format":"uuid","description":"The ID of the MetricConfig this Score is for.","isRequired":true,"uniqueKey":"data.items.[INDEX].scores.items.[INDEX].metricConfigId","typeLabel":"string\u003cuuid>"},"score":{"type":"object","additionalProperties":true,"description":"The score of the Record, as arbitrary JSON. This data should ideally conform to the output schema defined by the associated MetricConfig. If it doesn't, validation errors will be captured in the `validationErrors` field.","isRequired":true,"uniqueKey":"data.items.[INDEX].scores.items.[INDEX].score","typeLabel":"object"},"userId":{"type":"string","description":"Who created the Score: `background-job` for automated graders, or a user ID for human-entered scores.","uniqueKey":"data.items.[INDEX].scores.items.[INDEX].userId","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"JSON Pointer to the field with the validation error.","example":"/data/question","isRequired":true,"uniqueKey":"data.items.[INDEX].scores.items.[INDEX].validationErrors.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Required field missing","isRequired":true,"uniqueKey":"data.items.[INDEX].scores.items.[INDEX].validationErrors.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"data.items.[INDEX].scores.items.[INDEX].validationErrors.items.[INDEX]","typeLabel":"object"},"description":"Validation errors found in the Score data. If present, the Score doesn't fully conform to its MetricConfig's schema.","uniqueKey":"data.items.[INDEX].scores.items.[INDEX].validationErrors","typeLabel":"object[]"}},"required":["recordId","metricConfigId","score"],"description":"A Score represents the evaluation of a Record against a specific MetricConfig. The actual `score` is stored as flexible JSON. While any JSON is accepted, it is expected to conform to the output schema defined by the MetricConfig. Any discrepancies will be noted in the `validationErrors` field, but the Score will still be stored.","uniqueKey":"data.items.[INDEX].scores.items.[INDEX]","typeLabel":"object"},"description":"All scores associated with this record.","isRequired":true,"uniqueKey":"data.items.[INDEX].scores","typeLabel":"object[]"},"testcaseId":{"type":"string","description":"The ID of the Testcase.","uniqueKey":"data.items.[INDEX].testcaseId","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"nextCursor":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"nextCursor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"nextCursor","typeLabel":"string | null"},"hasMore":{"type":"boolean","isRequired":true,"uniqueKey":"hasMore","typeLabel":"boolean"},"total":{"type":"integer","minimum":0,"uniqueKey":"total","typeLabel":"integer"}},"required":["data","nextCursor","hasMore"],"uniqueKey":"","typeLabel":"object"},"examples":{"Records with scores":{"title":"Records with scores","summary":"Records with scores","description":"Example response showing a paginated list of Records with their associated scores and reasoning.","value":{"data":[{"id":"456","runId":"135","testcaseId":"248","inputs":{"question":"What is the capital of France?"},"expected":{"idealAnswer":"Paris is the capital of France"},"outputs":{"response":"The capital of France is Paris."},"scores":[{"recordId":"456","metricConfigId":"a1b2c3d4-e5f6-7890-1234-567890abcdef","score":{"binaryScore":true,"reasoning":"The response correctly identifies Paris as the capital."}},{"recordId":"456","metricConfigId":"b2c3d4e5-f6a7-8901-2345-67890abcdef0","score":{"intScore":4,"reasoning":"Good answer but could be more detailed."}}]},{"id":"457","runId":"135","testcaseId":"249","inputs":{"question":"What is the largest planet in our solar system?"},"expected":{"idealAnswer":"Jupiter"},"outputs":{"response":"Jupiter is the largest planet in our solar system."},"scores":[{"recordId":"457","metricConfigId":"a1b2c3d4-e5f6-7890-1234-567890abcdef","score":{"binaryScore":true,"reasoning":"Correctly identified Jupiter."}},{"recordId":"457","metricConfigId":"b2c3d4e5-f6a7-8901-2345-67890abcdef0","score":{"intScore":5,"reasoning":"Perfect answer with good detail."}}]}],"nextCursor":"458","hasMore":true}}},"exampleType":"examples"}},"exampleType":"examples"},"119cdcd2-eb7e-4898-9f7c-1fd9d0d18dc5":{"description":"Error indicating that the request is not authenticated.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"x-stainless-any":true,"isRequired":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","details"],"description":"An API error.","uniqueKey":"","typeLabel":"object"},"examples":{"Authentication failure":{"title":"Authentication failure","summary":"Authentication failure","description":"Error returned when authentication credentials are invalid or missing.","value":{"code":"UNAUTHORIZED","message":"Invalid or missing authentication token","details":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"ea90eeb1-cd3f-48f2-8358-e7cc119b3353":{"description":"An internal service error indicating an issue with the Scorecard service.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"x-stainless-any":true,"isRequired":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","details"],"description":"An API error.","uniqueKey":"","typeLabel":"object"},"examples":{"Internal error":{"title":"Internal error","summary":"Internal error","description":"Generic error when an unexpected internal issue occurs.","value":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred while processing your request.","details":{}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3b6a4f46-fd7d-4270-8c7f-031599d7e714":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"starts with ak_","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"e39cf137-569b-4385-90e0-2afddbb16842":{"url":"https://api2.scorecard.io/api/v2"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"starts with ak_","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"scorecard-d65b5e8a","siteName":"Scorecard Docs","title":"List Records and Scores - Scorecard Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-22T23:03:16.409Z","originalFileLocation":"api-reference/list-records.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=\"Retrieve a paginated list of Records for a Run, including all scores for each record.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Scorecard Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_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=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List Records and Scores - Scorecard Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve a paginated list of Records for a Run, including all scores for each record.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Scorecard Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scorecard.io/api-reference/list-records\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scorecard-d65b5e8a.mintlify.site/_mintlify/api/og/v2?division=Records\u0026amp;title=List+Records+and+Scores\u0026amp;description=Retrieve+a+paginated+list+of+Records+for+a+Run%2C+including+all+scores+for+each+record.\u0026amp;theme=7d0e0bce121217be6e1dd31d\u0026amp;signature=50e60ad6e61f1b6ab9fb5192098eb07bda2d26eca50a2e4a7e37c774b9fcea3a\">\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=\"List Records and Scores - Scorecard Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve a paginated list of Records for a Run, including all scores for each record.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scorecard-d65b5e8a.mintlify.site/_mintlify/api/og/v2?division=Records\u0026amp;title=List+Records+and+Scores\u0026amp;description=Retrieve+a+paginated+list+of+Records+for+a+Run%2C+including+all+scores+for+each+record.\u0026amp;theme=7d0e0bce121217be6e1dd31d\u0026amp;signature=50e60ad6e61f1b6ab9fb5192098eb07bda2d26eca50a2e4a7e37c774b9fcea3a\">\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=\"/mintlify-assets/_mintlify/favicons/scorecard-d65b5e8a/Do2rsdnSyAMsQv_4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Scorecard Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff6e3e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scorecard.io/api-reference/list-records\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/list-records.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scorecard.io/#organization\",\"name\":\"Scorecard Docs\",\"url\":\"https://docs.scorecard.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scorecard-d65b5e8a/gviGR82kwZvvX_2x/icons/avatar-light.png?fit=max\u0026auto=format\u0026n=gviGR82kwZvvX_2x\u0026q=85\u0026s=c58566770c3c6cf99bc06db1589525fa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scorecard.io#website\",\"name\":\"Scorecard Docs\",\"url\":\"https://docs.scorecard.io\",\"publisher\":{\"@id\":\"https://docs.scorecard.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scorecard.io/api-reference/list-records#webpage\",\"url\":\"https://docs.scorecard.io/api-reference/list-records\",\"name\":\"List Records and Scores\",\"description\":\"Retrieve a paginated list of Records for a Run, including all scores for each record.\",\"dateModified\":\"2026-01-22T23:03:16.409Z\",\"isPartOf\":{\"@id\":\"https://docs.scorecard.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scorecard.io/api-reference/list-records#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scorecard.io/api-reference/list-records#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Records\",\"item\":\"https://docs.scorecard.io/api-reference/create-record\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List Records and Scores\",\"item\":\"https://docs.scorecard.io/api-reference/list-records\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scorecard.io/api-reference/list-records#apireference\",\"headline\":\"List Records and Scores\",\"name\":\"List Records and Scores\",\"description\":\"Retrieve a paginated list of Records for a Run, including all scores for each record.\",\"url\":\"https://docs.scorecard.io/api-reference/list-records\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scorecard.io/api-reference/list-records#webpage\"},\"dateModified\":\"2026-01-22T23:03:16.409Z\",\"publisher\":{\"@id\":\"https://docs.scorecard.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scorecard.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Scorecard Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Scorecard Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/list-records.md","siteName":"Scorecard Docs","nav":{"global":{"anchors":[{"anchor":"About Us","icon":"building","href":"https://www.scorecard.io/about-us"},{"anchor":"Blog","icon":"newspaper","href":"https://www.scorecard.io/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/intro/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","mode":"center","href":"/api-reference/overview"}]},{"group":"Projects","pages":[{"openapi":"post /projects","title":"Create Project","href":"/api-reference/create-project"},{"openapi":"get /projects","title":"List Projects","href":"/api-reference/list-projects"},{"openapi":"get /projects/{projectId}","title":"Get Project","href":"/api-reference/get-project"},{"openapi":"patch /projects/{projectId}","title":"Update Project","href":"/api-reference/update-project"}]},{"group":"Testsets","pages":[{"openapi":"post /projects/{projectId}/testsets","title":"Create Testset","href":"/api-reference/create-testset"},{"openapi":"get /projects/{projectId}/testsets","title":"List Testsets in Project","href":"/api-reference/list-testsets-in-project"},{"openapi":"get /testsets/{testsetId}","title":"Get Testset","href":"/api-reference/get-testset"},{"openapi":"patch /testsets/{testsetId}","title":"Update Testset","href":"/api-reference/update-testset"},{"openapi":"delete /testsets/{testsetId}","title":"Delete Testset","href":"/api-reference/delete-testset"}]},{"group":"Testcases","pages":[{"openapi":"post /testsets/{testsetId}/testcases","title":"Create multiple Testcases","href":"/api-reference/create-multiple-testcases"},{"openapi":"get /testsets/{testsetId}/testcases","title":"List Testcases in Testset","href":"/api-reference/list-testcases-in-testset"},{"openapi":"get /testcases/{testcaseId}","title":"Get Testcase","href":"/api-reference/get-testcase"},{"openapi":"put /testcases/{testcaseId}","title":"Update Testcase","href":"/api-reference/update-testcase"},{"openapi":"post /testcases/bulk-delete","title":"Delete multiple Testcases","href":"/api-reference/delete-multiple-testcases"}]},{"group":"Metrics","pages":[{"openapi":"post /projects/{projectId}/metrics","title":"Create Metric","href":"/api-reference/create-metric"},{"openapi":"get /projects/{projectId}/metrics","title":"List Metrics","href":"/api-reference/list-metrics"},{"openapi":"get /metrics/{metricId}","title":"Get Metric","href":"/api-reference/get-metric"},{"openapi":"patch /metrics/{metricId}","title":"Update Metric","href":"/api-reference/update-metric"},{"openapi":"delete /metrics/{metricId}","title":"Delete Metric","href":"/api-reference/delete-metric"}]},{"group":"Metric Groups","pages":[{"openapi":"post /projects/{projectId}/metric-groups","title":"Create Metric Group","href":"/api-reference/create-metric-group"},{"openapi":"get /projects/{projectId}/metric-groups","title":"List Metric Groups","href":"/api-reference/list-metric-groups"},{"openapi":"get /metric-groups/{metricGroupId}","title":"Get Metric Group","href":"/api-reference/get-metric-group"},{"openapi":"patch /metric-groups/{metricGroupId}","title":"Update Metric Group","href":"/api-reference/update-metric-group"},{"openapi":"delete /metric-groups/{metricGroupId}","title":"Delete Metric Group","href":"/api-reference/delete-metric-group"}]},{"group":"Runs","pages":[{"openapi":"post /projects/{projectId}/runs","title":"Create Run","href":"/api-reference/create-run"},{"openapi":"get /projects/{projectId}/runs","title":"List Runs","href":"/api-reference/list-runs"},{"openapi":"get /runs/{runId}","title":"Get Run","href":"/api-reference/get-run"}]},{"group":"Records","pages":[{"openapi":"post /runs/{runId}/records","title":"Create Record","description":"Create a new Record in a Run.","href":"/api-reference/create-record"},{"openapi":"get /runs/{runId}/records","title":"List Records and Scores","href":"/api-reference/list-records"},{"openapi":"delete /records/{recordId}","title":"Delete Record","description":"Delete a specific Record by ID.","href":"/api-reference/delete-record"},{"openapi":"get /records/{recordId}/annotations","title":"List Annotations","href":"/api-reference/list-annotations"},{"group":"Record Tags","expanded":true,"pages":[{"openapi":"post /records/{recordId}/tags","title":"Create Record Tag","href":"/api-reference/create-record-tag"},{"openapi":"get /records/{recordId}/tags","title":"List Record Tags","href":"/api-reference/list-record-tags"},{"openapi":"delete /records/{recordId}/tags/{text}","title":"Delete Record Tag","href":"/api-reference/delete-record-tag"}]},{"group":"Record Assignees","expanded":true,"pages":[{"openapi":"post /records/{recordId}/assignees","title":"Assign Record User","href":"/api-reference/assign-record-user"},{"openapi":"get /records/{recordId}/assignees","title":"List Record Assignees","href":"/api-reference/list-record-assignees"},{"openapi":"delete /records/{recordId}/assignees/{assigneeUserId}","title":"Unassign Record User","href":"/api-reference/unassign-record-user"}]}]},{"group":"Scores","pages":[{"openapi":"put /records/{recordId}/scores/{metricConfigId}","title":"Upsert Score","href":"/api-reference/upsert-score"}]},{"group":"Systems","pages":[{"openapi":"post /projects/{projectId}/systems","title":"Create (upsert) system","href":"/api-reference/create-upsert-system"},{"openapi":"get /projects/{projectId}/systems","title":"List systems","href":"/api-reference/list-systems"},{"openapi":"get /systems/{systemId}","title":"Get system","href":"/api-reference/get-system"},{"openapi":"patch /systems/{systemId}","title":"Update system","href":"/api-reference/update-system"},{"openapi":"delete /systems/{systemId}","title":"Delete system","href":"/api-reference/delete-system"}]},{"group":"System versions","pages":[{"openapi":"post /systems/{systemId}/versions","title":"Upsert system version","href":"/api-reference/upsert-system-version"},{"openapi":"get /systems/versions/{systemVersionId}","title":"Get system version","href":"/api-reference/get-system-version"}]},{"group":"Attachments","pages":[{"openapi":"post /attachments","title":"Initiate Attachment Upload","href":"/api-reference/initiate-attachment-upload"},{"openapi":"post /attachments/{attachmentId}/commit","title":"Commit Attachment Upload","href":"/api-reference/commit-attachment-upload"},{"openapi":"get /attachments/{attachmentId}","title":"Get Attachment","href":"/api-reference/get-attachment"},{"openapi":"delete /attachments/{attachmentId}","title":"Delete Attachment","href":"/api-reference/delete-attachment"},{"openapi":"get /sessions/{sessionId}/attachments","title":"List Session Attachments","href":"/api-reference/list-session-attachments"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"List Records and Scores - Scorecard Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","SectionHeading-K1iuDm9j.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}