Configure the Node.js SDK client and log in to Infisical.
Every call to Infisical goes through an InfisicalSDK client. You create the client once, log it in as a machine identity, and then use it for every request.
Create a client
Create the client with the URL of your Infisical instance in siteUrl. If you use the US region of Infisical Cloud, you can leave siteUrl out.
import { InfisicalSDK } from "@infisical/sdk";const client = new InfisicalSDK();
import { InfisicalSDK } from "@infisical/sdk";const client = new InfisicalSDK({ siteUrl: "https://eu.infisical.com" });
import { InfisicalSDK } from "@infisical/sdk";const client = new InfisicalSDK({ siteUrl: "<your-instance-url>" });
Parameters:
object
Show properties
string
default:"https://app.infisical.com"
The URL of your Infisical instance.
Log in
The client logs in with one of the machine identity’s authentication methods. After the client logs in, it sends the access token it got with every request.
The SDK gets the details it needs from the AWS environment:
AWS credentials: the same way the AWS SDK for JavaScript does, such as from environment variables or the IAM role of an EC2 instance or Lambda function
AWS region: from the AWS_REGION environment variable, or from the EC2 instance metadata if AWS_REGION isn’t set
Parameters:
object
Show properties
string
The ID of the machine identity. Defaults to the value of the INFISICAL_MACHINE_IDENTITY_ID environment variable.
Access token
If your application gets an access token some other way, such as from the Infisical Agent, give the token to the client:
client.auth().accessToken("<access-token>");
Parameters:
string
required
The access token, without the Bearer prefix.
To read the token that the client uses, call client.auth().getAccessToken(). It returns null if the client hasn’t logged in.
Renew the access token
The SDK doesn’t renew the access token on its own. The token expires after the Access Token TTL set in the machine identity’s auth method. Each renewal extends the token by its TTL, up to the Access Token Max TTL. After the max TTL, log in again. If your application runs longer than the TTL, renew the token before it expires:
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Infisical","colors":{"primary":"#26272b","light":"#dbf530","dark":"#A1B659"},"logo":{"light":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/logo/light.svg","dark":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/logo/dark.svg","href":"/"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico","api":{"openapi":"https://app.infisical.com/api/docs/json","mdx":{"server":["https://app.infisical.com"]}},"appearance":{"default":"light"},"background":{"color":{"light":"#ffffff","dark":"#08090b"}},"navbar":{"links":[{"href":"https://app.infisical.com/login","label":"Log In"}],"primary":{"type":"button","label":"Start for Free","href":"https://app.infisical.com/signup"}},"footer":{"socials":{"x":"https://www.twitter.com/infisical","linkedin":"https://www.linkedin.com/company/infisical","github":"https://github.com/Infisical/infisical-cli","website":"https://community.infisical.com"},"links":[{"header":"PRODUCT","items":[{"label":"Secrets Management","href":"https://infisical.com/platform/secrets-management"},{"label":"Certificate Management","href":"https://infisical.com/platform/certificate-management"},{"label":"Privileged Access Management (PAM)","href":"https://infisical.com/platform/pam"},{"label":"Agent Vault","href":"https://infisical.com/platform/agent-vault"},{"label":"Key Management Service (KMS)","href":"https://infisical.com/docs/documentation/platform/kms/overview"},{"label":"Secret Scanning","href":"https://infisical.com/radar"},{"label":"Share Secrets","href":"https://app.infisical.com/share-secret"},{"label":"Pricing","href":"https://infisical.com/pricing"},{"label":"Security","href":"https://infisical.com/docs/internals/security"},{"label":"Blog","href":"https://infisical.com/blog"},{"label":"Infisical vs Vault","href":"https://infisical.com/infisical-vs-hashicorp-vault"},{"label":"Community","href":"https://community.infisical.com/"}]},{"header":"USE CASES","items":[{"label":"Infisical Agent","href":"https://infisical.com/docs/documentation/getting-started/introduction"},{"label":"Infisical Proxy","href":"https://infisical.com/docs/integrations/platforms/infisical-proxy"},{"label":"Kubernetes","href":"https://infisical.com/docs/integrations/platforms/kubernetes"},{"label":"Dynamic Secrets","href":"https://infisical.com/docs/documentation/platform/dynamic-secrets/overview"},{"label":"Terraform","href":"https://registry.terraform.io/providers/Infisical/infisical/latest/docs"},{"label":"Ansible","href":"https://infisical.com/docs/integrations/platforms/ansible"},{"label":"Jenkins","href":"https://infisical.com/docs/integrations/cicd/jenkins"},{"label":"Docker","href":"https://infisical.com/docs/integrations/platforms/docker"},{"label":"AWS ECS","href":"https://infisical.com/docs/integrations/platforms/ecs-with-agent"},{"label":"GitLab","href":"https://infisical.com/docs/integrations/cicd/gitlab"},{"label":"GitHub","href":"https://infisical.com/docs/integrations/cicd/githubactions"},{"label":"SDK","href":"https://infisical.com/docs/sdks/overview"}]},{"header":"DEVELOPERS","items":[{"label":"Changelog","href":"https://github.com/Infisical/infisical/releases"},{"label":"Status","href":"https://status.infisical.com/"},{"label":"Feedback \u0026 Requests","href":"https://github.com/Infisical/infisical/issues"},{"label":"Trust of Center","href":"https://app.vanta.com/infisical.com/trust/hoop8cr78cuarxo9sztvs"},{"label":"Open Source Friends","href":"https://infisical.com/infisical-friends"},{"label":"How to contribute","href":"https://www.infisical.com/infisical-heroes"}]},{"header":"OTHERS","items":[{"label":"Customers","href":"https://infisical.com/customers/traba"},{"label":"Company Handbook","href":"https://infisical.com/wiki/handbook/overview"},{"label":"Careers","href":"https://infisical.com/careers"},{"label":"Terms of Service","href":"https://infisical.com/terms"},{"label":"Privacy Policy","href":"https://infisical.com/privacy"},{"label":"Subprocessors","href":"https://infisical.com/subprocessors"},{"label":"SLA","href":"https://infisical.com/sla"},{"label":"Support Email","href":"mailto:[email protected]"},{"label":"Sales","href":"mailto:[email protected]"},{"label":"Support","href":"https://community.infisical.com"}]}]},"fonts":{"heading":{"family":"Alliance","weight":400,"source":"https://infisical.com/docs/fonts/AllianceNo2-Regular.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"integrations":{"posthog":{"apiKey":"phc_Q0xfB3LeOqo7ySk4DE6zLNwDzHFesKcmigknCy4fTdV","apiHost":"https://p.infisical.com"},"koala":{"publicApiKey":"pk_b50d7184e0e39ddd5cdb43cf6abeadd9b97d"},"gtm":{"tagId":"GTM-WL5C7MWT"}},"contextual":{"options":["assistant","copy","view","chatgpt","claude","mcp"],"display":"header"},"thumbnails":{"preset":"classic","appearance":"light","background":"https://infisical.com/docs/images/docs-preview-yellow.png","fonts":{"family":"Alliance","source":"fonts/AllianceNo2-Regular.woff","format":"woff"},"eyebrow":{"source":"group","style":"plain","color":"#000000"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"infisical","hasAudioNarration":false,"actualSubdomain":"infisical","customDomains":["infisical.com"],"gitSource":{"type":"github","owner":"infisical","repo":"infisical","deployBranch":"main","contentDirectory":"docs","mountPath":"","label":"","_id":"6b109e439ffae5051c3f75ce"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b14cf885b2cfe21fb663094","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Reference","count":2262},{"language":"default","tag":"API","count":1983},{"language":"default","tag":"Secrets Management","count":987},{"language":"default","tag":"App connections","count":716},{"language":"default","tag":"Shared","count":622},{"language":"default","tag":"Secret syncs","count":456},{"language":"default","tag":"Products","count":442},{"language":"default","tag":"Certificate Management","count":343},{"language":"default","tag":"Platform","count":261},{"language":"default","tag":"SDKs","count":246}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":false},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"selectively-prewarm","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"instinct-self-updating-docs","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/infisical/a3d0c08133ee2cd5/style.css"}]}
{"page":{"pagePath":"sdks/languages/node/client","slug":"/sdks/languages/node/client","pageMetadata":{"title":"Client and authentication","description":"Configure the Node.js SDK client and log in to Infisical.","href":"/sdks/languages/node/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: \"Configure the Node.js SDK client and log in to Infisical.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Every call to Infisical goes through an `,_jsx(_components.code,{children:`InfisicalSDK`}),` client. You create the client once, log it in as a `,_jsx(_components.a,{href:`/documentation/platform/identities/machine-identities`,children:`machine identity`}),`, and then use it for every request.`]}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-client`,children:`Create a client`}),`\n`,_jsxs(_components.p,{children:[`Create the client with the URL of your Infisical instance in `,_jsx(_components.code,{children:`siteUrl`}),`. If you use the US region of Infisical Cloud, you can leave `,_jsx(_components.code,{children:`siteUrl`}),` out.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`US Cloud`,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--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:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`InfisicalSDK`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@infisical/sdk\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` InfisicalSDK`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`EU Cloud`,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--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:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`InfisicalSDK`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@infisical/sdk\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` InfisicalSDK`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`siteUrl:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://eu.infisical.com\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Self-hosted`,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--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:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`InfisicalSDK`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@infisical/sdk\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` InfisicalSDK`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`siteUrl:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cyour-instance-url>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsx(ResponseField,{name:`options`,type:`object`,id:`param-options`,children:_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`siteUrl`,type:`string`,default:`https://app.infisical.com`,id:`param-site-url`,children:_jsx(_components.p,{children:`The URL of your Infisical instance.`})})})}),`\n`,_jsx(Heading,{level:`2`,id:`log-in`,children:`Log in`}),`\n`,_jsxs(_components.p,{children:[`The client logs in with one of the machine identity’s `,_jsx(_components.a,{href:`/documentation/platform/identities/machine-identities#authentication-methods`,children:`authentication methods`}),`. After the client logs in, it sends the access token it got with every request.`]}),`\n`,_jsx(Heading,{level:`3`,id:`universal-auth`,children:`Universal Auth`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`universalAuth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` clientId:`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:`INFISICAL_UNIVERSAL_AUTH_CLIENT_ID`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`!,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` clientSecret:`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:`INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`!,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsx(ResponseField,{name:`options`,type:`UniversalAuthLoginRequest`,required:true,id:`param-options-1`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`clientId`,type:`string`,required:true,id:`param-client-id`,children:_jsxs(_components.p,{children:[`The client ID of the machine identity’s `,_jsx(_components.a,{href:`/documentation/platform/identities/universal-auth`,children:`Universal Auth`}),` configuration.`]})}),_jsx(ResponseField,{name:`clientSecret`,type:`string`,required:true,id:`param-client-secret`,children:_jsx(_components.p,{children:`A client secret of the machine identity’s Universal Auth configuration.`})})]})}),`\n`,_jsx(Heading,{level:`3`,id:`aws-auth`,children:`AWS auth`}),`\n`,_jsxs(_components.p,{children:[`If your application runs on AWS, it can log in through `,_jsx(_components.a,{href:`/documentation/platform/identities/aws-auth`,children:`AWS Auth`}),` with the AWS credentials it already has:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--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:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`awsIamAuth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` identityId:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cmachine-identity-id>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The SDK gets the details it needs from the AWS environment:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`AWS credentials:`}),` the same way the AWS SDK for JavaScript does, such as from environment variables or the IAM role of an EC2 instance or Lambda function`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`AWS region:`}),` from the `,_jsx(_components.code,{children:`AWS_REGION`}),` environment variable, or from the EC2 instance metadata if `,_jsx(_components.code,{children:`AWS_REGION`}),` isn’t set`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsx(ResponseField,{name:`options`,type:`object`,id:`param-options-2`,children:_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`identityId`,type:`string`,id:`param-identity-id`,children:_jsxs(_components.p,{children:[`The ID of the machine identity. Defaults to the value of the `,_jsx(_components.code,{children:`INFISICAL_MACHINE_IDENTITY_ID`}),` environment variable.`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`access-token`,children:`Access token`}),`\n`,_jsxs(_components.p,{children:[`If your application gets an access token some other way, such as from the `,_jsx(_components.a,{href:`/integrations/platforms/infisical-agent`,children:`Infisical Agent`}),`, give the token to the client:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsx(ResponseField,{name:`token`,type:`string`,required:true,id:`param-token`,children:_jsxs(_components.p,{children:[`The access token, without the `,_jsx(_components.code,{children:`Bearer`}),` prefix.`]})}),`\n`,_jsxs(_components.p,{children:[`To read the token that the client uses, call `,_jsx(_components.code,{children:`client.auth().getAccessToken()`}),`. It returns `,_jsx(_components.code,{children:`null`}),` if the client hasn’t logged in.`]}),`\n`,_jsx(Heading,{level:`2`,id:`renew-the-access-token`,children:`Renew the access token`}),`\n`,_jsxs(_components.p,{children:[`The SDK doesn’t renew the access token on its own. The token expires after the `,_jsx(_components.strong,{children:`Access Token TTL`}),` set in the machine identity’s auth method. Each renewal extends the token by its TTL, up to the `,_jsx(_components.strong,{children:`Access Token Max TTL`}),`. After the max TTL, log in again. If your application runs longer than the TTL, renew the token before it expires:`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Universal Auth`,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`universalAuth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`renew`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`AWS Auth`,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`awsIamAuth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`renew`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Client and authentication","description":"Configure the Node.js SDK client and log in to Infisical.","href":"/sdks/languages/node/client"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create a client","slug":"create-a-client","depth":2,"children":[]},{"title":"Log in","slug":"log-in","depth":2,"children":[{"title":"Universal Auth","slug":"universal-auth","depth":3,"children":[]},{"title":"AWS auth","slug":"aws-auth","depth":3,"children":[]},{"title":"Access token","slug":"access-token","depth":3,"children":[]}]},{"title":"Renew the access token","slug":"renew-the-access-token","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/infisical/b13a5df316344f52/unify.js","/docs/_mintlify/custom/infisical/bc9046d1d11b5448/field-name-copy.js","/docs/_mintlify/custom/infisical/fdfdc80c034be768/cli-reference-nav.js"],"subdomain":"infisical","siteName":"Infisical","title":"Client and authentication - Infisical","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T23:42:31.430Z","originalFileLocation":"sdks/languages/node/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=\"light\"}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=\"Configure the Node.js SDK client and log in to Infisical.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Infisical\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Client and authentication - Infisical\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure the Node.js SDK client and log in to Infisical.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Infisical\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://infisical.com/docs/sdks/languages/node/client\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://infisical.mintlify.site/docs/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Client+and+authentication\u0026amp;description=Configure+the+Node.js+SDK+client+and+log+in+to+Infisical.\u0026amp;theme=b0e9e71d2b2f25bc38c03fbe\u0026amp;signature=cc2df241dcf396014935a59dd46e36ea568dcaecb95f0d6e1363653e75dfdec7\">\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=\"Client and authentication - Infisical\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure the Node.js SDK client and log in to Infisical.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://infisical.mintlify.site/docs/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Client+and+authentication\u0026amp;description=Configure+the+Node.js+SDK+client+and+log+in+to+Infisical.\u0026amp;theme=b0e9e71d2b2f25bc38c03fbe\u0026amp;signature=cc2df241dcf396014935a59dd46e36ea568dcaecb95f0d6e1363653e75dfdec7\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Infisical\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#26272b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://infisical.com/docs/sdks/languages/node/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/sdks/languages/node/client.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://infisical.com/#organization\",\"name\":\"Infisical\",\"url\":\"https://infisical.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintlify.s3.us-west-1.amazonaws.com/infisical/logo/light.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://infisical.com/docs#website\",\"name\":\"Infisical\",\"url\":\"https://infisical.com/docs\",\"publisher\":{\"@id\":\"https://infisical.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://infisical.com/docs/sdks/languages/node/client#webpage\",\"url\":\"https://infisical.com/docs/sdks/languages/node/client\",\"name\":\"Client and authentication\",\"description\":\"Configure the Node.js SDK client and log in to Infisical.\",\"dateModified\":\"2026-12-03T23:42:31.430Z\",\"isPartOf\":{\"@id\":\"https://infisical.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://infisical.com/docs/sdks/languages/node/client#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://infisical.com/docs/sdks/languages/node/client#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://infisical.com/docs/sdks/languages/node\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Client and authentication\",\"item\":\"https://infisical.com/docs/sdks/languages/node/client\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://infisical.com/docs/sdks/languages/node/client#article\",\"headline\":\"Client and authentication\",\"name\":\"Client and authentication\",\"description\":\"Configure the Node.js SDK client and log in to Infisical.\",\"url\":\"https://infisical.com/docs/sdks/languages/node/client\",\"mainEntityOfPage\":{\"@id\":\"https://infisical.com/docs/sdks/languages/node/client#webpage\"},\"dateModified\":\"2026-12-03T23:42:31.430Z\",\"publisher\":{\"@id\":\"https://infisical.com/#organization\"},\"isPartOf\":{\"@id\":\"https://infisical.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Infisical\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Infisical\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/sdks/languages/node/client.md","siteName":"Infisical","nav":{"global":null,"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/documentation/getting-started/overview"}]},{"tab":"Products","menu":[{"item":"Secrets Management","icon":"key","pages":[{"title":"Secrets Management","href":"/documentation/platform/secrets-mgmt/overview"}]},{"item":"Certificate Management","icon":"file-key","pages":[{"title":"Certificate Management","href":"/documentation/platform/pki/overview"}]},{"item":"Privileged Access Management (PAM)","icon":"users","pages":[{"title":"Privileged Access Management (PAM)","href":"/documentation/platform/pam/overview"}]},{"item":"Agent Vault","icon":"vault","pages":[{"title":"Agent Vault","href":"/documentation/platform/agent-vault/overview"}]},{"item":"Key Management Service (KMS)","icon":"lock","pages":[{"title":"Key Management Service (KMS)","href":"/documentation/platform/kms/overview"}]},{"item":"Secret Scanning","icon":"radar","pages":[{"title":"Secret Scanning","href":"/documentation/platform/secret-scanning/overview"}]}],"pages":[{"title":"Products","href":"/documentation/platform/secrets-mgmt/overview"}]},{"tab":"Platform","menu":[{"item":"Organizations","icon":"building","pages":[{"title":"Organizations","href":"/documentation/platform/organization"}]},{"item":"Identity and access","icon":"id-card","pages":[{"title":"Identity and access","href":"/documentation/platform/identities/overview"}]},{"item":"App connections","icon":"plug","pages":[{"title":"App connections","href":"/integrations/app-connections/overview"}]},{"item":"Networking","icon":"network","pages":[{"title":"Networking","href":"/documentation/platform/gateways/overview"}]},{"item":"Self-hosting","icon":"server","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]},{"item":"Internals","icon":"workflow","pages":[{"title":"Internals","href":"/internals/overview"}]},{"item":"Contributing","icon":"git-pull-request","pages":[{"title":"Contributing","href":"/contributing/getting-started/overview"}]}],"pages":[{"title":"Platform","href":"/documentation/platform/organization"}]},{"tab":"Reference","icon":{"name":"code","library":"lucide"},"menu":[{"item":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli/overview"}]},{"item":"API","icon":"book-open","pages":[{"title":"API","href":"/api-reference/overview/introduction"}]},{"item":"SDKs","icon":"boxes","dropdowns":[{"dropdown":"Choose an SDK","icon":"boxes","pages":[{"title":"SDKs","sidebarTitle":"SDKs","icon":"boxes","href":"/sdks/overview"}]},{"dropdown":"Python","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/python.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Python SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/python"},{"title":"Client and authentication","href":"/sdks/languages/python/client"},{"title":"Errors and retries","href":"/sdks/languages/python/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/python/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/python/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/python/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/python/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/python/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/python/folders/list-folders"},{"title":"Get a folder","href":"/sdks/languages/python/folders/get-folder"},{"title":"Create a folder","href":"/sdks/languages/python/folders/create-folder"},{"title":"Update a folder","href":"/sdks/languages/python/folders/update-folder"},{"title":"Delete a folder","href":"/sdks/languages/python/folders/delete-folder"}]},{"group":"Dynamic secrets","pages":[{"title":"Lease credentials","href":"/sdks/languages/python/dynamic-secrets/create-lease"},{"title":"Get a lease","href":"/sdks/languages/python/dynamic-secrets/get-lease"},{"title":"Renew a lease","href":"/sdks/languages/python/dynamic-secrets/renew-lease"},{"title":"Revoke a lease","href":"/sdks/languages/python/dynamic-secrets/revoke-lease"},{"title":"Create a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/create-dynamic-secret"},{"title":"Get a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/get-dynamic-secret"},{"title":"Update a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/update-dynamic-secret"},{"title":"Delete a dynamic secret","href":"/sdks/languages/python/dynamic-secrets/delete-dynamic-secret"}]},{"group":"KMS","pages":[{"title":"List keys","href":"/sdks/languages/python/kms/list-keys"},{"title":"Get a key","href":"/sdks/languages/python/kms/get-key"},{"title":"Get a key by name","href":"/sdks/languages/python/kms/get-key-by-name"},{"title":"Create a key","href":"/sdks/languages/python/kms/create-key"},{"title":"Update a key","href":"/sdks/languages/python/kms/update-key"},{"title":"Delete a key","href":"/sdks/languages/python/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/python/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/python/kms/decrypt"}]},{"group":"Agent Vault","pages":[{"title":"Agent Vault","sidebarTitle":"Overview","href":"/sdks/languages/python/agent-vault/overview"},{"group":"Sessions","pages":[{"title":"List sessions","href":"/sdks/languages/python/agent-vault/list-sessions"},{"title":"Get a session","href":"/sdks/languages/python/agent-vault/get-session"},{"title":"Create a session","href":"/sdks/languages/python/agent-vault/create-session"},{"title":"Update session label and metadata","sidebarTitle":"Update a session","href":"/sdks/languages/python/agent-vault/update-session"},{"title":"Revoke a session","href":"/sdks/languages/python/agent-vault/revoke-session"}]},{"group":"Proxies","pages":[{"title":"List proxies","href":"/sdks/languages/python/agent-vault/list-proxies"},{"title":"Create a proxy","href":"/sdks/languages/python/agent-vault/create-proxy"},{"title":"Update a proxy","href":"/sdks/languages/python/agent-vault/update-proxy"},{"title":"Delete a proxy","href":"/sdks/languages/python/agent-vault/delete-proxy"},{"title":"Rotate a proxy token","href":"/sdks/languages/python/agent-vault/rotate-proxy-token"},{"title":"Revoke a proxy","href":"/sdks/languages/python/agent-vault/revoke-proxy"}]},{"group":"Access bundles","pages":[{"title":"List access bundles","href":"/sdks/languages/python/agent-vault/list-access-bundles"},{"title":"Get an access bundle","href":"/sdks/languages/python/agent-vault/get-access-bundle"},{"title":"Create an access bundle","href":"/sdks/languages/python/agent-vault/create-access-bundle"},{"title":"Update an access bundle","href":"/sdks/languages/python/agent-vault/update-access-bundle"},{"title":"Delete an access bundle","href":"/sdks/languages/python/agent-vault/delete-access-bundle"},{"title":"List grantees","href":"/sdks/languages/python/agent-vault/list-grantees"},{"title":"List available grantees","href":"/sdks/languages/python/agent-vault/list-available-grantees"},{"title":"Grant access","href":"/sdks/languages/python/agent-vault/grant-access"},{"title":"Revoke access","href":"/sdks/languages/python/agent-vault/revoke-access"}]},{"group":"Delegations","pages":[{"title":"List delegations","href":"/sdks/languages/python/agent-vault/list-delegations"},{"title":"Get a delegation","href":"/sdks/languages/python/agent-vault/get-delegation"},{"title":"Set a delegation","href":"/sdks/languages/python/agent-vault/set-delegation"},{"title":"List available users and groups","href":"/sdks/languages/python/agent-vault/list-available-subjects"},{"title":"Add users and groups","href":"/sdks/languages/python/agent-vault/add-subjects"},{"title":"Remove users and groups","href":"/sdks/languages/python/agent-vault/remove-subjects"},{"title":"Delete a delegation","href":"/sdks/languages/python/agent-vault/delete-delegation"}]}]}]},{"dropdown":"Node.js","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/node.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Node.js SDK","sidebarTitle":"Quickstart","description":"Fetch secrets from Infisical in a Node.js application.","href":"/sdks/languages/node"},{"title":"Client and authentication","href":"/sdks/languages/node/client"},{"title":"Errors and retries","description":"Handle errors and retries in the Node.js SDK.","href":"/sdks/languages/node/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/node/secrets/list-secrets"},{"title":"List secrets with imports","href":"/sdks/languages/node/secrets/list-secrets-with-imports"},{"title":"Get a secret","href":"/sdks/languages/node/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/node/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/node/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/node/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/node/folders/list-folders"},{"title":"Create a folder","href":"/sdks/languages/node/folders/create-folder"}]},{"group":"Projects","pages":[{"title":"Create a project","href":"/sdks/languages/node/projects/create-project"},{"title":"Invite users to a project","sidebarTitle":"Invite users","href":"/sdks/languages/node/projects/invite-members"},{"title":"Create an environment","href":"/sdks/languages/node/projects/create-environment"}]},{"group":"Dynamic secrets","pages":[{"title":"Lease credentials","href":"/sdks/languages/node/dynamic-secrets/create-lease"},{"title":"Renew a lease","href":"/sdks/languages/node/dynamic-secrets/renew-lease"},{"title":"Delete a lease","href":"/sdks/languages/node/dynamic-secrets/delete-lease"},{"title":"Create a dynamic secret","href":"/sdks/languages/node/dynamic-secrets/create-dynamic-secret"},{"title":"Delete a dynamic secret","href":"/sdks/languages/node/dynamic-secrets/delete-dynamic-secret"}]},{"group":"KMS","pages":[{"title":"Create a key","href":"/sdks/languages/node/kms/create-key"},{"title":"Get a key by name","href":"/sdks/languages/node/kms/get-key-by-name"},{"title":"Delete a key","href":"/sdks/languages/node/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/node/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/node/kms/decrypt"},{"title":"Sign data","href":"/sdks/languages/node/kms/sign"},{"title":"Verify a signature","href":"/sdks/languages/node/kms/verify"},{"title":"List a key's signing algorithms","sidebarTitle":"List signing algorithms","href":"/sdks/languages/node/kms/list-signing-algorithms"},{"title":"Get a key's public key","sidebarTitle":"Get a public key","href":"/sdks/languages/node/kms/get-public-key"}]},{"group":"Agent Vault","pages":[{"title":"Agent Vault","sidebarTitle":"Overview","href":"/sdks/languages/node/agent-vault/overview"},{"group":"Sessions","pages":[{"title":"List sessions","href":"/sdks/languages/node/agent-vault/list-sessions"},{"title":"Get a session","href":"/sdks/languages/node/agent-vault/get-session"},{"title":"Create a session","href":"/sdks/languages/node/agent-vault/create-session"},{"title":"Update session label and metadata","sidebarTitle":"Update a session","href":"/sdks/languages/node/agent-vault/update-session"},{"title":"Revoke a session","href":"/sdks/languages/node/agent-vault/revoke-session"}]},{"group":"Proxies","pages":[{"title":"List proxies","href":"/sdks/languages/node/agent-vault/list-proxies"},{"title":"Create a proxy","href":"/sdks/languages/node/agent-vault/create-proxy"},{"title":"Update a proxy","href":"/sdks/languages/node/agent-vault/update-proxy"},{"title":"Delete a proxy","href":"/sdks/languages/node/agent-vault/delete-proxy"},{"title":"Rotate a proxy token","href":"/sdks/languages/node/agent-vault/rotate-proxy-token"},{"title":"Revoke a proxy","href":"/sdks/languages/node/agent-vault/revoke-proxy"}]},{"group":"Access bundles","pages":[{"title":"List access bundles","href":"/sdks/languages/node/agent-vault/list-access-bundles"},{"title":"Get an access bundle","href":"/sdks/languages/node/agent-vault/get-access-bundle"},{"title":"Create an access bundle","href":"/sdks/languages/node/agent-vault/create-access-bundle"},{"title":"Update an access bundle","href":"/sdks/languages/node/agent-vault/update-access-bundle"},{"title":"Delete an access bundle","href":"/sdks/languages/node/agent-vault/delete-access-bundle"},{"title":"List grantees","href":"/sdks/languages/node/agent-vault/list-grantees"},{"title":"List available grantees","href":"/sdks/languages/node/agent-vault/list-available-grantees"},{"title":"Grant access","href":"/sdks/languages/node/agent-vault/grant-access"},{"title":"Revoke access","href":"/sdks/languages/node/agent-vault/revoke-access"}]},{"group":"Delegations","pages":[{"title":"List delegations","href":"/sdks/languages/node/agent-vault/list-delegations"},{"title":"Get a delegation","href":"/sdks/languages/node/agent-vault/get-delegation"},{"title":"Set a delegation","href":"/sdks/languages/node/agent-vault/set-delegation"},{"title":"List available users and groups","href":"/sdks/languages/node/agent-vault/list-available-subjects"},{"title":"Add users and groups","href":"/sdks/languages/node/agent-vault/add-subjects"},{"title":"Remove users and groups","href":"/sdks/languages/node/agent-vault/remove-subjects"},{"title":"Delete a delegation","href":"/sdks/languages/node/agent-vault/delete-delegation"}]}]}]},{"dropdown":"Go","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/go.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Go SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/go"},{"title":"Client and authentication","href":"/sdks/languages/go/client"},{"title":"Errors and retries","href":"/sdks/languages/go/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/go/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/go/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/go/secrets/create-secret"},{"title":"Create several secrets","href":"/sdks/languages/go/secrets/create-secrets"},{"title":"Update a secret","href":"/sdks/languages/go/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/go/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/go/folders/list-folders"},{"title":"Create a folder","href":"/sdks/languages/go/folders/create-folder"},{"title":"Update a folder","href":"/sdks/languages/go/folders/update-folder"},{"title":"Delete a folder","href":"/sdks/languages/go/folders/delete-folder"}]},{"group":"Dynamic secrets","pages":[{"title":"Lease credentials","href":"/sdks/languages/go/dynamic-secrets/create-lease"},{"title":"List leases","href":"/sdks/languages/go/dynamic-secrets/list-leases"},{"title":"Get a lease","href":"/sdks/languages/go/dynamic-secrets/get-lease"},{"title":"Renew a lease","href":"/sdks/languages/go/dynamic-secrets/renew-lease"},{"title":"Delete a lease","href":"/sdks/languages/go/dynamic-secrets/delete-lease"},{"title":"List dynamic secrets","href":"/sdks/languages/go/dynamic-secrets/list-dynamic-secrets"},{"title":"Get a dynamic secret","href":"/sdks/languages/go/dynamic-secrets/get-dynamic-secret"}]},{"group":"KMS","pages":[{"title":"Create a key","href":"/sdks/languages/go/kms/create-key"},{"title":"Get a key by name","href":"/sdks/languages/go/kms/get-key-by-name"},{"title":"Delete a key","href":"/sdks/languages/go/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/go/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/go/kms/decrypt"},{"title":"Sign data","href":"/sdks/languages/go/kms/sign"},{"title":"Verify a signature","href":"/sdks/languages/go/kms/verify"},{"title":"List signing algorithms","href":"/sdks/languages/go/kms/list-signing-algorithms"},{"title":"Get a key's public key","sidebarTitle":"Get a public key","href":"/sdks/languages/go/kms/get-public-key"}]},{"group":"Agent Vault","pages":[{"title":"Agent Vault","sidebarTitle":"Overview","href":"/sdks/languages/go/agent-vault/overview"},{"group":"Sessions","pages":[{"title":"List sessions","href":"/sdks/languages/go/agent-vault/list-sessions"},{"title":"Get a session","href":"/sdks/languages/go/agent-vault/get-session"},{"title":"Create a session","href":"/sdks/languages/go/agent-vault/create-session"},{"title":"Update session label and metadata","sidebarTitle":"Update a session","href":"/sdks/languages/go/agent-vault/update-session"},{"title":"Revoke a session","href":"/sdks/languages/go/agent-vault/revoke-session"}]},{"group":"Proxies","pages":[{"title":"List proxies","href":"/sdks/languages/go/agent-vault/list-proxies"},{"title":"Create a proxy","href":"/sdks/languages/go/agent-vault/create-proxy"},{"title":"Update a proxy","href":"/sdks/languages/go/agent-vault/update-proxy"},{"title":"Delete a proxy","href":"/sdks/languages/go/agent-vault/delete-proxy"},{"title":"Rotate a proxy token","href":"/sdks/languages/go/agent-vault/rotate-proxy-token"},{"title":"Revoke a proxy","href":"/sdks/languages/go/agent-vault/revoke-proxy"}]},{"group":"Access bundles","pages":[{"title":"List access bundles","href":"/sdks/languages/go/agent-vault/list-access-bundles"},{"title":"Get an access bundle","href":"/sdks/languages/go/agent-vault/get-access-bundle"},{"title":"Create an access bundle","href":"/sdks/languages/go/agent-vault/create-access-bundle"},{"title":"Update an access bundle","href":"/sdks/languages/go/agent-vault/update-access-bundle"},{"title":"Delete an access bundle","href":"/sdks/languages/go/agent-vault/delete-access-bundle"},{"title":"List grantees","href":"/sdks/languages/go/agent-vault/list-grantees"},{"title":"List available grantees","href":"/sdks/languages/go/agent-vault/list-available-grantees"},{"title":"Grant access","href":"/sdks/languages/go/agent-vault/grant-access"},{"title":"Revoke access","href":"/sdks/languages/go/agent-vault/revoke-access"}]},{"group":"Delegations","pages":[{"title":"List delegations","href":"/sdks/languages/go/agent-vault/list-delegations"},{"title":"Get a delegation","href":"/sdks/languages/go/agent-vault/get-delegation"},{"title":"Set a delegation","href":"/sdks/languages/go/agent-vault/set-delegation"},{"title":"List available users and groups","href":"/sdks/languages/go/agent-vault/list-available-subjects"},{"title":"Add users and groups","href":"/sdks/languages/go/agent-vault/add-subjects"},{"title":"Remove users and groups","href":"/sdks/languages/go/agent-vault/remove-subjects"},{"title":"Delete a delegation","href":"/sdks/languages/go/agent-vault/delete-delegation"}]}]}]},{"dropdown":".NET","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/dotnet.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical .NET SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/dotnet"},{"title":"Client and authentication","href":"/sdks/languages/dotnet/client"},{"title":"Errors and retries","href":"/sdks/languages/dotnet/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/dotnet/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/dotnet/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/dotnet/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/dotnet/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/dotnet/secrets/delete-secret"}]},{"group":"PKI subscribers","pages":[{"title":"Issue a certificate","href":"/sdks/languages/dotnet/pki/issue-certificate"},{"title":"Get the latest certificate bundle","href":"/sdks/languages/dotnet/pki/get-latest-certificate-bundle"}]}]},{"dropdown":"Rust","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/rust.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Rust SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/rust"},{"title":"Client and authentication","href":"/sdks/languages/rust/client"},{"title":"Errors","href":"/sdks/languages/rust/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/rust/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/rust/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/rust/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/rust/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/rust/secrets/delete-secret"}]},{"group":"KMS","pages":[{"title":"List keys","href":"/sdks/languages/rust/kms/list-keys"},{"title":"Get a key","href":"/sdks/languages/rust/kms/get-key"},{"title":"Create a key","href":"/sdks/languages/rust/kms/create-key"},{"title":"Update a key","href":"/sdks/languages/rust/kms/update-key"},{"title":"Delete a key","href":"/sdks/languages/rust/kms/delete-key"},{"title":"Encrypt data","href":"/sdks/languages/rust/kms/encrypt"},{"title":"Decrypt data","href":"/sdks/languages/rust/kms/decrypt"},{"title":"Sign data","href":"/sdks/languages/rust/kms/sign"},{"title":"Verify a signature","href":"/sdks/languages/rust/kms/verify"},{"title":"List signing algorithms","href":"/sdks/languages/rust/kms/list-signing-algorithms"},{"title":"Get a public key","href":"/sdks/languages/rust/kms/get-public-key"}]}]},{"dropdown":"Java","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/java.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Java SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/java"},{"title":"Client and authentication","href":"/sdks/languages/java/client"},{"title":"Errors","href":"/sdks/languages/java/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/java/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/java/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/java/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/java/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/java/secrets/delete-secret"}]},{"group":"Folders","pages":[{"title":"List folders","href":"/sdks/languages/java/folders/list-folders"},{"title":"Get a folder","href":"/sdks/languages/java/folders/get-folder"},{"title":"Create a folder","href":"/sdks/languages/java/folders/create-folder"},{"title":"Update a folder","href":"/sdks/languages/java/folders/update-folder"},{"title":"Delete a folder","href":"/sdks/languages/java/folders/delete-folder"}]},{"group":"Projects","pages":[{"title":"Get a project by slug","href":"/sdks/languages/java/projects/get-project-by-slug"}]}]},{"dropdown":"C++","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/cpp.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical C++ SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/cpp"},{"title":"Client and authentication","href":"/sdks/languages/cpp/client"},{"title":"Errors","href":"/sdks/languages/cpp/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/cpp/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/cpp/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/cpp/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/cpp/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/cpp/secrets/delete-secret"}]}]},{"dropdown":"PHP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/php.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical PHP SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/php"},{"title":"Client and authentication","href":"/sdks/languages/php/client"},{"title":"Errors","href":"/sdks/languages/php/errors"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/php/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/php/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/php/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/php/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/php/secrets/delete-secret"}]}]},{"dropdown":"Ruby","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/ruby.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Ruby SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/ruby"},{"title":"Client and authentication","href":"/sdks/languages/ruby/client"},{"title":"Errors and retries","href":"/sdks/languages/ruby/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/ruby/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/ruby/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/ruby/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/ruby/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/ruby/secrets/delete-secret"}]}]},{"dropdown":"Perl","icon":"https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/sdks/languages/perl.svg","groups":[{"group":"Get started","pages":[{"title":"Infisical Perl SDK","sidebarTitle":"Quickstart","href":"/sdks/languages/perl"},{"title":"Client and authentication","href":"/sdks/languages/perl/client"},{"title":"Errors and retries","href":"/sdks/languages/perl/errors-and-retries"}]},{"group":"Secrets","pages":[{"title":"List secrets","href":"/sdks/languages/perl/secrets/list-secrets"},{"title":"Get a secret","href":"/sdks/languages/perl/secrets/get-secret"},{"title":"Create a secret","href":"/sdks/languages/perl/secrets/create-secret"},{"title":"Update a secret","href":"/sdks/languages/perl/secrets/update-secret"},{"title":"Delete a secret","href":"/sdks/languages/perl/secrets/delete-secret"}]}]}]}]}]},"basePath":"","title":"Client and authentication - Infisical","deploymentId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","buildId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","dynamics":[],"chunks":[]}