Generate API credentials

Depending on whether you're building a private app for one merchant, or a public app for the App Store, the process for generating API credentials is slightly different.

Generate private API credentials

Note

Treat your private API credentials like a password. Anyone with the API Key has full API access to the store.

You can generate private app credentials in the Partner dashboard or in the Shopify admin.

You can also use this API key to manipulate your store using the API console without creating an app.

Generate credentials in the Partner dashboard

To generate private API credentials in the Partner dashboard:

  1. Log in to the Partner dashboard.

  2. Click Development stores.

  3. Click the name of the store you want to build for.

  4. From your Shopify admin, click Apps:

  5. Click Manage private apps.

  6. Click Generate API credentials.

  7. Enter a Title and click Save.

After you click Save, you'll see your private API credentials.

Generate credentials in the Shopify admin

To generate private API credentials in the Shopify admin:

  1. From your Shopify admin, click Apps:

  2. Click Manage private apps.

  3. Click Generate API credentials.

  4. Enter a Title and click Save.

After you click Save, you'll see your private API credentials.

Generate public API credentials

When you create an app in the Partner dashboard, you'll be asked to generate public API crendentials for the app. Public applications on Shopify use Oauth authentication.

To generate public API credentials:

  1. Log in to your Partner Dashboard.

  2. Click Apps.

  3. Click Create app.

  4. Enter the App name and App URL for your app. Also, place a checkmark next to "I have read and agree to the Partner Program Agreement."

  5. Click Create App.

  6. From your App's Overview screen, click Get API credentials.

Get api credentials
  1. Scroll to App credentials to view API key and API secret key.

Generate JavaScript Buy SDK credentials

View the Getting Started Guide for the Javascript Buy SDK ›

Generate iOS and Android Buy SDK credentials

View the documentation for adding the Mobile App sales channel ›