Get Oauth Login Link
This will create a link that can be used for “quick account creation” followed by OAuth login for a user.
When going to this link, if the provided email already has a Zapier account, the user will be asked to log in. If the email does not have a Zapier account, the user will be asked to create an account with the provided email and name.
Upon creating an account or logging in, the user will be taken to
The user will get a Zapier account, be brought to AI Actions where they will see the OAuth consent screen, and then will be brought back to your site
with an OAuth code
that can be used with https://actions.zapier.com/oauth/token/
with the following data in the body with Content-Type: application/x-www-form-urlencoded
:
- client_id: Your AI Actions OAuth client ID
- grant_type:
authorization_code
- code_verifier: The verifier stored for your user when generating the login URL
- redirect_uri: The same URL you used for the
redirect_uri
in the previous step. - code: The code in the query parameters of the URL that the user was redirected to.
Authorizations
Query Parameters
The client ID of the OAuth application.
The redirect URI of the OAuth application.
The code challenge for the OAuth flow.
The first name of the user.
The last name of the user.
The email of the user. If an account for this email already exists, the user will instead be asked to login.