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

> Learn how to authorize M2M access for your application.

# Authorize M2M Access

To authorize Machine-to-Machine access for an application, you must enable it to use an organization for a specific API. To do so, you must associate the application's client grant to the corresponding API with the organization. Once associated, the application can use the organization when requesting tokens for the API and scopes defined in the client grant. You will need to define this association for each API your application needs to access for the organization.

You can authorize M2M access for an application using the [Auth0 Dashboard](https://manage.auth0.com/) or [Management API](https://auth0.com/docs/api/management/v2).

<Tabs>
  <Tab title="Auth0 Dashboard">
    To associate an application’s client grant to an organization via the Auth0 Dashboard:

    1. Navigate to **Organizations** **and choose the organization** you want to associate with.
    2. Select the **Machine-to-Machine Access** tab.
    3. Click **Add Access.**
    4. Click the application you want to associate with the organization.
    5. Select an API.
    6. Click **Save.**

    <Frame>
      <img src="https://mintcdn.com/docs-staging-quickstart-revamp/KCEsvkqT5-VRQ297/images/cdy7uua7fh8z/7AyE87kh1f6Zt3HSs1relI/36b800894175e151c7fe5f2dca6a2100/Acme_Bot_-_travel0_api_-_config_-_English.png?fit=max&auto=format&n=KCEsvkqT5-VRQ297&q=85&s=f08bc827f1e85f2dc3905a21f4c31926" alt="" width="1035" height="809" data-path="images/cdy7uua7fh8z/7AyE87kh1f6Zt3HSs1relI/36b800894175e151c7fe5f2dca6a2100/Acme_Bot_-_travel0_api_-_config_-_English.png" />
    </Frame>
  </Tab>

  <Tab title="Management API">
    Application client grants can be associated with an organization via the [Associate client grant to organization](https://auth0.com/docs/api/management/v2/organizations/create-organization-client-grants) endpoint:

    ```bash lines
    curl -X POST --location "https://{YOUR_DOMAIN}/api/v2/organizations/{ORG_id}/client-grants" \
      --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
      --header 'content-type: application/json' \
      --data '{
              "grant_id": "GRANT_ID"
            }'
    ```
  </Tab>
</Tabs>
