# Generate client credentials

Source: https://developer.avalara.com/products/e-invoicing/integration-guides/elr/icf5855213608571/

Guide: E-Invoicing and Live Reporting

# Generate client credentials

Learn how to generate client credentials in the Avalara portal and use them to authenticate ELR API requests.

To authenticate with E-Invoicing and Live Reporting (ELR) APIs, generate client credentials in the Avalara portal.

For steps on how to generate client credentials, see [Generate client key and secret](https://knowledge.avalara.com/bundle/nsz1680268923536_nsz1680268923536/page/uev1682056823407.html).

Set the generated key and secret values as `clientId` and `clientSecret` in your environment (for example, in Postman).

If the Integrations tab in the Avalara portal is unavailable, you don’t have Administrator or Admin permission.

You can generate only 1 active set of credentials. When you generate a new secret, the previous secret is immediately revoked and can no longer be used.

Generating a new secret affects any systems that currently use the ELR APIs with the existing credentials.

Note

The ELR Postman collection includes scripts that help manage authentication. To use these scripts, populate the active Postman environment’s `clientId` and `clientSecret` variables with the client key and secret values you generated.