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

# WhasApp Access Token

> This page describes everything about whatsApp Access Token Generate

## Steps to Get a Permanent Access Token

1. Access [Business Settings:](https://turivishal.medium.com/permanent-access-token-for-whatsapp-business-apis-c81e1dfc86c7)<br />

   * Go to Business Settings.

2. Navigate to System Users:<br />
   * Under Users, click on System Users.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/1.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=84d0d81cf9cdeedc621292d6dcb670de" style={{ borderRadius: "0.5rem" }} width="462" height="385" data-path="images/whatsapp-business-id/1.webp" />
</Frame>

3. Create a System User:<br />
   * Click the Add button.
   * Provide a name for the system user.
   * Select a role.
   * Click Create System User.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/2.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=8888363a431c9ddf0c031e3516783652" style={{ borderRadius: "0.5rem" }} width="720" height="470" data-path="images/whatsapp-business-id/2.webp" />
</Frame>

4. Accept Non-Discrimination Policy:<br />

   * Review and accept the non-discrimination policy on behalf of your system users.

5. Finalize Creation:<br />

* After accepting the policy, click Done.

6. App Association (if needed):<br />

   * If you receive an error stating that an app must be part of the business, you need to create a Facebook app associated with your Business Manager first. Once the app is created, return to this step.

7. Add App:<br />

* Under Accounts, click on Apps.
* Click the Add drop-down menu.
* Select Connect an App ID.
* Enter the Facebook app ID.
* Click Add App.

8. Assign assets such as your Pages, ad accounts, Facebook apps, and catalogues.<br />

* Click on the Add Assets button, it will open a model and you can able to see, 1. Select asset type, 2. Select assets, and 3. App.
  <Frame>
    <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/5.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=467df0076075b6ab791e897fb3e6d190" style={{ borderRadius: "0.5rem" }} width="720" height="423" data-path="images/whatsapp-business-id/5.webp" />
  </Frame>
* Click on Apps under Select asset type, available in the left corner.
* Click on the Specific App’s checkbox(s) that you want to provide access to the current user under Select Assets, available in the middle section.
* Click on the Manage app toggle option and enable it for all access, you can customize it by other options available in this App section.
* Finally, Click on the Save Changes button.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/6.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=000d6a6de089ccf786afb68a37efe5e4" style={{ borderRadius: "0.5rem" }} width="720" height="420" data-path="images/whatsapp-business-id/6.webp" />
</Frame>

### "Congratulations, you have added assets successfully."

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/7.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=35f7debcdb56358464ce8112bd003ea3" style={{ borderRadius: "0.5rem" }} width="395" height="191" data-path="images/whatsapp-business-id/7.webp" />
</Frame>

Now you can able to see the added assets in the Assigned assets

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/8.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=e0a9e0c400a59ee99d65e70eb8f710d0" style={{ borderRadius: "0.5rem" }} width="720" height="405" data-path="images/whatsapp-business-id/8.webp" />
</Frame>

<b>'Generate Access Token'</b>

1. Click on the Generate New Token button.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/9.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=762fdf2c1c3baad3462951f7def581da" style={{ borderRadius: "0.5rem" }} width="720" height="411" data-path="images/whatsapp-business-id/9.webp" />
</Frame>

2. Select an App, That you want to generate a token for.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/10.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=b44cc412a35c945d40a29aa688464962" style={{ borderRadius: "0.5rem" }} width="446" height="261" data-path="images/whatsapp-business-id/10.webp" />
</Frame>

3. You can able to see the list of Info, Warnings, and a section <b>Available permissions.</b>

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/11.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=57953260c88c828c7958b0eb1b30ca34" style={{ borderRadius: "0.5rem" }} width="443" height="609" data-path="images/whatsapp-business-id/11.webp" />
</Frame>

4. Scroll down to the Available permissions, there is a list of API components, you need to select “whatsapp\_business\_messaging” and “whatsapp\_business\_management” for WhatsApp Business APIs access and Click on the Generate Token button.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/12.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=d71a543106596e96deb7d0840eda4c26" style={{ borderRadius: "0.5rem" }} width="448" height="312" data-path="images/whatsapp-business-id/12.webp" />
</Frame>

5. It will appear as a model and you can able to see the newly generated Access Token, Just Copy the Access Token and store it in a safe place i.e. your project’s environment(env) file.

<Frame>
  <img src="https://mintcdn.com/qcall/xjMYNWecTA-Ehrrc/images/whatsapp-business-id/13.webp?fit=max&auto=format&n=xjMYNWecTA-Ehrrc&q=85&s=7e8356976fd1a5d4493ec11298cb883c" style={{ borderRadius: "0.5rem" }} width="448" height="413" data-path="images/whatsapp-business-id/13.webp" />
</Frame>

<Note>
  Copy and save this token as it won’t be stored on Facebook, Remember, you can
  only share a token once. Each new system user requires a newly generated
  token.
</Note>
