Node.js example
User initiates install from Kit's App Store
Authorization URL
you’ve configured.App requests user's Kit identity
Example redirect
Query parameters
code
public
. Fine-grained access control via scopes coming soon.redirect_uri
and/or to protect from XSRFExample Kit app configuration
Kit prompts user for consent
Example Kit app OAuth page
Kit redirects to App OAuth callback with authorization code
redirect_uri
you provided when requesting the user’s identity in step 2.
Kit appends a code
query param with a temporary authorization code.
Example redirect
App exchanges authorization code for refresh and access tokens
Query parameters
authorization_code
Code samples
Example response
Response schema: application/json
Bearer
App redirects user back to Kit
redirect
parameter provided at the beginning of the flow.
This will ensure the user properly navigates back to your app inside of Kit and registers that the app has been installed.
Redirect URL after install
field in your app’s settings, a modal prompting creators to continue their journey on your configured site will appear at this point. See this section in the app details page guide for more details.Example redirect flow
App uses access token to make Kit API calls
Authorization
header with the token as a Bearer
value.Code samples
App uses refresh token to obtain new access token after expiration
POST
call to https://app.kit.com/oauth/token
, with the following body:Query parameters
Code samples
Example response
Response schema: application/json
Bearer