import { createClient } from "@toloka-platform/sdk";const apiKey = process.env.TOLOKA_API_KEY;if (!apiKey) throw new Error("Set TOLOKA_API_KEY");const client = createClient({ baseUrl: process.env.TOLOKA_BASE_URL ?? "https://platform.toloka.ai", apiKey,});const me = await client.me();console.log(me.id, me.email);
TypeScript SDK
createClient
Create a typed client for the platform’s HTTP API.
import { createClient } from "@toloka-platform/sdk";const apiKey = process.env.TOLOKA_API_KEY;if (!apiKey) throw new Error("Set TOLOKA_API_KEY");const client = createClient({ baseUrl: process.env.TOLOKA_BASE_URL ?? "https://platform.toloka.ai", apiKey,});const me = await client.me();console.log(me.id, me.email);
import type { ClientConfig, PotatoClient } from "@toloka-platform/sdk";declare function createClient(config: ClientConfig): PotatoClient;
Parameters
ClientConfig
required
The platform URL and exactly one credential.
Show Configuration
string
required
Absolute platform URL, usually https://platform.toloka.ai. Path prefixes are preserved. Do not append /api/v2-beta.
string
Sends Authorization: ApiKey <key>. A value starting with pst_ sends X-Scoped-Token instead. Mutually exclusive with the other credentials.
string
Sends X-Scoped-Token: <token>. Mutually exclusive with the other credentials.
() => Promise<string>
Called for each SDK request. Sends the returned value as Authorization: Bearer <token>. Mutually exclusive with the other credentials.
typeof globalThis.fetch
default:"globalThis.fetch"
Custom fetch implementation, for example to inspect response headers.
Returns
PotatoClient
A client with typed resource methods and waitFor. Construction makes no request. See the client method index for operations and waitFor for polling.
Throws
Throws a local error for an empty base URL, an invalid absolute URL, or an empty API key or scoped token. It does not verify credentials against the platform during construction.See client and credentials for token management, request bodies, and rate limits.
import { createClient } from "@toloka-platform/sdk";const apiKey = process.env.TOLOKA_API_KEY;if (!apiKey) throw new Error("Set TOLOKA_API_KEY");const client = createClient({ baseUrl: process.env.TOLOKA_BASE_URL ?? "https://platform.toloka.ai", apiKey,});const me = await client.me();console.log(me.id, me.email);
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Toloka Platform","description":"Label your data, train a model, and build a repeatable workflow on Toloka Platform.","colors":{"primary":"#18181B","light":"#F4F4F5","dark":"#6E56CF"},"logo":{"light":"https://mintcdn.com/toloka-platform/fjh9GDGXaqVVguLv/logo/light.svg?fit=max\u0026auto=format\u0026n=fjh9GDGXaqVVguLv\u0026q=85\u0026s=9416e21160a0887c5e444512177d135c","dark":"https://mintcdn.com/toloka-platform/fjh9GDGXaqVVguLv/logo/dark.svg?fit=max\u0026auto=format\u0026n=fjh9GDGXaqVVguLv\u0026q=85\u0026s=649d79e1ccbcf9daf8320b1c0fd85de2"},"favicon":"https://mintcdn.com/toloka-platform/vXmp7okJgVEfMccw/favicon.svg?fit=max\u0026auto=format\u0026n=vXmp7okJgVEfMccw\u0026q=85\u0026s=821d83f2a395922abca12417944389eb","api":{"playground":{"display":"interactive","proxy":false},"examples":{"defaults":"required","languages":["typescript","bash","python"],"autogenerate":true}},"navbar":{"links":[{"href":"https://toloka.ai/talk-to-us","label":"Talk to us"}],"primary":{"type":"button","label":"Open platform","href":"https://platform.toloka.ai/"}},"footer":{"socials":{"website":"https://toloka.ai"},"links":[{"header":"Platform","items":[{"label":"Open platform","href":"https://platform.toloka.ai/"},{"label":"API reference","href":"/api-reference"}]},{"header":"Company","items":[{"label":"About Toloka","href":"https://toloka.ai/about"},{"label":"Blog","href":"https://toloka.ai/blog"},{"label":"Careers","href":"https://toloka.ai/careers"}]},{"header":"Legal","items":[{"label":"Terms","href":"https://toloka.ai/legal/terms"},{"label":"Privacy notice","href":"https://toloka.ai/legal/privacy-notice"},{"label":"Security","href":"https://toloka.ai/security"}]}]},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"toloka-platform","hasAudioNarration":false,"actualSubdomain":"toloka-platform","customDomains":["docs.platform.toloka.ai"],"gitSource":{"type":"github","owner":"toloka-dev","repo":"potato","deployBranch":"main","contentDirectory":"docs/mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6aeaf5259649d32714ca2223"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af745f6f089aa4c19f0ef0b","clientVersion":"0.0.4138","searchFilterCounts":[{"language":"default","tag":"Reference","count":344},{"language":"default","tag":"TypeScript SDK","count":123},{"language":"default","tag":"CLI","count":117},{"language":"default","tag":"HTTP API","count":109},{"language":"default","tag":"Guides","count":40},{"language":"default","tag":"Datasets","count":34},{"language":"default","tag":"Trainings","count":30},{"language":"default","tag":"Data Labeling","count":25},{"language":"default","tag":"Pipelines","count":20},{"language":"default","tag":"Projects","count":18}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":"workos-onboarding","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":"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":"assistant-v5","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":"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":"turbopuffer-dual-write","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},{"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--tlk-ink: #18181b;--tlk-on-ink: #ffffff;--tlk-muted: #52525b;--tlk-line: rgb(24 24 27 / 0.08);--tlk-line-strong: rgb(24 24 27 / 0.16);--tlk-selected: rgb(24 24 27 / 0.04);--tlk-surface: #f5f5f6;--tlk-gradient-hover: linear-gradient(120deg, #f1edfc 0%, #f4f3f7 55%, #eef7ea 100%);--tlk-gradient-icon: linear-gradient(135deg, #d6c9f7 0%, #e0dcf3 50%, #d1ebc4 100%);--tlk-underline: linear-gradient(90deg, #a996ec, #8fca7c);--tlk-hero:\n radial-gradient(60% 90% at 50% 65%, #dbd1f5 0%, rgb(219 209 245 / 0) 70%),\n radial-gradient(45% 80% at 0% 0%, #e1f1d9 0%, rgb(225 241 217 / 0) 70%),\n radial-gradient(45% 80% at 100% 0%, #e1f1d9 0%, rgb(225 241 217 / 0) 70%),\n linear-gradient(180deg, #e9ebee 0%, #f3effb 100%)}.dark{--tlk-ink: #f4f4f5;--tlk-on-ink: #18181b;--tlk-muted: #a1a1aa;--tlk-line: rgb(255 255 255 / 0.08);--tlk-line-strong: rgb(255 255 255 / 0.16);--tlk-selected: rgb(255 255 255 / 0.06);--tlk-surface: #141418;--tlk-gradient-hover: linear-gradient(120deg, #1e1a2b 0%, #18181c 55%, #18211b 100%);--tlk-gradient-icon: linear-gradient(135deg, #3a3060 0%, #2a2836 50%, #26392b 100%);--tlk-hero:\n radial-gradient(60% 90% at 50% 65%, #2b2447 0%, rgb(43 36 71 / 0) 70%),\n radial-gradient(45% 80% at 0% 0%, #1c2a20 0%, rgb(28 42 32 / 0) 70%),\n radial-gradient(45% 80% at 100% 0%, #1c2a20 0%, rgb(28 42 32 / 0) 70%),\n linear-gradient(180deg, #121216 0%, #17141f 100%)}img.nav-logo{height:1.25rem!important;width:auto!important}#topbar-cta-button a span.absolute{background-color:var(--tlk-ink);border-radius:9999px}#topbar-cta-button a{border-radius:9999px}#topbar-cta-button a .text-white,#topbar-cta-button a svg{color:var(--tlk-on-ink)}.navbar-link a{border-radius:9999px}li[data-active-nav-item]>a[aria-current=\"page\"]{background-color:var(--tlk-selected);background-image:linear-gradient(180deg, #b6a3f0, #96cc84);background-position:0.375rem center;background-repeat:no-repeat;background-size:2px 1rem;color:var(--tlk-ink);font-weight:500}.eyebrow{color:var(--tlk-muted)!important}#content-area h1,#content-area h2,#content-area h3{font-weight:500;letter-spacing:-0.015em}#page-title{font-size:2.25rem;line-height:1.15}#content :where(a.link):not(:where(.not-prose,.not-prose *)){border-bottom:0;background-image:var(--tlk-underline);background-position:0 100%;background-repeat:no-repeat;background-size:100% 2px}#content :where(a.link:hover):not(:where(.not-prose,.not-prose *)){background-image:linear-gradient(var(--tlk-ink), var(--tlk-ink))}#content :where(a.link):has(>code:only-child):not(:where(.not-prose,.not-prose *)){background-image:none}#content :where(a.link):has(>code:only-child):not(:where(.not-prose,.not-prose *))>code{transition:background-color 150ms,\n box-shadow 150ms}#content :where(a.link:hover):has(>code:only-child):not(:where(.not-prose,.not-prose *))>code{background-color:var(--tlk-selected);box-shadow:inset 0 0 0 1px var(--tlk-line-strong)}#content img:not([data-component-part]){border:1px solid var(--tlk-line);border-radius:0.75rem}#content .card{background-color:var(--tlk-surface);border-color:transparent;transition:background-color 150ms ease, border-color 150ms ease}#content .card[role=\"link\"]:hover,#content a.card[href]:hover{background-image:var(--tlk-gradient-hover);border-color:var(--tlk-line-strong)!important}#content .card [data-component-part=\"card-icon\"]{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:0.625rem;background-image:var(--tlk-gradient-icon)}#content .card [data-component-part=\"card-icon\"] svg{width:1.125rem;height:1.125rem;background-color:var(--tlk-ink)!important}#content .card [data-component-part=\"card-title\"]{color:var(--tlk-ink);font-weight:500}.tlk-home{max-width:64rem;margin:0 auto;padding:2rem 0 4rem}.tlk-hero{padding:3.5rem 3rem;border-radius:1.5rem;background:var(--tlk-hero)}.tlk-hero-eyebrow{margin:0 0 1.25rem;color:var(--tlk-muted);font-size:0.8125rem;font-weight:500;letter-spacing:0.01em}.tlk-hero-title{margin:0;color:var(--tlk-ink);font-size:clamp(2.5rem, 4.6vw, 3.75rem);font-weight:500;line-height:1.04;letter-spacing:-0.035em}.tlk-hero-lead{max-width:36rem;margin:1.25rem 0 2rem;color:var(--tlk-muted);font-size:1.125rem;line-height:1.6}.tlk-hero-actions{display:flex;flex-wrap:wrap;gap:0.75rem}.tlk-home a.tlk-button{display:inline-flex;align-items:center;gap:0.375rem;height:2.5rem;padding:0 1.25rem;border:1px solid transparent;border-radius:9999px;font-size:0.9375rem;font-weight:500;text-decoration:none;transition:opacity 150ms ease, background-color 150ms ease}.tlk-home a.tlk-button-primary{background-color:var(--tlk-ink);color:var(--tlk-on-ink)}.tlk-home a.tlk-button-primary:hover{opacity:0.85}.tlk-home a.tlk-button-secondary{border-color:var(--tlk-line-strong);background-color:rgb(255 255 255 / 0.55);color:var(--tlk-ink)}.dark .tlk-home a.tlk-button-secondary{background-color:rgb(255 255 255 / 0.04)}.tlk-home a.tlk-button-secondary:hover{background-color:rgb(255 255 255 / 0.85)}.dark .tlk-home a.tlk-button-secondary:hover{background-color:rgb(255 255 255 / 0.1)}.tlk-home a.tlk-button:focus-visible,#content .tlk-reference a:focus-visible{outline:2px solid var(--tlk-ink);outline-offset:3px}.tlk-home .tlk-section-title{margin:3.5rem 0 1rem;color:var(--tlk-ink);font-size:1.5rem;font-weight:500;letter-spacing:-0.02em}.tlk-reference{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:2rem}.tlk-reference-title{margin:0 0 0.25rem;color:var(--tlk-muted);font-size:0.8125rem;font-weight:500}#content .tlk-reference a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 0;border-bottom:1px solid var(--tlk-line);color:var(--tlk-ink);font-size:0.9375rem;text-decoration:none}#content .tlk-reference a::after{content:\"→\";color:var(--tlk-muted);transition:transform 150ms ease}#content .tlk-reference a[href^=\"http\"]::after{content:\"↗\"}#content .tlk-reference a:hover::after{transform:translateX(3px);color:var(--tlk-ink)}@media (min-width: 1024px){#content-container{padding-left:2.25rem;padding-right:2.25rem}}@media (max-width: 1023px){.tlk-home{padding-inline:1.25rem}}@media (max-width: 767px){.tlk-home{padding-top:1rem;padding-inline:1rem}.tlk-hero{padding:2rem 1.25rem;border-radius:1.25rem}.tlk-hero-title{font-size:2.125rem}.tlk-hero-lead{font-size:1rem}.tlk-home a.tlk-button{padding:0 1rem}.tlk-reference{grid-template-columns:minmax(0, 1fr);gap:1.5rem}}@media (prefers-reduced-motion: reduce){.tlk-home a.tlk-button,#content .tlk-reference a::after,#content .card{transition:none}}div:has(>.method-pill)>[data-component-part=\"scroll-area\"] [data-component-part=\"scroll-area-content\"]{min-width:0!important}div:has(>.method-pill)>[data-component-part=\"scroll-area\"] [data-component-part=\"scroll-area-content\"]>div{flex-wrap:wrap;row-gap:0.125rem}"}],"page":{"pagePath":"sdk/reference/create-client","slug":"/sdk/reference/create-client","pageMetadata":{"title":"createClient","sidebarTitle":"createClient()","description":"Create a typed client for the platform's HTTP API.","sources":[{"code":"packages/sdk/src/client.ts#createClient"},{"code":"packages/sdk/src/transport.ts#createRequestOptions"},{"code":"packages/sdk/src/index.ts"}],"href":"/sdk/reference/create-client"},"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: \"Create a typed client for the platform’s HTTP API.\"\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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ClientConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PotatoClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@toloka-platform/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`declare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ClientConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PotatoClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ResponseField,{name:`config`,type:`ClientConfig`,required:true,id:`param-config`,children:[_jsx(_components.p,{children:`The platform URL and exactly one credential.`}),_jsxs(Expandable,{title:`Configuration`,children:[_jsx(ResponseField,{name:`baseUrl`,type:`string`,required:true,id:`param-base-url`,children:_jsxs(_components.p,{children:[`Absolute platform URL, usually `,_jsx(_components.code,{children:`https://platform.toloka.ai`}),`. Path prefixes are preserved. Do not append `,_jsx(_components.code,{children:`/api/v2-beta`}),`.`]})}),_jsx(ResponseField,{name:`apiKey`,type:`string`,id:`param-api-key`,children:_jsxs(_components.p,{children:[`Sends `,_jsx(_components.code,{children:`Authorization: ApiKey \u003ckey>`}),`. A value starting with `,_jsx(_components.code,{children:`pst_`}),` sends `,_jsx(_components.code,{children:`X-Scoped-Token`}),` instead. Mutually exclusive with the other credentials.`]})}),_jsx(ResponseField,{name:`scopedToken`,type:`string`,id:`param-scoped-token`,children:_jsxs(_components.p,{children:[`Sends `,_jsx(_components.code,{children:`X-Scoped-Token: \u003ctoken>`}),`. Mutually exclusive with the other credentials.`]})}),_jsx(ResponseField,{name:`accessToken`,type:`() => Promise\u003cstring>`,id:`param-access-token`,children:_jsxs(_components.p,{children:[`Called for each SDK request. Sends the returned value as `,_jsx(_components.code,{children:`Authorization: Bearer \u003ctoken>`}),`. Mutually exclusive with the other credentials.`]})}),_jsx(ResponseField,{name:`fetch`,type:`typeof globalThis.fetch`,default:`globalThis.fetch`,id:`param-fetch`,children:_jsx(_components.p,{children:`Custom fetch implementation, for example to inspect response headers.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(ResponseField,{name:`client`,type:`PotatoClient`,id:`param-client`,children:_jsxs(_components.p,{children:[`A client with typed resource methods and `,_jsx(_components.code,{children:`waitFor`}),`. Construction makes no request. See the `,_jsx(_components.a,{href:`/sdk/reference/client-methods`,children:`client method index`}),` for operations and `,_jsx(_components.a,{href:`/sdk/reference/wait-for`,children:`waitFor`}),` for polling.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`throws`,children:`Throws`}),`\n`,_jsx(_components.p,{children:`Throws a local error for an empty base URL, an invalid absolute URL, or an empty API key or scoped token. It does not verify credentials against the platform during construction.`}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/sdk/client`,children:`client and credentials`}),` for token management, request bodies, and rate limits.`]})]})}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":"createClient","sidebarTitle":"createClient()","description":"Create a typed client for the platform's HTTP API.","sources":[{"code":"packages/sdk/src/client.ts#createClient"},{"code":"packages/sdk/src/transport.ts#createRequestOptions"},{"code":"packages/sdk/src/index.ts"}],"href":"/sdk/reference/create-client"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,RequestExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ClientConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PotatoClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@toloka-platform/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`declare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ClientConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PotatoClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ResponseField,{name:`config`,type:`ClientConfig`,required:true,id:`param-config`,children:[_jsx(_components.p,{children:`The platform URL and exactly one credential.`}),_jsxs(Expandable,{title:`Configuration`,children:[_jsx(ResponseField,{name:`baseUrl`,type:`string`,required:true,id:`param-base-url`,children:_jsxs(_components.p,{children:[`Absolute platform URL, usually `,_jsx(_components.code,{children:`https://platform.toloka.ai`}),`. Path prefixes are preserved. Do not append `,_jsx(_components.code,{children:`/api/v2-beta`}),`.`]})}),_jsx(ResponseField,{name:`apiKey`,type:`string`,id:`param-api-key`,children:_jsxs(_components.p,{children:[`Sends `,_jsx(_components.code,{children:`Authorization: ApiKey \u003ckey>`}),`. A value starting with `,_jsx(_components.code,{children:`pst_`}),` sends `,_jsx(_components.code,{children:`X-Scoped-Token`}),` instead. Mutually exclusive with the other credentials.`]})}),_jsx(ResponseField,{name:`scopedToken`,type:`string`,id:`param-scoped-token`,children:_jsxs(_components.p,{children:[`Sends `,_jsx(_components.code,{children:`X-Scoped-Token: \u003ctoken>`}),`. Mutually exclusive with the other credentials.`]})}),_jsx(ResponseField,{name:`accessToken`,type:`() => Promise\u003cstring>`,id:`param-access-token`,children:_jsxs(_components.p,{children:[`Called for each SDK request. Sends the returned value as `,_jsx(_components.code,{children:`Authorization: Bearer \u003ctoken>`}),`. Mutually exclusive with the other credentials.`]})}),_jsx(ResponseField,{name:`fetch`,type:`typeof globalThis.fetch`,default:`globalThis.fetch`,id:`param-fetch`,children:_jsx(_components.p,{children:`Custom fetch implementation, for example to inspect response headers.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(ResponseField,{name:`client`,type:`PotatoClient`,id:`param-client`,children:_jsxs(_components.p,{children:[`A client with typed resource methods and `,_jsx(_components.code,{children:`waitFor`}),`. Construction makes no request. See the `,_jsx(_components.a,{href:`/sdk/reference/client-methods`,children:`client method index`}),` for operations and `,_jsx(_components.a,{href:`/sdk/reference/wait-for`,children:`waitFor`}),` for polling.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`throws`,children:`Throws`}),`\n`,_jsx(_components.p,{children:`Throws a local error for an empty base URL, an invalid absolute URL, or an empty API key or scoped token. It does not verify credentials against the platform during construction.`}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/sdk/client`,children:`client and credentials`}),` for token management, request bodies, and rate limits.`]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@toloka-platform/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`TOLOKA_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set TOLOKA_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` baseUrl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`TOLOKA_BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.toloka.ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` me`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`me`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`me`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`me`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})})]})}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":"createClient","sidebarTitle":"createClient()","description":"Create a typed client for the platform's HTTP API.","sources":[{"code":"packages/sdk/src/client.ts#createClient"},{"code":"packages/sdk/src/transport.ts#createRequestOptions"},{"code":"packages/sdk/src/index.ts"}],"href":"/sdk/reference/create-client"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]},{"title":"Throws","slug":"throws","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">createClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"@toloka-platform/sdk\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> apiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> process\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">TOLOKA_API_KEY\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">apiKey\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Set TOLOKA_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> createClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> baseUrl:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> process\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">TOLOKA_BASE_URL\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> ??\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://platform.toloka.ai\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> apiKey\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> me\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">me\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">me\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">id\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">me\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">email\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/docs/_mintlify/custom/toloka-platform/de8aa1b19d1c608c/platform-links.js"],"subdomain":"toloka-platform","siteName":"Toloka Platform","title":"createClient - Toloka Platform","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T16:57:04.574Z","originalFileLocation":"sdk/reference/create-client.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=\"Create a typed client for the platform\u0026#x27;s HTTP API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Toloka Platform\">\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/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_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/toloka-platform/DF8VYWTGOtIk-J7s/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"createClient - Toloka Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a typed client for the platform\u0026#x27;s HTTP API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Toloka Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://toloka-platform.mintlify.site/docs/_mintlify/api/og/v2?division=TypeScript+SDK\u0026amp;title=createClient\u0026amp;description=Create+a+typed+client+for+the+platform%27s+HTTP+API.\u0026amp;theme=aa093a67daef2c04a2475138\u0026amp;signature=115f9785cc548296274a15ff8758fab4e293e86cc1a22af4def64122a4603c35\">\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=\"createClient - Toloka Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a typed client for the platform\u0026#x27;s HTTP API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://toloka-platform.mintlify.site/docs/_mintlify/api/og/v2?division=TypeScript+SDK\u0026amp;title=createClient\u0026amp;description=Create+a+typed+client+for+the+platform%27s+HTTP+API.\u0026amp;theme=aa093a67daef2c04a2475138\u0026amp;signature=115f9785cc548296274a15ff8758fab4e293e86cc1a22af4def64122a4603c35\">\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/toloka-platform/DF8VYWTGOtIk-J7s/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Toloka Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/sdk/reference/create-client.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.platform.toloka.ai/#organization\",\"name\":\"Toloka Platform\",\"url\":\"https://docs.platform.toloka.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/toloka-platform/fjh9GDGXaqVVguLv/logo/light.svg?fit=max\u0026auto=format\u0026n=fjh9GDGXaqVVguLv\u0026q=85\u0026s=9416e21160a0887c5e444512177d135c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.platform.toloka.ai/docs#website\",\"name\":\"Toloka Platform\",\"url\":\"https://docs.platform.toloka.ai/docs\",\"publisher\":{\"@id\":\"https://docs.platform.toloka.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client#webpage\",\"url\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client\",\"name\":\"createClient\",\"description\":\"Create a typed client for the platform's HTTP API.\",\"dateModified\":\"2026-11-04T16:57:04.574Z\",\"isPartOf\":{\"@id\":\"https://docs.platform.toloka.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TypeScript SDK\",\"item\":\"https://docs.platform.toloka.ai/docs/sdk/reference/client-methods\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"createClient\",\"item\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client#article\",\"headline\":\"createClient\",\"name\":\"createClient\",\"description\":\"Create a typed client for the platform's HTTP API.\",\"url\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client\",\"mainEntityOfPage\":{\"@id\":\"https://docs.platform.toloka.ai/docs/sdk/reference/create-client#webpage\"},\"dateModified\":\"2026-11-04T16:57:04.574Z\",\"publisher\":{\"@id\":\"https://docs.platform.toloka.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.platform.toloka.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Toloka Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Toloka Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/sdk/reference/create-client.md","siteName":"Toloka Platform","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"SDKs","icon":"boxes","pages":[{"title":"SDKs","href":"/sdk"}]},{"tab":"Reference","icon":"code","groups":[{"group":"Reference","pages":[{"title":"Reference","sidebarTitle":"Overview","href":"/reference"}]},{"group":"TypeScript SDK","pages":[{"title":"Client reference","sidebarTitle":"Client overview","description":"Find SDK methods, signatures, return types, and HTTP endpoints by resource.","href":"/sdk/reference/client-methods"},{"title":"createClient","sidebarTitle":"createClient()","href":"/sdk/reference/create-client"},{"title":"waitFor","sidebarTitle":"waitFor()","description":"Poll a background operation until it reaches its completion condition.","href":"/sdk/reference/wait-for"},{"title":"client.me()","sidebarTitle":"Account","href":"/sdk/reference/account/me"},{"group":"Projects","expanded":false,"pages":[{"title":"client.projects.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/projects/list"},{"title":"client.projects.create()","sidebarTitle":"create()","href":"/sdk/reference/projects/create"},{"title":"client.projects.get()","sidebarTitle":"get()","href":"/sdk/reference/projects/get"},{"title":"client.projects.update()","sidebarTitle":"update()","href":"/sdk/reference/projects/update"},{"title":"client.projects.createToken()","sidebarTitle":"createToken()","href":"/sdk/reference/projects/create-token"},{"title":"client.projects.listAllTokens()","sidebarTitle":"listAllTokens() / listTokens()","href":"/sdk/reference/projects/list-tokens"},{"title":"client.projects.revokeAllTokens()","sidebarTitle":"revokeAllTokens()","href":"/sdk/reference/projects/revoke-all-tokens"},{"title":"client.projects.revokeToken()","sidebarTitle":"revokeToken()","href":"/sdk/reference/projects/revoke-token"},{"title":"client.projects.revokeCurrentToken()","sidebarTitle":"revokeCurrentToken()","href":"/sdk/reference/projects/revoke-current-token"}]},{"group":"Datasets","expanded":false,"pages":[{"title":"client.datasets.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/datasets/list"},{"title":"client.datasets.create()","sidebarTitle":"create()","href":"/sdk/reference/datasets/create"},{"title":"client.datasets.get()","sidebarTitle":"get()","href":"/sdk/reference/datasets/get"},{"title":"client.datasets.listAllFields()","sidebarTitle":"listAllFields() / listFieldsPage()","href":"/sdk/reference/datasets/list-fields"},{"title":"client.datasets.createField()","sidebarTitle":"createField() / createFields()","href":"/sdk/reference/datasets/create-field"},{"title":"client.datasets.getInferredFields()","sidebarTitle":"getInferredFields()","href":"/sdk/reference/datasets/get-inferred-fields"},{"title":"client.datasets.appendItems()","sidebarTitle":"appendItems()","href":"/sdk/reference/datasets/append-items"},{"title":"client.datasets.listAllItems()","sidebarTitle":"listAllItems() / listItemsPage()","href":"/sdk/reference/datasets/list-items"},{"title":"client.datasets.createSlice()","sidebarTitle":"createSlice()","href":"/sdk/reference/datasets/create-slice"},{"title":"client.datasets.listSlicesPage()","sidebarTitle":"listSlicesPage()","href":"/sdk/reference/datasets/list-slices"},{"title":"client.datasets.getSlice()","sidebarTitle":"getSlice()","href":"/sdk/reference/datasets/get-slice"},{"title":"client.datasets.split()","sidebarTitle":"split()","href":"/sdk/reference/datasets/split"},{"title":"client.datasets.createFieldsFromUploadedRows()","sidebarTitle":"createFieldsFromUploadedRows()","href":"/sdk/reference/datasets/create-fields-from-uploaded-rows"},{"title":"client.datasets.startUpload()","sidebarTitle":"startUpload()","href":"/sdk/reference/datasets/start-upload"},{"title":"client.datasets.finalizeUpload()","sidebarTitle":"finalizeUpload()","href":"/sdk/reference/datasets/finalize-upload"},{"title":"client.datasets.cancelUpload()","sidebarTitle":"cancelUpload()","href":"/sdk/reference/datasets/cancel-upload"},{"title":"client.datasets.getUpload()","sidebarTitle":"getUpload()","href":"/sdk/reference/datasets/get-upload"},{"title":"client.datasets.startExport()","sidebarTitle":"startExport()","href":"/sdk/reference/datasets/start-export"},{"title":"client.datasets.getExport()","sidebarTitle":"getExport()","href":"/sdk/reference/datasets/get-export"}]},{"group":"Pipelines","expanded":false,"pages":[{"title":"client.pipelines.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/pipelines/list"},{"title":"client.pipelines.get()","sidebarTitle":"get()","href":"/sdk/reference/pipelines/get"},{"title":"client.pipelines.update()","sidebarTitle":"update()","href":"/sdk/reference/pipelines/update"},{"title":"client.pipelines.import()","sidebarTitle":"import()","href":"/sdk/reference/pipelines/import"},{"title":"client.pipelines.attachDataset()","sidebarTitle":"attachDataset()","href":"/sdk/reference/pipelines/attach-dataset"},{"title":"client.pipelines.export()","sidebarTitle":"export()","href":"/sdk/reference/pipelines/export"},{"title":"client.pipelines.copy()","sidebarTitle":"copy()","href":"/sdk/reference/pipelines/copy"},{"title":"client.pipelines.estimateCost()","sidebarTitle":"estimateCost()","href":"/sdk/reference/pipelines/estimate-cost"},{"title":"client.pipelines.getGraph()","sidebarTitle":"getGraph()","href":"/sdk/reference/pipelines/get-graph"},{"title":"client.pipelines.replaceGraph()","sidebarTitle":"replaceGraph()","href":"/sdk/reference/pipelines/replace-graph"},{"title":"client.pipelines.validateGraph()","sidebarTitle":"validateGraph()","href":"/sdk/reference/pipelines/validate-graph"},{"title":"client.pipelines.patchNode()","sidebarTitle":"patchNode()","href":"/sdk/reference/pipelines/patch-node"}]},{"group":"Runs","expanded":false,"pages":[{"title":"client.runs.start()","sidebarTitle":"start()","href":"/sdk/reference/runs/start"},{"title":"client.runs.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/runs/list"},{"title":"client.runs.get()","sidebarTitle":"get()","href":"/sdk/reference/runs/get"},{"title":"client.runs.cancel()","sidebarTitle":"cancel()","href":"/sdk/reference/runs/cancel"},{"title":"client.runs.listAllItems()","sidebarTitle":"listAllItems() / listItemsPage()","href":"/sdk/reference/runs/list-items"},{"title":"client.runs.getItem()","sidebarTitle":"getItem()","href":"/sdk/reference/runs/get-item"}]},{"group":"Reviews","expanded":false,"pages":[{"title":"client.reviews.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/reviews/list"},{"title":"client.reviews.acceptAwaiting()","sidebarTitle":"acceptAwaiting()","href":"/sdk/reference/reviews/accept-awaiting"},{"title":"client.reviews.get()","sidebarTitle":"get()","href":"/sdk/reference/reviews/get"},{"title":"client.reviews.accept()","sidebarTitle":"accept()","href":"/sdk/reference/reviews/accept"},{"title":"client.reviews.reject()","sidebarTitle":"reject()","href":"/sdk/reference/reviews/reject"}]},{"group":"Checks","expanded":false,"pages":[{"title":"client.checks.list()","sidebarTitle":"list()","href":"/sdk/reference/checks/list"},{"title":"client.checks.start()","sidebarTitle":"start()","href":"/sdk/reference/checks/start"},{"title":"client.checks.runLints()","sidebarTitle":"runLints()","href":"/sdk/reference/checks/run-lints"},{"title":"client.checks.get()","sidebarTitle":"get()","href":"/sdk/reference/checks/get"}]},{"group":"Secrets","expanded":false,"pages":[{"title":"client.secrets.list()","sidebarTitle":"list()","href":"/sdk/reference/secrets/list"},{"title":"client.secrets.set()","sidebarTitle":"set()","href":"/sdk/reference/secrets/set"}]},{"group":"Files","expanded":false,"pages":[{"title":"client.files.list()","sidebarTitle":"list()","href":"/sdk/reference/files/list"},{"title":"client.files.startUpload()","sidebarTitle":"startUpload()","href":"/sdk/reference/files/start-upload"},{"title":"client.files.finalizeUpload()","sidebarTitle":"finalizeUpload()","href":"/sdk/reference/files/finalize-upload"},{"title":"client.files.delete()","sidebarTitle":"delete()","href":"/sdk/reference/files/delete"}]},{"title":"client.generationModels.list()","sidebarTitle":"Generation models","href":"/sdk/reference/generation-models/list"},{"title":"client.audience.specializations.listAll()","sidebarTitle":"Audience","href":"/sdk/reference/audience/list-specializations"},{"group":"Expert lists","expanded":false,"pages":[{"title":"client.expertLists.list()","sidebarTitle":"list()","href":"/sdk/reference/expert-lists/list"},{"title":"client.expertLists.create()","sidebarTitle":"create()","href":"/sdk/reference/expert-lists/create"},{"title":"client.expertLists.get()","sidebarTitle":"get()","href":"/sdk/reference/expert-lists/get"},{"title":"client.expertLists.update()","sidebarTitle":"update()","href":"/sdk/reference/expert-lists/update"},{"title":"client.expertLists.listExpertsPage()","sidebarTitle":"listExpertsPage()","href":"/sdk/reference/expert-lists/list-experts"},{"title":"client.expertLists.addExperts()","sidebarTitle":"addExperts()","href":"/sdk/reference/expert-lists/add-experts"},{"title":"client.expertLists.removeExperts()","sidebarTitle":"removeExperts()","href":"/sdk/reference/expert-lists/remove-experts"}]},{"group":"Expert ban list","expanded":false,"pages":[{"title":"client.expertBanList.get()","sidebarTitle":"get()","href":"/sdk/reference/expert-ban-list/get"},{"title":"client.expertBanList.listExpertsPage()","sidebarTitle":"listExpertsPage()","href":"/sdk/reference/expert-ban-list/list-experts"},{"title":"client.expertBanList.addExperts()","sidebarTitle":"addExperts()","href":"/sdk/reference/expert-ban-list/add-experts"},{"title":"client.expertBanList.removeExperts()","sidebarTitle":"removeExperts()","href":"/sdk/reference/expert-ban-list/remove-experts"}]},{"group":"Base models","expanded":false,"pages":[{"title":"client.baseModels.list()","sidebarTitle":"list()","href":"/sdk/reference/base-models/list"},{"title":"client.baseModels.get()","sidebarTitle":"get()","href":"/sdk/reference/base-models/get"}]},{"group":"Trainings","expanded":false,"pages":[{"title":"client.trainings.create()","sidebarTitle":"create()","href":"/sdk/reference/trainings/create"},{"title":"client.trainings.get()","sidebarTitle":"get()","href":"/sdk/reference/trainings/get"},{"title":"client.trainings.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/trainings/list"},{"title":"client.trainings.updateMetadata()","sidebarTitle":"updateMetadata()","href":"/sdk/reference/trainings/update-metadata"},{"title":"client.trainings.replaceConfiguration()","sidebarTitle":"replaceConfiguration()","href":"/sdk/reference/trainings/replace-configuration"},{"title":"client.trainings.prepareCostEstimateInputs()","sidebarTitle":"prepareCostEstimateInputs()","href":"/sdk/reference/trainings/prepare-cost-estimate-inputs"},{"title":"client.trainings.estimateCost()","sidebarTitle":"estimateCost()","href":"/sdk/reference/trainings/estimate-cost"},{"title":"client.trainings.createRun()","sidebarTitle":"createRun()","href":"/sdk/reference/trainings/create-run"},{"title":"client.trainings.getRun()","sidebarTitle":"getRun()","href":"/sdk/reference/trainings/get-run"},{"title":"client.trainings.listAllRuns()","sidebarTitle":"listAllRuns() / listRunsPage()","href":"/sdk/reference/trainings/list-runs"},{"title":"client.trainings.getRunLogs()","sidebarTitle":"getRunLogs()","href":"/sdk/reference/trainings/get-run-logs"},{"title":"client.trainings.getRunMetrics()","sidebarTitle":"getRunMetrics()","href":"/sdk/reference/trainings/get-run-metrics"},{"title":"client.trainings.getRunMetricHistory()","sidebarTitle":"getRunMetricHistory()","href":"/sdk/reference/trainings/get-run-metric-history"},{"title":"client.trainings.cancelRun()","sidebarTitle":"cancelRun()","href":"/sdk/reference/trainings/cancel-run"},{"title":"client.trainings.resumeRun()","sidebarTitle":"resumeRun()","href":"/sdk/reference/trainings/resume-run"}]},{"group":"Models","expanded":false,"pages":[{"title":"client.models.listAll()","sidebarTitle":"listAll() / listPage()","href":"/sdk/reference/models/list"},{"title":"client.models.create()","sidebarTitle":"create()","href":"/sdk/reference/models/create"},{"title":"client.models.listAllVersions()","sidebarTitle":"listAllVersions() / listVersionsPage()","href":"/sdk/reference/models/list-versions"},{"title":"client.models.getVersion()","sidebarTitle":"getVersion()","href":"/sdk/reference/models/get-version"},{"title":"client.models.getVersionContent()","sidebarTitle":"getVersionContent()","href":"/sdk/reference/models/get-version-content"},{"title":"client.models.archive()","sidebarTitle":"archive()","href":"/sdk/reference/models/archive"},{"title":"client.models.get()","sidebarTitle":"get()","href":"/sdk/reference/models/get"}]},{"group":"Batch inference","expanded":false,"pages":[{"title":"client.batchInference.createRun()","sidebarTitle":"createRun()","href":"/sdk/reference/batch-inference/create-run"},{"title":"client.batchInference.listAllRuns()","sidebarTitle":"listAllRuns() / listRunsPage()","href":"/sdk/reference/batch-inference/list-runs"},{"title":"client.batchInference.getRun()","sidebarTitle":"getRun()","href":"/sdk/reference/batch-inference/get-run"},{"title":"client.batchInference.confirmRun()","sidebarTitle":"confirmRun()","href":"/sdk/reference/batch-inference/confirm-run"},{"title":"client.batchInference.resumeRun()","sidebarTitle":"resumeRun()","href":"/sdk/reference/batch-inference/resume-run"},{"title":"client.batchInference.cancelRun()","sidebarTitle":"cancelRun()","href":"/sdk/reference/batch-inference/cancel-run"}]},{"group":"Pipeline authoring","expanded":false,"pages":[{"title":"definePipeline","sidebarTitle":"definePipeline()","href":"/sdk/reference/define-pipeline"},{"title":"field","sidebarTitle":"field()","href":"/sdk/reference/field"},{"title":"connect","sidebarTitle":"connect()","href":"/sdk/reference/connect"},{"title":"root","sidebarTitle":"root()","href":"/sdk/reference/root"},{"title":"code","sidebarTitle":"code()","href":"/sdk/reference/code"},{"title":"generation","sidebarTitle":"generation()","href":"/sdk/reference/generation"},{"title":"quorum","sidebarTitle":"quorum()","href":"/sdk/reference/quorum"},{"title":"match","sidebarTitle":"match()","href":"/sdk/reference/match"},{"title":"validate","sidebarTitle":"validate()","href":"/sdk/reference/validate"}]}]},{"group":"CLI","pages":[{"title":"CLI reference","sidebarTitle":"Overview","href":"/cli/reference/index"},{"title":"toloka version","sidebarTitle":"version","href":"/cli/reference/version"},{"group":"config","expanded":false,"pages":[{"title":"toloka config","sidebarTitle":"config","href":"/cli/reference/config"},{"title":"toloka config get","sidebarTitle":"get","href":"/cli/reference/config/get"},{"title":"toloka config set","sidebarTitle":"set","href":"/cli/reference/config/set"}]},{"title":"toloka login","sidebarTitle":"login","href":"/cli/reference/login"},{"title":"toloka logout","sidebarTitle":"logout","href":"/cli/reference/logout"},{"title":"toloka auth-status","sidebarTitle":"auth-status","href":"/cli/reference/auth-status"},{"group":"project","expanded":false,"pages":[{"title":"toloka project","sidebarTitle":"project","href":"/cli/reference/project"},{"title":"toloka project list","sidebarTitle":"list","href":"/cli/reference/project/list"},{"title":"toloka project add","sidebarTitle":"add","href":"/cli/reference/project/add"},{"title":"toloka project switch","sidebarTitle":"switch","href":"/cli/reference/project/switch"},{"title":"toloka project current","sidebarTitle":"current","href":"/cli/reference/project/current"},{"title":"toloka project url","sidebarTitle":"url","href":"/cli/reference/project/url"},{"title":"toloka project remove","sidebarTitle":"remove","href":"/cli/reference/project/remove"},{"title":"toloka project untrack","sidebarTitle":"untrack","href":"/cli/reference/project/untrack"},{"title":"toloka project token","sidebarTitle":"token","href":"/cli/reference/project/token"},{"title":"toloka project tokens","sidebarTitle":"tokens","href":"/cli/reference/project/tokens"},{"title":"toloka project revoke-token","sidebarTitle":"revoke-token","href":"/cli/reference/project/revoke-token"},{"title":"toloka project revoke-tokens","sidebarTitle":"revoke-tokens","href":"/cli/reference/project/revoke-tokens"},{"title":"toloka project create","sidebarTitle":"create","href":"/cli/reference/project/create"}]},{"group":"audience","expanded":false,"pages":[{"title":"toloka audience","sidebarTitle":"audience","href":"/cli/reference/audience"},{"group":"specialization","expanded":false,"pages":[{"title":"toloka audience specialization","sidebarTitle":"specialization","href":"/cli/reference/audience/specialization"},{"title":"toloka audience specialization list","sidebarTitle":"list","href":"/cli/reference/audience/specialization/list"}]}]},{"group":"generation-model","expanded":false,"pages":[{"title":"toloka generation-model","sidebarTitle":"generation-model","href":"/cli/reference/generation-model"},{"title":"toloka generation-model list","sidebarTitle":"list","href":"/cli/reference/generation-model/list"}]},{"title":"toloka init","sidebarTitle":"init","href":"/cli/reference/init"},{"title":"toloka import","sidebarTitle":"import","href":"/cli/reference/import"},{"title":"toloka plan","sidebarTitle":"plan","href":"/cli/reference/plan"},{"title":"toloka validate","sidebarTitle":"validate","href":"/cli/reference/validate"},{"title":"toloka check","sidebarTitle":"check","href":"/cli/reference/check"},{"title":"toloka apply","sidebarTitle":"apply","href":"/cli/reference/apply"},{"group":"secret","expanded":false,"pages":[{"title":"toloka secret","sidebarTitle":"secret","href":"/cli/reference/secret"},{"title":"toloka secret set","sidebarTitle":"set","href":"/cli/reference/secret/set"}]},{"group":"expert-list","expanded":false,"pages":[{"title":"toloka expert-list","sidebarTitle":"expert-list","href":"/cli/reference/expert-list"},{"title":"toloka expert-list list","sidebarTitle":"list","href":"/cli/reference/expert-list/list"},{"title":"toloka expert-list create","sidebarTitle":"create","href":"/cli/reference/expert-list/create"},{"title":"toloka expert-list show","sidebarTitle":"show","href":"/cli/reference/expert-list/show"},{"title":"toloka expert-list rename","sidebarTitle":"rename","href":"/cli/reference/expert-list/rename"},{"title":"toloka expert-list hide","sidebarTitle":"hide","href":"/cli/reference/expert-list/hide"},{"title":"toloka expert-list unhide","sidebarTitle":"unhide","href":"/cli/reference/expert-list/unhide"},{"title":"toloka expert-list experts","sidebarTitle":"experts","href":"/cli/reference/expert-list/experts"},{"title":"toloka expert-list add","sidebarTitle":"add","href":"/cli/reference/expert-list/add"},{"title":"toloka expert-list remove","sidebarTitle":"remove","href":"/cli/reference/expert-list/remove"}]},{"group":"expert-ban-list","expanded":false,"pages":[{"title":"toloka expert-ban-list","sidebarTitle":"expert-ban-list","href":"/cli/reference/expert-ban-list"},{"title":"toloka expert-ban-list show","sidebarTitle":"show","href":"/cli/reference/expert-ban-list/show"},{"title":"toloka expert-ban-list experts","sidebarTitle":"experts","href":"/cli/reference/expert-ban-list/experts"},{"title":"toloka expert-ban-list add","sidebarTitle":"add","href":"/cli/reference/expert-ban-list/add"},{"title":"toloka expert-ban-list remove","sidebarTitle":"remove","href":"/cli/reference/expert-ban-list/remove"}]},{"group":"base-model","expanded":false,"pages":[{"title":"toloka base-model","sidebarTitle":"base-model","href":"/cli/reference/base-model"},{"title":"toloka base-model list","sidebarTitle":"list","href":"/cli/reference/base-model/list"},{"title":"toloka base-model get","sidebarTitle":"get","href":"/cli/reference/base-model/get"}]},{"group":"model","expanded":false,"pages":[{"title":"toloka model","sidebarTitle":"model","href":"/cli/reference/model"},{"title":"toloka model list","sidebarTitle":"list","href":"/cli/reference/model/list"},{"title":"toloka model get","sidebarTitle":"get","href":"/cli/reference/model/get"},{"title":"toloka model versions","sidebarTitle":"versions","href":"/cli/reference/model/versions"},{"title":"toloka model create","sidebarTitle":"create","href":"/cli/reference/model/create"},{"title":"toloka model archive","sidebarTitle":"archive","href":"/cli/reference/model/archive"},{"group":"version","expanded":false,"pages":[{"title":"toloka model version","sidebarTitle":"version","href":"/cli/reference/model/version"},{"title":"toloka model version download","sidebarTitle":"download","href":"/cli/reference/model/version/download"}]}]},{"group":"training","expanded":false,"pages":[{"title":"toloka training","sidebarTitle":"training","href":"/cli/reference/training"},{"title":"toloka training list","sidebarTitle":"list","href":"/cli/reference/training/list"},{"title":"toloka training get","sidebarTitle":"get","href":"/cli/reference/training/get"},{"title":"toloka training create","sidebarTitle":"create","href":"/cli/reference/training/create"},{"title":"toloka training update","sidebarTitle":"update","href":"/cli/reference/training/update"},{"title":"toloka training cost","sidebarTitle":"cost","href":"/cli/reference/training/cost"},{"title":"toloka training run","sidebarTitle":"run","href":"/cli/reference/training/run"},{"title":"toloka training runs","sidebarTitle":"runs","href":"/cli/reference/training/runs"},{"title":"toloka training status","sidebarTitle":"status","href":"/cli/reference/training/status"},{"title":"toloka training resume","sidebarTitle":"resume","href":"/cli/reference/training/resume"},{"title":"toloka training cancel","sidebarTitle":"cancel","href":"/cli/reference/training/cancel"},{"title":"toloka training metrics","sidebarTitle":"metrics","href":"/cli/reference/training/metrics"},{"title":"toloka training logs","sidebarTitle":"logs","href":"/cli/reference/training/logs"}]},{"group":"batch-inference","expanded":false,"pages":[{"title":"toloka batch-inference","sidebarTitle":"batch-inference","href":"/cli/reference/batch-inference"},{"title":"toloka batch-inference run","sidebarTitle":"run","href":"/cli/reference/batch-inference/run"},{"title":"toloka batch-inference list","sidebarTitle":"list","href":"/cli/reference/batch-inference/list"},{"title":"toloka batch-inference status","sidebarTitle":"status","href":"/cli/reference/batch-inference/status"},{"title":"toloka batch-inference confirm","sidebarTitle":"confirm","href":"/cli/reference/batch-inference/confirm"},{"title":"toloka batch-inference resume","sidebarTitle":"resume","href":"/cli/reference/batch-inference/resume"},{"title":"toloka batch-inference cancel","sidebarTitle":"cancel","href":"/cli/reference/batch-inference/cancel"}]},{"group":"dataset","expanded":false,"pages":[{"title":"toloka dataset","sidebarTitle":"dataset","href":"/cli/reference/dataset"},{"title":"toloka dataset list","sidebarTitle":"list","href":"/cli/reference/dataset/list"},{"title":"toloka dataset create","sidebarTitle":"create","href":"/cli/reference/dataset/create"},{"group":"fields","expanded":false,"pages":[{"title":"toloka dataset fields","sidebarTitle":"fields","href":"/cli/reference/dataset/fields"},{"title":"toloka dataset fields declarations","sidebarTitle":"declarations","href":"/cli/reference/dataset/fields/declarations"},{"title":"toloka dataset fields add","sidebarTitle":"add","href":"/cli/reference/dataset/fields/add"}]},{"title":"toloka dataset load","sidebarTitle":"load","href":"/cli/reference/dataset/load"},{"title":"toloka dataset upload","sidebarTitle":"upload","href":"/cli/reference/dataset/upload"},{"group":"slice","expanded":false,"pages":[{"title":"toloka dataset slice","sidebarTitle":"slice","href":"/cli/reference/dataset/slice"},{"title":"toloka dataset slice create","sidebarTitle":"create","href":"/cli/reference/dataset/slice/create"},{"title":"toloka dataset slice list","sidebarTitle":"list","href":"/cli/reference/dataset/slice/list"},{"title":"toloka dataset slice show","sidebarTitle":"show","href":"/cli/reference/dataset/slice/show"}]},{"title":"toloka dataset split","sidebarTitle":"split","href":"/cli/reference/dataset/split"},{"title":"toloka dataset columns","sidebarTitle":"columns","href":"/cli/reference/dataset/columns"}]},{"group":"pipeline","expanded":false,"pages":[{"title":"toloka pipeline","sidebarTitle":"pipeline","href":"/cli/reference/pipeline"},{"title":"toloka pipeline list","sidebarTitle":"list","href":"/cli/reference/pipeline/list"},{"title":"toloka pipeline run","sidebarTitle":"run","href":"/cli/reference/pipeline/run"},{"title":"toloka pipeline lint","sidebarTitle":"lint","href":"/cli/reference/pipeline/lint"},{"title":"toloka pipeline status","sidebarTitle":"status","href":"/cli/reference/pipeline/status"},{"title":"toloka pipeline runs","sidebarTitle":"runs","href":"/cli/reference/pipeline/runs"},{"title":"toloka pipeline cost","sidebarTitle":"cost","href":"/cli/reference/pipeline/cost"},{"title":"toloka pipeline cancel","sidebarTitle":"cancel","href":"/cli/reference/pipeline/cancel"},{"title":"toloka pipeline results","sidebarTitle":"results","href":"/cli/reference/pipeline/results"}]},{"group":"review","expanded":false,"pages":[{"title":"toloka review","sidebarTitle":"review","href":"/cli/reference/review"},{"title":"toloka review list","sidebarTitle":"list","href":"/cli/reference/review/list"},{"title":"toloka review get","sidebarTitle":"get","href":"/cli/reference/review/get"},{"title":"toloka review accept","sidebarTitle":"accept","href":"/cli/reference/review/accept"},{"title":"toloka review reject","sidebarTitle":"reject","href":"/cli/reference/review/reject"}]},{"title":"toloka status","sidebarTitle":"status","href":"/cli/reference/status"},{"title":"toloka report","sidebarTitle":"report","href":"/cli/reference/report"},{"group":"skill","expanded":false,"pages":[{"title":"toloka skill","sidebarTitle":"skill","href":"/cli/reference/skill"},{"title":"toloka skill list","sidebarTitle":"list","href":"/cli/reference/skill/list"},{"title":"toloka skill search","sidebarTitle":"search","href":"/cli/reference/skill/search"},{"title":"toloka skill install","sidebarTitle":"install","href":"/cli/reference/skill/install"}]},{"group":"ui","expanded":false,"pages":[{"title":"toloka ui","sidebarTitle":"ui","href":"/cli/reference/ui"},{"title":"toloka ui components","sidebarTitle":"components","href":"/cli/reference/ui/components"}]}]},{"group":"HTTP API","pages":[{"title":"HTTP API","sidebarTitle":"Overview","href":"/api-reference/index"},{"title":"Get the current user","deprecated":null,"version":null,"sidebarTitle":"Get current user","openapi":"/api-reference/openapi.json get /me","href":"/api-reference/account/get-current-user"},{"group":"Projects","expanded":false,"pages":[{"title":"List projects","deprecated":null,"version":null,"sidebarTitle":"List projects","openapi":"/api-reference/openapi.json get /projects","href":"/api-reference/projects/list-projects"},{"title":"Create a project","deprecated":null,"version":null,"sidebarTitle":"Create project","openapi":"/api-reference/openapi.json post /projects","href":"/api-reference/projects/create-project"},{"title":"Get a project","deprecated":null,"version":null,"sidebarTitle":"Get project by id","openapi":"/api-reference/openapi.json get /projects/{projectId}","href":"/api-reference/projects/get-project-by-id"},{"title":"Update a project","deprecated":null,"version":null,"sidebarTitle":"Update project","openapi":"/api-reference/openapi.json patch /projects/{projectId}","href":"/api-reference/projects/update-project"},{"title":"Issue a project-scoped token","deprecated":null,"version":null,"sidebarTitle":"Create project token","openapi":"/api-reference/openapi.json post /projects/{projectId}/tokens","href":"/api-reference/projects/create-project-token"},{"title":"List live project-scoped tokens","deprecated":null,"version":null,"sidebarTitle":"List project tokens","openapi":"/api-reference/openapi.json get /projects/{projectId}/tokens","href":"/api-reference/projects/list-project-tokens"},{"title":"Revoke all project tokens","deprecated":null,"version":null,"sidebarTitle":"Revoke project tokens","openapi":"/api-reference/openapi.json delete /projects/{projectId}/tokens","href":"/api-reference/projects/revoke-project-tokens"},{"title":"Revoke a project-scoped token","deprecated":null,"version":null,"sidebarTitle":"Revoke project token","openapi":"/api-reference/openapi.json delete /projects/{projectId}/tokens/{tokenId}","href":"/api-reference/projects/revoke-project-token"},{"title":"Revoke the current token","deprecated":null,"version":null,"sidebarTitle":"Revoke current token","openapi":"/api-reference/openapi.json delete /tokens/current","href":"/api-reference/projects/revoke-current-token"}]},{"group":"Datasets","expanded":false,"pages":[{"title":"List project datasets","deprecated":null,"version":null,"sidebarTitle":"List project datasets","openapi":"/api-reference/openapi.json get /projects/{projectId}/datasets","href":"/api-reference/datasets/list-project-datasets"},{"title":"Create a dataset","deprecated":null,"version":null,"sidebarTitle":"Create dataset","openapi":"/api-reference/openapi.json post /projects/{projectId}/datasets","href":"/api-reference/datasets/create-dataset"},{"title":"Get a dataset","deprecated":null,"version":null,"sidebarTitle":"Get dataset by id","openapi":"/api-reference/openapi.json get /datasets/{datasetId}","href":"/api-reference/datasets/get-dataset-by-id"},{"title":"List dataset fields","deprecated":null,"version":null,"sidebarTitle":"List dataset fields","openapi":"/api-reference/openapi.json get /datasets/{datasetId}/fields","href":"/api-reference/datasets/list-dataset-fields"},{"title":"Create dataset fields","deprecated":null,"version":null,"sidebarTitle":"Create dataset field","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/fields","href":"/api-reference/datasets/create-dataset-field"},{"title":"List inferred dataset fields","deprecated":null,"version":null,"sidebarTitle":"Get dataset inferred fields","openapi":"/api-reference/openapi.json get /datasets/{datasetId}/inferred-fields","href":"/api-reference/datasets/get-dataset-inferred-fields"},{"title":"Add rows to a dataset","deprecated":null,"version":null,"sidebarTitle":"Add dataset items","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/items","href":"/api-reference/datasets/add-dataset-items"},{"title":"List dataset items","deprecated":null,"version":null,"sidebarTitle":"List dataset items","openapi":"/api-reference/openapi.json get /datasets/{datasetId}/items","href":"/api-reference/datasets/list-dataset-items"},{"title":"Mark a deterministic sample of rows","deprecated":null,"version":null,"sidebarTitle":"Sample dataset items","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/sample","href":"/api-reference/datasets/sample-dataset-items"},{"title":"Get dataset sampling status","deprecated":null,"version":null,"sidebarTitle":"Get dataset sample","openapi":"/api-reference/openapi.json get /samples/{sampleId}","href":"/api-reference/datasets/get-dataset-sample"},{"title":"Create a dataset slice","deprecated":null,"version":null,"sidebarTitle":"Create dataset slice","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/slices","href":"/api-reference/datasets/create-dataset-slice"},{"title":"List dataset slices","deprecated":null,"version":null,"sidebarTitle":"List dataset slices","openapi":"/api-reference/openapi.json get /datasets/{datasetId}/slices","href":"/api-reference/datasets/list-dataset-slices"},{"title":"Get a dataset slice","deprecated":null,"version":null,"sidebarTitle":"Get dataset slice","openapi":"/api-reference/openapi.json get /slices/{sliceId}","href":"/api-reference/datasets/get-dataset-slice"},{"title":"Split a dataset into parts","deprecated":null,"version":null,"sidebarTitle":"Split dataset","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/split","href":"/api-reference/datasets/split-dataset"},{"title":"Create fields from uploaded rows","deprecated":null,"version":null,"sidebarTitle":"Create dataset fields from uploaded rows","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/fields/from-uploaded","href":"/api-reference/datasets/create-dataset-fields-from-uploaded-rows"}]},{"group":"Dataset uploads","expanded":false,"pages":[{"title":"Start a dataset file upload","deprecated":null,"version":null,"sidebarTitle":"Create dataset upload","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/uploads","href":"/api-reference/dataset-uploads/create-dataset-upload"},{"title":"Finalize a dataset file upload","deprecated":null,"version":null,"sidebarTitle":"Finalize dataset upload","openapi":"/api-reference/openapi.json post /uploads/{uploadId}/finalize","href":"/api-reference/dataset-uploads/finalize-dataset-upload"},{"title":"Cancel a dataset upload","deprecated":null,"version":null,"sidebarTitle":"Cancel dataset upload","openapi":"/api-reference/openapi.json post /uploads/{uploadId}/cancel","href":"/api-reference/dataset-uploads/cancel-dataset-upload"},{"title":"Get a dataset upload","deprecated":null,"version":null,"sidebarTitle":"Get dataset upload","openapi":"/api-reference/openapi.json get /uploads/{uploadId}","href":"/api-reference/dataset-uploads/get-dataset-upload"}]},{"group":"Dataset exports","expanded":false,"pages":[{"title":"Start a dataset export","deprecated":null,"version":null,"sidebarTitle":"Create dataset export","openapi":"/api-reference/openapi.json post /datasets/{datasetId}/exports","href":"/api-reference/dataset-exports/create-dataset-export"},{"title":"Get a dataset export","deprecated":null,"version":null,"sidebarTitle":"Get dataset export","openapi":"/api-reference/openapi.json get /exports/{exportId}","href":"/api-reference/dataset-exports/get-dataset-export"}]},{"group":"Pipelines","expanded":false,"pages":[{"title":"List project pipelines","deprecated":null,"version":null,"sidebarTitle":"List project pipelines","openapi":"/api-reference/openapi.json get /projects/{projectId}/pipelines","href":"/api-reference/pipelines/list-project-pipelines"},{"title":"Get a pipeline","deprecated":null,"version":null,"sidebarTitle":"Get pipeline by id","openapi":"/api-reference/openapi.json get /pipelines/{pipelineId}","href":"/api-reference/pipelines/get-pipeline-by-id"},{"title":"Update a pipeline","deprecated":null,"version":null,"sidebarTitle":"Update pipeline","openapi":"/api-reference/openapi.json patch /pipelines/{pipelineId}","href":"/api-reference/pipelines/update-pipeline"},{"title":"Import a pipeline into a project","deprecated":null,"version":null,"sidebarTitle":"Import pipeline","openapi":"/api-reference/openapi.json post /projects/{projectId}/pipelines/import","href":"/api-reference/pipelines/import-pipeline"},{"title":"Attach a dataset to a pipeline","deprecated":null,"version":null,"sidebarTitle":"Attach pipeline dataset","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/dataset","href":"/api-reference/pipelines/attach-pipeline-dataset"},{"title":"Export a pipeline","deprecated":null,"version":null,"sidebarTitle":"Export pipeline","openapi":"/api-reference/openapi.json get /pipelines/{pipelineId}/export","href":"/api-reference/pipelines/export-pipeline"},{"title":"Copy a pipeline","deprecated":null,"version":null,"sidebarTitle":"Copy pipeline","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/copy","href":"/api-reference/pipelines/copy-pipeline"},{"title":"Estimate pipeline cost","deprecated":null,"version":null,"sidebarTitle":"Estimate pipeline cost","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/cost-estimate","href":"/api-reference/pipelines/estimate-pipeline-cost"}]},{"group":"Pipeline graph","expanded":false,"pages":[{"title":"Get the pipeline graph","deprecated":null,"version":null,"sidebarTitle":"Get pipeline graph snapshot","openapi":"/api-reference/openapi.json get /pipelines/{pipelineId}/graph","href":"/api-reference/pipeline-graph/get-pipeline-graph-snapshot"},{"title":"Replace the pipeline graph","deprecated":null,"version":null,"sidebarTitle":"Replace pipeline graph","openapi":"/api-reference/openapi.json put /pipelines/{pipelineId}/graph","href":"/api-reference/pipeline-graph/replace-pipeline-graph"},{"title":"Validate a pipeline graph","deprecated":null,"version":null,"sidebarTitle":"Validate pipeline graph","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/graph/validate","href":"/api-reference/pipeline-graph/validate-pipeline-graph"},{"title":"Update a pipeline node","deprecated":null,"version":null,"sidebarTitle":"Patch pipeline node","openapi":"/api-reference/openapi.json patch /pipelines/{pipelineId}/graph/nodes/{nodeId}","href":"/api-reference/pipeline-graph/patch-pipeline-node"}]},{"group":"Runs","expanded":false,"pages":[{"title":"Start a pipeline run","deprecated":null,"version":null,"sidebarTitle":"Create pipeline run","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/runs","href":"/api-reference/runs/create-pipeline-run"},{"title":"List pipeline runs","deprecated":null,"version":null,"sidebarTitle":"List pipeline runs","openapi":"/api-reference/openapi.json get /pipelines/{pipelineId}/runs","href":"/api-reference/runs/list-pipeline-runs"},{"title":"Get a pipeline run","deprecated":null,"version":null,"sidebarTitle":"Get pipeline run","openapi":"/api-reference/openapi.json get /runs/{runId}","href":"/api-reference/runs/get-pipeline-run"},{"title":"Get the cost of a run","deprecated":null,"version":null,"sidebarTitle":"Get pipeline run cost","openapi":"/api-reference/openapi.json get /runs/{runId}/cost","href":"/api-reference/runs/get-pipeline-run-cost"},{"title":"Cancel a pipeline run","deprecated":null,"version":null,"sidebarTitle":"Cancel pipeline run","openapi":"/api-reference/openapi.json post /runs/{runId}/cancel","href":"/api-reference/runs/cancel-pipeline-run"},{"title":"List run items","deprecated":null,"version":null,"sidebarTitle":"List pipeline run items","openapi":"/api-reference/openapi.json get /runs/{runId}/items","href":"/api-reference/runs/list-pipeline-run-items"},{"title":"Get a run item","deprecated":null,"version":null,"sidebarTitle":"Get pipeline run item","openapi":"/api-reference/openapi.json get /runs/{runId}/items/{itemId}","href":"/api-reference/runs/get-pipeline-run-item"}]},{"group":"Reviews","expanded":false,"pages":[{"title":"List the reviews of a run","deprecated":null,"version":null,"sidebarTitle":"List pipeline run reviews","openapi":"/api-reference/openapi.json get /runs/{runId}/reviews","href":"/api-reference/reviews/list-pipeline-run-reviews"},{"title":"Accept the awaiting reviews of a run","deprecated":null,"version":null,"sidebarTitle":"Accept pipeline run reviews","openapi":"/api-reference/openapi.json post /runs/{runId}/reviews/accept","href":"/api-reference/reviews/accept-pipeline-run-reviews"},{"title":"Get a review","deprecated":null,"version":null,"sidebarTitle":"Get review","openapi":"/api-reference/openapi.json get /reviews/{reviewId}","href":"/api-reference/reviews/get-review"},{"title":"Accept a task","deprecated":null,"version":null,"sidebarTitle":"Accept review","openapi":"/api-reference/openapi.json post /reviews/{reviewId}/accept","href":"/api-reference/reviews/accept-review"},{"title":"Reject a task","deprecated":null,"version":null,"sidebarTitle":"Reject review","openapi":"/api-reference/openapi.json post /reviews/{reviewId}/reject","href":"/api-reference/reviews/reject-review"}]},{"group":"Checks","expanded":false,"pages":[{"title":"List pipeline checks","deprecated":null,"version":null,"sidebarTitle":"List pipeline checks","openapi":"/api-reference/openapi.json get /pipelines/{pipelineId}/checks","href":"/api-reference/checks/list-pipeline-checks"},{"title":"Start a pipeline check","deprecated":null,"version":null,"sidebarTitle":"Create pipeline check","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/checks","href":"/api-reference/checks/create-pipeline-check"},{"title":"Run pipeline lints","deprecated":null,"version":null,"sidebarTitle":"Run pipeline lints","openapi":"/api-reference/openapi.json post /pipelines/{pipelineId}/lints","href":"/api-reference/checks/run-pipeline-lints"},{"title":"Get a pipeline check","deprecated":null,"version":null,"sidebarTitle":"Get pipeline check","openapi":"/api-reference/openapi.json get /checks/{checkRunId}","href":"/api-reference/checks/get-pipeline-check"}]},{"group":"Secrets","expanded":false,"pages":[{"title":"List project secret names","deprecated":null,"version":null,"sidebarTitle":"List project secrets","openapi":"/api-reference/openapi.json get /projects/{projectId}/secrets","href":"/api-reference/secrets/list-project-secrets"},{"title":"Set a project secret","deprecated":null,"version":null,"sidebarTitle":"Set project secret","openapi":"/api-reference/openapi.json put /projects/{projectId}/secrets/{name}","href":"/api-reference/secrets/set-project-secret"}]},{"group":"Files","expanded":false,"pages":[{"title":"List project files","deprecated":null,"version":null,"sidebarTitle":"List project files","openapi":"/api-reference/openapi.json get /projects/{projectId}/files","href":"/api-reference/files/list-project-files"},{"title":"Start a project file upload","deprecated":null,"version":null,"sidebarTitle":"Create project file upload","openapi":"/api-reference/openapi.json post /projects/{projectId}/files","href":"/api-reference/files/create-project-file-upload"},{"title":"Finalize a project file upload","deprecated":null,"version":null,"sidebarTitle":"Finalize project file upload","openapi":"/api-reference/openapi.json post /projects/{projectId}/files/{fileId}/finalize","href":"/api-reference/files/finalize-project-file-upload"},{"title":"Delete a project file","deprecated":null,"version":null,"sidebarTitle":"Delete project file","openapi":"/api-reference/openapi.json delete /projects/{projectId}/files/{fileId}","href":"/api-reference/files/delete-project-file"}]},{"title":"List synthetic generation models","deprecated":null,"version":null,"sidebarTitle":"List generation models","openapi":"/api-reference/openapi.json get /generation-models","href":"/api-reference/generation-models/list-generation-models"},{"title":"List expert specializations","deprecated":null,"version":null,"sidebarTitle":"List audience specializations","openapi":"/api-reference/openapi.json get /audience/specializations","href":"/api-reference/audience/list-audience-specializations"},{"group":"Expert lists","expanded":false,"pages":[{"title":"List expert lists","deprecated":null,"version":null,"sidebarTitle":"List expert lists","openapi":"/api-reference/openapi.json get /projects/{projectId}/expert-lists","href":"/api-reference/expert-lists/list-expert-lists"},{"title":"Create an expert list","deprecated":null,"version":null,"sidebarTitle":"Create expert list","openapi":"/api-reference/openapi.json post /projects/{projectId}/expert-lists","href":"/api-reference/expert-lists/create-expert-list"},{"title":"Get an expert list","deprecated":null,"version":null,"sidebarTitle":"Get expert list","openapi":"/api-reference/openapi.json get /expert-lists/{expertListId}","href":"/api-reference/expert-lists/get-expert-list"},{"title":"Rename, hide or show an expert list","deprecated":null,"version":null,"sidebarTitle":"Update expert list","openapi":"/api-reference/openapi.json patch /expert-lists/{expertListId}","href":"/api-reference/expert-lists/update-expert-list"},{"title":"List the experts of an expert list","deprecated":null,"version":null,"sidebarTitle":"List expert list experts","openapi":"/api-reference/openapi.json get /expert-lists/{expertListId}/experts","href":"/api-reference/expert-lists/list-expert-list-experts"},{"title":"Add experts to an expert list","deprecated":null,"version":null,"sidebarTitle":"Add expert list experts","openapi":"/api-reference/openapi.json post /expert-lists/{expertListId}/experts/add","href":"/api-reference/expert-lists/add-expert-list-experts"},{"title":"Remove experts from an expert list","deprecated":null,"version":null,"sidebarTitle":"Remove expert list experts","openapi":"/api-reference/openapi.json post /expert-lists/{expertListId}/experts/remove","href":"/api-reference/expert-lists/remove-expert-list-experts"}]},{"group":"Expert ban list","expanded":false,"pages":[{"title":"Get the expert ban list of a project","deprecated":null,"version":null,"sidebarTitle":"Get expert ban list","openapi":"/api-reference/openapi.json get /projects/{projectId}/expert-ban-list","href":"/api-reference/expert-ban-list/get-expert-ban-list"},{"title":"List the experts of the expert ban list","deprecated":null,"version":null,"sidebarTitle":"List expert ban list experts","openapi":"/api-reference/openapi.json get /projects/{projectId}/expert-ban-list/experts","href":"/api-reference/expert-ban-list/list-expert-ban-list-experts"},{"title":"Ban experts in a project","deprecated":null,"version":null,"sidebarTitle":"Add expert ban list experts","openapi":"/api-reference/openapi.json post /projects/{projectId}/expert-ban-list/experts/add","href":"/api-reference/expert-ban-list/add-expert-ban-list-experts"},{"title":"Unban experts in a project","deprecated":null,"version":null,"sidebarTitle":"Remove expert ban list experts","openapi":"/api-reference/openapi.json post /projects/{projectId}/expert-ban-list/experts/remove","href":"/api-reference/expert-ban-list/remove-expert-ban-list-experts"}]},{"group":"Base models","expanded":false,"pages":[{"title":"List base models","deprecated":null,"version":null,"sidebarTitle":"List base models","openapi":"/api-reference/openapi.json get /base-models","href":"/api-reference/base-models/list-base-models"},{"title":"Get a base model","deprecated":null,"version":null,"sidebarTitle":"Get base model","openapi":"/api-reference/openapi.json get /base-models/{baseModelId}","href":"/api-reference/base-models/get-base-model"}]},{"group":"Trainings","expanded":false,"pages":[{"title":"Create a training","deprecated":null,"version":null,"sidebarTitle":"Create project training","openapi":"/api-reference/openapi.json post /projects/{projectId}/trainings","href":"/api-reference/trainings/create-project-training"},{"title":"Get a training","deprecated":null,"version":null,"sidebarTitle":"Get training","openapi":"/api-reference/openapi.json get /trainings/{trainingId}","href":"/api-reference/trainings/get-training"},{"title":"List project trainings","deprecated":null,"version":null,"sidebarTitle":"List project trainings","openapi":"/api-reference/openapi.json get /projects/{projectId}/trainings","href":"/api-reference/trainings/list-project-trainings"},{"title":"Update training metadata","deprecated":null,"version":null,"sidebarTitle":"Update training metadata","openapi":"/api-reference/openapi.json patch /trainings/{trainingId}","href":"/api-reference/trainings/update-training-metadata"},{"title":"Replace a training configuration","deprecated":null,"version":null,"sidebarTitle":"Replace training configuration","openapi":"/api-reference/openapi.json put /trainings/{trainingId}/configuration","href":"/api-reference/trainings/replace-training-configuration"},{"title":"Prepare training cost estimate inputs","deprecated":null,"version":null,"sidebarTitle":"Prepare training cost estimate inputs","openapi":"/api-reference/openapi.json post /trainings/{trainingId}/cost-estimate-inputs","href":"/api-reference/trainings/prepare-training-cost-estimate-inputs"},{"title":"Estimate training cost","deprecated":null,"version":null,"sidebarTitle":"Estimate training cost","openapi":"/api-reference/openapi.json post /trainings/{trainingId}/cost-estimate","href":"/api-reference/trainings/estimate-training-cost"},{"title":"Create a training run","deprecated":null,"version":null,"sidebarTitle":"Create training run","openapi":"/api-reference/openapi.json post /trainings/{trainingId}/runs","href":"/api-reference/trainings/create-training-run"},{"title":"Get a training run","deprecated":null,"version":null,"sidebarTitle":"Get training run","openapi":"/api-reference/openapi.json get /training-runs/{trainingRunId}","href":"/api-reference/trainings/get-training-run"},{"title":"List training runs","deprecated":null,"version":null,"sidebarTitle":"List training runs","openapi":"/api-reference/openapi.json get /trainings/{trainingId}/runs","href":"/api-reference/trainings/list-training-runs"},{"title":"Read training run logs","deprecated":null,"version":null,"sidebarTitle":"Get training run logs","openapi":"/api-reference/openapi.json get /training-runs/{trainingRunId}/logs","href":"/api-reference/trainings/get-training-run-logs"},{"title":"Get training run metrics","deprecated":null,"version":null,"sidebarTitle":"Get training run metrics","openapi":"/api-reference/openapi.json get /training-runs/{trainingRunId}/metrics","href":"/api-reference/trainings/get-training-run-metrics"},{"title":"Get training metric history","deprecated":null,"version":null,"sidebarTitle":"Get training run metric history","openapi":"/api-reference/openapi.json get /training-runs/{trainingRunId}/metrics/{metricKey}","href":"/api-reference/trainings/get-training-run-metric-history"},{"title":"Cancel a training run","deprecated":null,"version":null,"sidebarTitle":"Cancel training run","openapi":"/api-reference/openapi.json post /training-runs/{trainingRunId}/cancel","href":"/api-reference/trainings/cancel-training-run"},{"title":"Resume a training run","deprecated":null,"version":null,"sidebarTitle":"Resume training run","openapi":"/api-reference/openapi.json post /training-runs/{trainingRunId}/resume","href":"/api-reference/trainings/resume-training-run"}]},{"group":"Models","expanded":false,"pages":[{"title":"List project models","deprecated":null,"version":null,"sidebarTitle":"List project models","openapi":"/api-reference/openapi.json get /projects/{projectId}/models","href":"/api-reference/models/list-project-models"},{"title":"Create a project model","deprecated":null,"version":null,"sidebarTitle":"Create project model","openapi":"/api-reference/openapi.json post /projects/{projectId}/models","href":"/api-reference/models/create-project-model"},{"title":"List model versions","deprecated":null,"version":null,"sidebarTitle":"List model versions","openapi":"/api-reference/openapi.json get /projects/{projectId}/models/{modelId}/versions","href":"/api-reference/models/list-model-versions"},{"title":"Get a model version","deprecated":null,"version":null,"sidebarTitle":"Get model version","openapi":"/api-reference/openapi.json get /model-versions/{modelVersionId}","href":"/api-reference/models/get-model-version"},{"title":"Get model version download links","deprecated":null,"version":null,"sidebarTitle":"Get model version content","openapi":"/api-reference/openapi.json get /model-versions/{modelVersionId}/content","href":"/api-reference/models/get-model-version-content"},{"title":"Archive a project model","deprecated":null,"version":null,"sidebarTitle":"Archive project model","openapi":"/api-reference/openapi.json post /projects/{projectId}/models/{modelId}/archive","href":"/api-reference/models/archive-project-model"},{"title":"Get a project model","deprecated":null,"version":null,"sidebarTitle":"Get project model","openapi":"/api-reference/openapi.json get /projects/{projectId}/models/{modelId}","href":"/api-reference/models/get-project-model"}]},{"group":"Batch inference","expanded":false,"pages":[{"title":"Create a batch inference run","deprecated":null,"version":null,"sidebarTitle":"Create batch inference run","openapi":"/api-reference/openapi.json post /projects/{projectId}/batch-inference-runs","href":"/api-reference/batch-inference/create-batch-inference-run"},{"title":"List batch inference runs","deprecated":null,"version":null,"sidebarTitle":"List batch inference runs","openapi":"/api-reference/openapi.json get /projects/{projectId}/batch-inference-runs","href":"/api-reference/batch-inference/list-batch-inference-runs"},{"title":"Get a batch inference run","deprecated":null,"version":null,"sidebarTitle":"Get batch inference run","openapi":"/api-reference/openapi.json get /batch-inference-runs/{batchInferenceRunId}","href":"/api-reference/batch-inference/get-batch-inference-run"},{"title":"Confirm a batch inference run","deprecated":null,"version":null,"sidebarTitle":"Confirm batch inference run","openapi":"/api-reference/openapi.json post /batch-inference-runs/{batchInferenceRunId}/confirm","href":"/api-reference/batch-inference/confirm-batch-inference-run"},{"title":"Resume a batch inference run","deprecated":null,"version":null,"sidebarTitle":"Resume batch inference run","openapi":"/api-reference/openapi.json post /batch-inference-runs/{batchInferenceRunId}/resume","href":"/api-reference/batch-inference/resume-batch-inference-run"},{"title":"Cancel a batch inference run","deprecated":null,"version":null,"sidebarTitle":"Cancel batch inference run","openapi":"/api-reference/openapi.json post /batch-inference-runs/{batchInferenceRunId}/cancel","href":"/api-reference/batch-inference/cancel-batch-inference-run"}]}]}]},{"tab":"Troubleshooting","icon":"wrench","pages":[{"title":"Troubleshooting","href":"/data/guides/troubleshoot"}]}]},"basePath":"","title":"createClient - Toloka Platform","buildId":"dpl_7z5w9HGpTJWNSQwKnp8antE5wcga","deploymentId":"dpl_7z5w9HGpTJWNSQwKnp8antE5wcga","dynamics":["2b790eda92"],"chunks":["ApiExamples-C6GJVVJA.js","utils-BJj10D6F.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-eW9o2T91.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVfO7SPW.js","shallow-C73HYyds.js","snippetPresets-CrIrC6Gs.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-BO8DyuwE.js","CodeSnippet-DCnJHTsY.js","CodeSnippets-BKEN_mP6.js"]}