Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
🚀 Quickstart
🧑💻 OAuth app setup
🔗 Useful links
🚨 API gotchas
Create an integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Snapchat. Nango doesn’t provide a test OAuth app for Snapchat yet. You’ll need to set up your own by following these instructions. After that, make sure to add the OAuth client ID, secret, and scopes in the integration settings in Nango. Authorize Snapchat
Go to Connections -> Add Test Connection -> Authorize, then log in to Snapchat. Later, you’ll let your users do the same directly from your app. Call the Snapchat API
Let’s make your first request to the Snapchat API (fetch your account profile). Replace the placeholders below with your secret key, integration ID, and connection ID:curl "https://api.nango.dev/proxy/v1/me" \
-H "Authorization: Bearer <NANGO-SECRET-KEY>" \
-H "Provider-Config-Key: <INTEGRATION-ID>" \
-H "Connection-Id: <CONNECTION-ID>"
Install Nango’s backend SDK with npm i @nangohq/node. Then run:import { Nango } from '@nangohq/node';
const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });
const res = await nango.get({
endpoint: '/v1/me',
providerConfigKey: '<INTEGRATION-ID>',
connectionId: '<CONNECTION-ID>'
});
console.log(JSON.stringify(res.data, null, 2));
Or fetch credentials dynamically via the Node SDK or API. ✅ You’re connected! Check the Logs tab in Nango to inspect requests.Create a Snapchat Business account
Create a new Snap Kit OAuth app
- Go to your Business portal, then select Business Details.
- Click + OAuth App.
- Fill in all the required information. For Snap Redirect URI, add
https://api.nango.dev/oauth/callback
- Click Create OAuth App at the top right.
Obtain your client credentials
- After creating the app, copy the Snap Client ID and Snap Client Secret Key that Snapchat will generate. You’ll need these when configuring your integration in Nango.
Common Scopes
| Scope | Description |
|---|
snapchat-marketing-api | Read and write to the Snapchat Marketing APIs |
snapchat-offline-conversions-api | Read and write to the Snapchat Conversions APIs |
snapchat-profile-api | Read the Snapchat Public Profile APIs |