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

# Authentication

To access any of our API's. You need to authorize yourself using the <a href="/auth-api-reference/oauth-20/generate-token" target="_blank">Generate Token API</a>. We are using the standard <a href="https://oauth.net/2/grant-types/client-credentials" target="_blank">OAuth 2.0 client credentials</a>.

The Generate Token API requires your a Client ID and Client Secret. You can can head over to <a href="https://portal.yasmina.ai/api-management" target="_blank">API Management</a> to retrieve them.

<img src="https://mintcdn.com/yasmina/JBmjU6a0nW2v_yYS/images/credentials.png?fit=max&auto=format&n=JBmjU6a0nW2v_yYS&q=85&s=77f66b5f6c9fee2fabfcbdefc542a823" alt="Insurance flow" width="600" className="rounded-lg" data-path="images/credentials.png" />

In this page you can Generate a new client secret. Copy both the Client ID and Client Secret.

Now you can get a secure JWT token from the <a href="/auth-api-reference/oauth-20/generate-token" target="_blank">
Generate Token API</a>

<Warning>When you generate a new client secret the old one will be invalid, so use the Generate button with care.</Warning>
