import { Authlete } from "@authlete/typescript-sdk";
const authlete = new Authlete({
bearer: process.env["AUTHLETE_BEARER"] ?? "",
});
async function run() {
const result = await authlete.audit.getTypes();
console.log(result);
}
run();require 'authlete_ruby_sdk'
Models = ::Authlete::Models
s = ::Authlete::Client.new(
bearer: '<YOUR_BEARER_TOKEN_HERE>'
)
res = s.audit.get_types
unless res.strings.nil?
# handle response
endpackage main
import(
"context"
"os"
authlete "github.com/authlete/authlete-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := authlete.New(
authlete.WithSecurity(os.Getenv("AUTHLETE_BEARER")),
)
res, err := s.Audit.GetTypes(ctx)
if err != nil {
log.Fatal(err)
}
if res.Strings != nil {
// handle response
}
}curl --request GET \
--url https://login.authlete.com/api/audit/types \
--header 'Authorization: Bearer <token>'[
"organization.create",
"security.login",
"service.create",
"service.delete"
]{
"error": "Unknown user or invalid access token"
}{
"error": "<string>",
"errors": [
"<string>"
]
}{
"error": "No access to organization for this user"
}{
"error": "An internal error occurred. Please try again later."
}Get Audit Log Event Types
Returns the list of available audit log event types for this environment.
Accessible with a user access token or an organization token that has the view_audit_log permission (e.g. a token created with the admin or audit_reader preset).
This endpoint is hosted on the Authlete IdP server (https://login.authlete.com), not on the regional API clusters.
import { Authlete } from "@authlete/typescript-sdk";
const authlete = new Authlete({
bearer: process.env["AUTHLETE_BEARER"] ?? "",
});
async function run() {
const result = await authlete.audit.getTypes();
console.log(result);
}
run();require 'authlete_ruby_sdk'
Models = ::Authlete::Models
s = ::Authlete::Client.new(
bearer: '<YOUR_BEARER_TOKEN_HERE>'
)
res = s.audit.get_types
unless res.strings.nil?
# handle response
endpackage main
import(
"context"
"os"
authlete "github.com/authlete/authlete-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := authlete.New(
authlete.WithSecurity(os.Getenv("AUTHLETE_BEARER")),
)
res, err := s.Audit.GetTypes(ctx)
if err != nil {
log.Fatal(err)
}
if res.Strings != nil {
// handle response
}
}curl --request GET \
--url https://login.authlete.com/api/audit/types \
--header 'Authorization: Bearer <token>'[
"organization.create",
"security.login",
"service.create",
"service.delete"
]{
"error": "Unknown user or invalid access token"
}{
"error": "<string>",
"errors": [
"<string>"
]
}{
"error": "No access to organization for this user"
}{
"error": "An internal error occurred. Please try again later."
}Authorizations
Authenticate every request with a Service Access Token or Organization Token. Set the token value in the Authorization: Bearer <token> header.
Service Access Token: Scoped to a single service. Use when automating service-level configuration or runtime flows.
Organization Token: Scoped to the organization; inherits permissions across services. Use for org-wide automation or when managing multiple services programmatically.
Both token types are issued by the Authlete console or provisioning APIs.
Response
List of available audit event type strings.