Learn how to create and install an app in HubSpot. Apps are integrations that can be installed on customer accounts through an OAuth connection process.
http://localhost
for local development as you build out and test your app.scope
and optional_scope
query parameters in an install URL that you can then provide to users.
scope
query parameter in your app’s install URL for successful installation.scope
query parameter in your app’s install URL for successful installation.
scope
query parameter for users with access to a feature, while another install URL omits that scope in the scope
query parameter for users without access.optional_scope
query parameter in your app’s install URL. For example, if you want your app to be able to fetch custom object data (which is only available to Enterprise HubSpot accounts), you could add the crm.objects.custom.read
scope as an optional scope. Then, if an account has access to the custom objects, the scope will be authorized. Otherwise, they’ll still be able to install the app without the custom objects scope.&scope=
and &optional_scope=
parameters you set for the authorization URL.optional_scope
and the selected account doesn’t have access to it (such as the content scope for a CRM-only account), it will not be listed.&redirect_uri=
parameter in the original authorization URL, and a ?code=
parameter will be appended to the URL. Use that code in the next step to generate an access token.?code=
parameter of the authorization URL, redirect_url
, client ID, and client secret. Detailed instructions are here.
Once you’ve authorized your app and generated the initial tokens, installation is complete. It’ll be listed on your Connected Apps page, and you’ll start getting webhook and CRM Cards fetch requests.
subscriptionId
, eventId
, and attemptNumber
from a specific request.