🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@goauthentik/api

Package Overview
Dependencies
Maintainers
2
Versions
679
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

latest
Source
npmnpm
Version
2026.2.3-rc1
Version published
Weekly downloads
5.1K
-1.29%
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 10 Apr 2026

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