Quick Start
Copy page Get up and running with Authlete API in minutesQuick Start Guide
Get started with Authlete API in just a few minutes. This guide walks you through creating a service, registering a client, installing the SDK, and wiring the five key OAuth endpoints with real payloads.Prerequisites
- An Authlete account (Sign up here)
- Basic understanding of OAuth 2.0 concepts
- Node.js 18+, TypeScript, and
curl
Step 1: Create a Service (Console)
- Go to console.authlete.com
- Sign up or log in
- Click Create Service
- Fill in the form:
- Service Name: e.g.,
Customer Portal - Description:
Internal OAuth server for customer apps - Service Profile: Pick the region/profile that matches your data residency and regulatory needs
- Service Name: e.g.,
- Save the service
Step 2: Get Your API Credentials
After saving, Authlete shows:- Service API Key (
serviceId) - Service API Secret (
serviceSecret) - Service Access Token (create under Service Settings → Access Tokens, scope:
service.manage,client.manage,authserver.*)
.env:
Step 3: Make Your First API Call (Get Service)
Install the official SDK and callservice.get to verify connectivity.
npx tsx get-service.ts.
Equivalent cURL
Step 4: Create Your First Client
TypeScript
cURL
clientId and clientSecret (e.g., 3737820648 / dETX4AAyQh7s0CSq...).
Step 5: Test the OAuth Flow (Five Endpoints)
Use the same credentials to stand up an Express API. Each endpoint uses@authlete/typescript-sdk and includes a matching curl invocation so you can test manually.
1. Authorization Request (POST /oauth/authorize)
What happens? Authlete parses the raw authorization request and returns a ticket plus action for the next step.
parameters string internally with demo values.)
2. Consent / Issue Authorization Code (POST /oauth/consent)
What happens? Exchange Authlete’s ticket plus a user subject for an authorization code.
3. Token Exchange (POST /oauth/token)
What happens? Send the authorization code plus client credentials to Authlete; receive access/refresh tokens.
4. Introspect Access Token (POST /oauth/introspect)
What happens? Verify if the access token is active and what scopes/subject it represents.
5. Call a Protected API (GET /api/profile)
What happens? Your resource server calls /oauth/introspect; if active: true it returns private data.
Next Steps
| Guide | Summary |
|---|---|
| Authentication Guide | Learn Authlete authentication models and token scopes |
| OAuth 2.0 Flow | Deep dive into the full flow and consent UX |
| API Reference | Browse every management and runtime endpoint |
| Service Management | Automate service configuration and governance |
Need Help?
- Read the API Reference for schemas and responses
- Follow the Authentication Guide for security best practices
- Contact support:
[email protected]