2025.6.1-1749515784 • Published 8 months ago

@goauthentik/api v2025.6.1-1749515784

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

@goauthentik/api

This package provides a generated API Client for authentik.

Building

See https://docs.goauthentik.io/docs/developer-docs/api/making-schema-changes#building-the-web-client

Consuming

npm install @goauthentik/api --save

Create a configuration:

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

export const DEFAULT_CONFIG = new Configuration({
    // Configure where the API is located
    // Can be a full host, ensure CORS is configured
    basePath: "",
    // Required for POST/PUT/DELETE requests
    // getCookie function must return the cookie's contents
    headers: {
        "X-authentik-CSRF": getCookie("authentik_csrf"),
    },
});

Then use the API:

import { CoreApi } from "@goauthentik/api";

const user = await new CoreApi(DEFAULT_CONFIG).coreUsersMeRetrieve();
2025.2.1-1740858273

11 months ago

2025.2.1-1740653734

11 months ago

2025.2.4-1744640358

10 months ago

2025.2.4-1745325566

10 months ago

2025.2.3-1743464496

10 months ago

2025.2.4-1744139776

10 months ago

2025.2.4-1744288676

10 months ago

2025.2.2-1742245839

11 months ago

2025.2.2-1742432843

11 months ago

2025.2.4-1744808430

10 months ago

2025.2.2-1742395408

11 months ago

2025.2.0-1740418530

11 months ago

2025.2.2-1742304973

11 months ago

2025.2.1-1741798605

11 months ago

2025.2.4-1744886287

10 months ago

2025.2.1-1741736288

11 months ago

2025.2.4-1744646168

10 months ago

2025.2.2-1742424775

11 months ago

2025.2.3-1744036568

10 months ago

2025.2.3-1743178158

10 months ago

2025.2.2-1742585853

11 months ago

2025.2.3-1744118790

10 months ago

2025.2.3-1744041717

10 months ago

1629704307.0.0

4 years ago

1629704636.0.0

4 years ago

1629704972.0.0

4 years ago

2021.8.1-rc1

4 years ago

1629128436.0.0

4 years ago

1629056677.0.0

4 years ago

1629055619.0.0

4 years ago

2021.8.1

4 years ago