Files
authentik/website/api/clients/node.md
Teffen Ellis 5997667501 website: Fix broken schema links v2 (#16919)
* website: fix broken schema links

* website: Add schema redirects.

---------

Co-authored-by: Dominic R <dominic@sdko.org>
2025-09-22 10:46:58 -05:00

1.1 KiB

title, sidebar_label, description
title sidebar_label description
Node.js API Client Node.js A TypeScript client for the authentik API.

The Node.js API client is generated using the OpenAPI Generator and the OpenAPI v3 schema.

npm install @goauthentik/api

Usage

import { AdminApi, Configuration } from "@goauthentik/api";

const config = new Configuration({
    basePath: "authentik.company/api/v3",
});

const status = await new AdminApi(DEFAULT_CONFIG).adminSystemRetrieve();

Building the Node.js Client

The web client is used by the web-interface and web-FlowExecutor to communicate with authentik. To build the client, run make gen-client-ts.

Since the client is normally distributed as an npm package, running make gen-client-ts will overwrite the locally installed client with the newly built one.

:::caution Running npm i in the /web folder after using make gen-client-ts will overwrite the custom client and revert to the upstream client. :::