nextAuth API
n-auth · Security
API for the nextAuth server
Authentication
Sample Requests
List all the servers you have the permissions for. Required permission: 'servers'.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/n-auth.com/2.2/servers/?limit=10&marker=1"
import requests
params = {
"limit": "10",
"marker": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/n-auth.com/2.2/servers/",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/n-auth.com/2.2/servers/');
url.searchParams.set('limit', '10');
url.searchParams.set('marker', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/n-auth.com/2.2/servers/")
q := baseURL.Query()
q.Set("limit", "10")
q.Set("marker", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/n-auth.com/2.2/servers/")
uri.query = URI.encode_www_form({
"limit" => "10",
"marker" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/n-auth.com/2.2/servers/?" . http_build_query([
"limit" => "10",
"marker" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get all API keys generated by the current role. Required permission: global 'servers'.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/n-auth.com/2.2/apikeys/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/n-auth.com/2.2/apikeys/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/n-auth.com/2.2/apikeys/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/n-auth.com/2.2/apikeys/"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/n-auth.com/2.2/apikeys/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/n-auth.com/2.2/apikeys/";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns an array containing all global attributes. Required permission: global 'servers'.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/n-auth.com/2.2/attributes/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/n-auth.com/2.2/attributes/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/n-auth.com/2.2/attributes/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/n-auth.com/2.2/attributes/"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/n-auth.com/2.2/attributes/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/n-auth.com/2.2/attributes/";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with nextAuth API?
nextAuth API is a Security API. Developers commonly use security APIs for:
- adding multi-factor authentication to your app
- validating identity documents and biometrics
- monitoring for data breaches and leaked credentials
- running background checks and fraud screening
- scanning code and infrastructure for vulnerabilities
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. nextAuth API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide