mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
ef1d0b0279
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
28 lines
787 B
Markdown
28 lines
787 B
Markdown
---
|
|
title: Node.js API Client
|
|
sidebar_label: Node.js
|
|
description: A TypeScript client for the authentik API.
|
|
---
|
|
|
|
The [Node.js API client](https://www.npmjs.com/package/@goauthentik/api) is generated using the [OpenAPI Generator](https://openapi-generator.tech/) and the [OpenAPI v3 schema](https://api.goauthentik.io/schema.yml).
|
|
|
|
```shell
|
|
npm install @goauthentik/api
|
|
```
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
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`.
|