> ## Documentation Index
> Fetch the complete documentation index at: https://developers.authlete.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ### Authlete versions
> Authlete 3.0 is the current version. Unless the user says they use another version, answer for Authlete 3.0 using the 3.x documentation.
> Documentation for Authlete 2.x (pages under `/v2/` and `/ja/v2/`) is for the legacy version. Refer to it only when the user is on Authlete 2.x.
>
> ### Authlete architecture
> Authlete is a backend engine for OAuth 2.0 and OpenID Connect processing. End users and client applications do not call it directly; the service provider's authorization server and API server call Authlete's APIs. Authlete handles protocol processing and token, client, and service management, while the service provider owns the OAuth/OIDC endpoints and user authentication.
> See [Architecture](https://developers.authlete.com/get-started/introduction-to-authlete/architecture.md).
>
> ### Concepts
> If the user is new to Authlete, read these pages first:
> - [Request and Response](https://developers.authlete.com/get-started/concepts/request-and-response.md): Core API requests pass the client's request parameters as-is, and responses return `resultCode`, `action`, and `responseContent`.
> - [Action Handling](https://developers.authlete.com/get-started/concepts/action-handling.md): Branch on `action`, never on `resultCode`, and map each action to the HTTP response your server returns.
> - [Two-Step API Calls](https://developers.authlete.com/get-started/concepts/two-step-api-calls.md): Actions such as `INTERACTION` are completed with a second call (`/auth/authorization/issue` or `/auth/authorization/fail`) linked by a `ticket`.
> - [Management API Overview](https://developers.authlete.com/get-started/concepts/overview.md): The Management API configures services, manages clients, and operates issued tokens, separately from the protocol flows handled by the Core API.
> - [API Authentication](https://developers.authlete.com/get-started/concepts/authentication.md): Authlete APIs use bearer tokens: a Service Access Token (one service) or an Organization Token (the whole organization).

# First API Call 🚀

> Set up your Authlete account and make your first API call in just a few minutes.

> [!NOTE]
>
> This page is for Authlete 3.0. For 2.x, see [Getting Started (2.x)](https://developers.authlete.com/v2/get-started/quickstarts/getting-started.md).

## 1. Create an Authlete Account

To use Authlete, you need an account. Once registered, you can configure all features through the management console.

[Visit the Authlete website](https://www.authlete.com) and click [Free Trial](https://console.authlete.com/register) in the upper-right corner.

![Authlete website homepage with Free Trial button prominently displayed in the upper-right corner](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/1.png)

Choose your preferred registration method. You can use **social login (Google or GitHub)** or sign up with your **email address**.

![Signup page showing registration options: social login with Google and GitHub buttons, and an email address signup field](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/2.png)

After verifying your social login or email address, complete the profile page by entering your **first name**, **last name**, and **organization name** (and **Password** if using email registration). Review Authlete’s Privacy Policy and Terms of Service, then click **Register** to agree and complete your signup.

![User profile form with input fields for first name, last name, and organization name, with checkboxes to review Privacy Policy and Terms of Service, and a blue Register button](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/6.png)

***

## 2. Create a Service

Immediately after signing up, you will be directed to the **Services** page. This page displays all services under your organization (which was created during the signup process).

A **Service** represents the backend of your Authorization Server. It contains all the configurations required to operate a production-grade authorization server, including OAuth/OIDC settings, token management, and security policies.

Click **Create Service** to add a new Authlete service to your organization.

![Services page showing a list of existing services under the organization with a blue Create Service button in the upper right](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/104.png)

1. Select your preferred **API Cluster** location (e.g., `US`). All service data will be stored in this selected cluster. Choose the cluster based on your data residency and environment isolation requirements.
2. Enter a **Service Name** (e.g., `Sample Service`).
3. Click **Create** to complete the setup.

![Create service form with dropdown menu to select API cluster location such as US, input field for service name, and a blue Create button](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/105.png)

Now you have completed to create a new Service.

***

## 3. Create a Service Access Token

You will need a **Service Access Token** to authenticate your Authlete API calls.

Click **Service Settings** for your newly created service.

![Service overview page with Service Settings option displayed for the newly created service](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/106.png)

1. Note down the **Service Identifier** value (e.g., `21653835348762`), which is required when making requests in many Authlete APIs.
2. Click **Create Token** to create a new Service Access Token.

![Service settings page displaying the Service Identifier value and a blue Create Token button to generate a new Service Access Token](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/107.png)

1. Enter a **token Name** (e.g., `oauth-server-token`).
2. Specify the **Expiration Date**.
3. Select the appropriate **Permissions** (e.g., **Authorization Server** preset).
4. Click **Create Token**.

![Add a Service Access Token dialog showing Token Name field with oauth-server-token, Expiration Date field with date picker, Permission Presets section with Authorization Server option highlighted in orange, Custom Token Permissions checkboxes below, and a blue Create Token button at the bottom](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/108.png)

The new Service Access Token will appear in the list.

1. Click the **Copy** or **Show** icon to retrieve the token value, as it is required for most Authlete API requests. Please note that this value is only displayed once upon creation.
2. Click **Back to Service Overview** to return to the main Service page.

![Service Access Token list showing the newly created token with Copy and Show buttons next to it, and a Back to Service Overview link to return to the main service page](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/109.png)

*Now you are ready to test the Authlete API!*

***

## 4. Call the Authlete API

Let’s make your first API request to Authlete’s [/service/configuration](https://developers.authlete.com/api-reference/service-management/get-service-configuration.md) API, which acts as the backend for the OIDC discovery endpoint, generating OpenID provider metadata so that the endpoint can return in response to requests from clients (OIDC relying parties).

```mermaid placement="top-right" theme={null}

%%{init: {
  'themeVariables': {
    'fontSize': '20px',
    'nodeTextMargin': 40
  },
  'flowchart': {
    'nodeSpacing': 40,
    'rankSpacing': 40,
    'padding': 5
  }
}}%%

graph LR

client[OIDC RP]

subgraph as[OIDC IdP]
    direction TB
    disco[Discovery<br/>Endpoint]
end

subgraph authlete[Authlete]
    direction TB
    config["/service/configuration<br/>API"]
end

client -- Metadata<br/>Request --> disco
disco -- Service<br/>Configuration<br/>Request<br/> --> config
```

Below are examples using **curl** and the **API Explorer**. Please replace the placeholder values with your actual environment details.

| Item | Value |
| :- | :- |
| **API Cluster Hostname** | `https://us.authlete.com` |
| **Service Access Token** | `UpUodxmvxO7Yd06O9QCxForhwM5Mz5PHZuVW3WFQgsc` |
| **Service ID** | `21653835348762` |

### Using curl

Run the following command in your terminal to send an HTTP GET request:

```bash For Linux/MacOS theme={null}
curl -X GET "https://us.authlete.com/api/21653835348762/service/configuration" \
 -H "Authorization: Bearer UpUodxmvxO7Yd06O9QCxForhwM5Mz5PHZuVW3WFQgsc"
```

```powershell For Windows theme={null}
curl.exe -X GET "https://us.authlete.com/api/21653835348762/service/configuration" `
 -H "Authorization: Bearer UpUodxmvxO7Yd06O9QCxForhwM5Mz5PHZuVW3WFQgsc" | ConvertFrom-Json
```

If successful, the API will return OpenID Provider Metadata similar to this:

```json theme={null}
{
  "issuer": "https://authlete.com",
    [...]
  "scopes_supported": [
    "address",
    "email",
    "openid",
    "offline_access",
    "phone",
    "profile",
    "grant_management_query",
    "grant_management_revoke"
  ],
  "response_types_supported": [
    "none",
    "code",
    "id_token",
    "code id_token"
  ],
[...]
}
```

### Using API Explorer

Open the [/service/configuration API reference page](https://developers.authlete.com/api-reference/service-management/get-service-configuration.md) and click the **Try it** button.

![API Explorer interface for the /service/configuration endpoint with Try it button ready to be clicked to test the API](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/110.png)

1. Choose the **API Cluster Hostname**.
2. Enter the **Service Access Token**.
3. Enter the **Service ID**.
4. Click **Send**.

![API Explorer form with input fields for Service ID and Service Access Token, and a blue Send button to execute the API request](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/111.png)

The API response will be displayed in the Response section.

![API response displayed in the Response section of the API Explorer showing JSON data with service configuration details including issuer, supported scopes, and response types](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/112.png)

***

## Next Steps

Now that your Authlete account is set up and your service is configured, it's time to explore further:

* [**OAuth 2.0 Basics - API Tutorials**](https://developers.authlete.com/get-started/quickstarts/oauth-2-0-basics.md): Learn how Authlete works under the hood by calling the APIs directly using curl and other tools.
* [**Using Demo Authorization Server**](https://developers.authlete.com/get-started/quickstarts/using-demo-authorization-server.md): Deploy an open-source authorization server frontend that integrates with Authlete APIs to test live OAuth/OIDC flows.

***

## Extra: OAuth/OIDC Processing

Let's explore Authlete's OAuth/OIDC protocol processing by testing a sample authorization request.

### Create a Client

A **Client** represents an application that interacts with the Authorization Server to request tokens, or with the Resource Server to access protected resources. Clients are managed within the context of a specific Authlete Service.

On the Service page, click the **Create Client** button at the top-right of the screen.

![Service page with Create Client button located in the upper-right corner of the screen ready to be clicked](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/113.png)

Enter a **Client Name** and click **Create**.

![Create client dialog form with input field for Client Name and a blue Create button to add the new client](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/114.png)

Once created, the client details will be displayed. Make a note of the **Client ID** and **Client Secret** if needed. In the **Redirect URIs** section, click **Add** to register your application's redirect URIs.

![Client details page showing Client ID and Client Secret values, with a Redirect URIs section and an Add button to register application redirect URIs](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/115.png)

For example, enter `https://client.example.org/cb/example.com` and click **Save Changes**.

![Redirect URI input form with example value https://client.example.org/cb/example.com and a blue Save Changes button to confirm the entry](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/116.png)

### Call "Process Authorization Request" API

Navigate to the [Try /auth/authorization API](https://developers.authlete.com/api-reference/authorization-endpoint/process-authorization-request.md?playground=open) tool.

1. Choose the **API Cluster Hostname**.
2. Enter the **Service Access Token**.
3. Enter the **Service ID**.
4. Enter the authorization request content below into the **parameters** field. Please note that you must replace the example `client_id` value (`2329821874`) with the one you created in the previous step.
5. Click **Send**.

| Parameter | Value |
| :- | - |
| **parameters** | `redirect_uri=https://client.example.org/cb/example.com&client_id=2329821874&response_type=code` |

![API Explorer showing the /auth/authorization endpoint with parameters entered](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/119.png)

You will see the API response in the Response section.

![API Explorer showing the /auth/authorization endpoint with parameters entered and the JSON response displayed in the Response section showing authorization request results](https://storage.googleapis.com/authlete-website/resources/tutorial-getting-started-images/120.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.