Skip to content


API Specification⚓︎

The entire server API specification is available through a web interface and as an OpenAPI JSON. You can use the Swagger web interface for manual testing of the API on the hosted authentication server. Do not forget to enter the API key first through the Authorize button.

SDK Installation⚓︎

We recommend using an automatically generated library to integrate the nextAuth REST SDK into your application, instead of manually implementing the REST calls as described in the Swagger documentation.

Available SDKs⚓︎

We provide prepackaged SDK code for the following languages:

Generating an SDK⚓︎

Since the nextAuth SDK is entirely based on OpenAPI, you can easily generate an SDK for any language supported by Swagger Codegen.

First, download the Swagger Codegen CLI.

curl -LO

Next, get the nextAuth Swagger specification.

curl -LO

Finally, generate your SDK!

java -jar swagger-codegen-cli-2.4.5.jar generate -l erlang -i swagger.yaml -o nextauth-client-erlang

In this example, we create an Erlang SDK. Check the Swagger Codegen documentation for supported languages and options.