> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Obtenir un jeton

> Il s’agit de l’autorisation OAuth 2.0 que les processus du serveur utilisent pour accéder à une API. Utilisez ce point de terminaison pour demander directement...

`POST /oauth/token`

Il s’agit de l’autorisation OAuth 2.0 que les processus du serveur utilisent pour accéder à une API. Utilisez ce point de terminaison pour demander directement un jeton d’accès  à l’aide des informations d’identification de l’application (un ID client et un secret client).

### Réponses

#### 200

Une réponse réussie renvoie un jeton d’accès.

```
{
  "access_token":"eyJz93a...k4laUWw",
  "token_type":"Bearer",
  "expires_in":86400
}
```

### En savoir plus

* [Flux des identifiants client](/docs/fr-ca/api/authentication/flows/concepts/client-credentials)
* [Appeler l’API en utilisant le flux des identifiants client](/docs/fr-ca/api/authentication/flows/guides/client-credentials/call-api-client-credentials)
* [Configuration d’un octroi client à l’aide de Management Dashboard](/docs/fr-ca/api/authentication/api-auth/config/using-the-auth0-dashboard)
* [Demande de jetons d’accès pour un octroi d’identifiants client](/docs/fr-ca/api/authentication/api-auth/config/asking-for-access-tokens)

## Parameters

<ParamField body="grant_type" type="string">
  Indique le flux que vous utilisez. Pour les identifiants client, utiliser `client_credentials`.
</ParamField>

<ParamField body="client_id" type="string">
  L’identifiant client de votre application.
</ParamField>

<ParamField body="client_secret" type="string">
  Le secret client de votre application.
</ParamField>

<ParamField body="audience" type="string">
  L’identifiant unique de l’API cible à laquelle vous souhaitez accéder.
</ParamField>

<ParamField body="organization" type="string">
  \[Recommandé]L’organization ou l’identifiant auquel vous souhaitez associer la demande. Pour en savoir plus, consultez [Accès entre machines pour organizations](https://auth0.com/docs/manage-users/organizations/organizations-for-m2m-applications).
</ParamField>

## Response

| Status | Description      |
| ------ | ---------------- |
| 200    | Réponse correcte |
