2025.6.1-1749515784 • Published 4 months ago

@goauthentik/api v2025.6.1-1749515784

Weekly downloads
-
License
-
Repository
github
Last release
4 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();
2024.8.3-1729836831

12 months ago

2024.8.3-1729753499

12 months ago

2024.8.3-1729699127

12 months ago

2024.8.3-1729630021

12 months ago

2024.8.3-1729167001

12 months ago

2024.8.3-1728939481

12 months ago

2024.8.3-1729166675

12 months ago

2024.8.3-1728912934

12 months ago

2024.8.3-1728918276

12 months ago

2024.8.3-1728649674

12 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