> For the complete documentation index, see [llms.txt](https://docs.hypersign.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hypersign.id/hypersign-id/id-widget/integrations/backend-integration/generate-accesstokens.md).

# Generate AccessTokens

You must have SSI service secret key and KYC service secret key with you before proceeding to this step.&#x20;

In order to use APIs of your services, you need `accessToken` generated using your API secret keys. Generate accessToken by calling **Service Authentication API** using API secret keys. You might want to **implement an API** in your backend which will call **Service Authentication API** to generate accessTokens for SSI and KYC services, so that your API secrets are not exposed in your frontend or anywhere else.

Let's call these accessToken as `kycAccessToken` and `ssiAccessToken` for KYC service and SSI service respectively.

{% content-ref url="/pages/1ECe3zbGhbIj5m8Yls2F" %}
[Service Authentication API](/hypersign-ssi/api-doc/authentication.md)
{% endcontent-ref %}

Once you have both `kycAccessToken` as well as `ssiAccessToken`you may now proceed to frontend integration of the KYC widget.

{% content-ref url="/pages/cMqE7034c0k5zu83OOav" %}
[Frontend Integration](/hypersign-id/id-widget/integrations/frontend-integration.md)
{% endcontent-ref %}
