> ## Documentation Index
> Fetch the complete documentation index at: https://pleo-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth Client Configuration

> Configuring your application to work with Pleo authorization server

After registering the OAuth client, configure it using the information provided below.

| Parameter | Value |
| :- | :- |
| Authorization Endpoint | `{AUTHORIZATION_SERVER_URL}/oauth/authorize` |
| Token Endpoint | `{AUTHORIZATION_SERVER_URL}/oauth/token` |
| Grant Type | Authorization code grant, with PKCE extension. |
| Client Credentials | Client identifier and client secret of your client. |
| Client Authentication | Only `client_secret_basic` client authentication method is supported. |
| Redirect URI | URI of a redirection endpoint used by your client. |
| PKCE | Required, if supported by the client. Only `S256` code challenge method is supported. |

Exact mapping between these parameters and the configuration options provided by OAuth client implementation, depend on the choice of the the software. Consult the documentation provided by your chosen implementation of OAuth client.

## Authorisation Server URL

When configuring authorisation and token endpoints, substitute `{AUTHORIZATION_SERVER_URL}` with the base URL of the authorisation server in the environment that you’re developing for.

| Environment | Authorization Server URL |
| :- | :- |
| Staging | `https://auth.staging.pleo.io` |
| Production | `https://auth.pleo.io` |


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