You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@goauthentik/api

Package Overview
Dependencies
Maintainers
2
Versions
537
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goauthentik/api

OpenAPI client for @goauthentik/api

2025.6.3-1751754396
latest
Source
npmnpm
Version published
Weekly downloads
8.6K
-36.91%
Maintainers
2
Weekly downloads
 
Created
Source

@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();

FAQs

Package last updated on 05 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts