Authentication depends on the environment in which you run Nango.

Nango Cloud

Simply use the Nango Secret Key available in your Project Settings as Bearer token in the Authorization header:

Authorization: Bearer {nango-secret-key}

Nango Self-Hosted

By default, Nango Self-Hosted does not require to authenticate API requests, which is well-suited for local testing.

If you plan to release Nango Self-Hosted in production, please visit the self-hosting instructions.

Once you have enabled API authentication, use Basic auth instead of Bearer auth.