Oauth2 Callback
This callback/webhook is used while creating a new connection with Oauth2. See https://docs.peaka.com/how-to-guides/how-to-create-oauth2-based-connections-via-peaka for more information.
Authorizations
Use the Authorization header with the value 'Bearer <apiKey>' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication
Path Parameters
ID of the project
Body
Oauth2 Callback Body
Query parameters received from the Oauth2 redirection. Pass all query parameters as a single string.
Example: "https://yourdomain.com/oauth2/mycallback?code=1234&state=xyz¶m1=value1¶m2=value2"
"queryParameters": "code=1234&state=xyz¶m1=value1¶m2=value2"
Response
Connection created successfully
Connection ID
Name of the connection
Type of connection.
Example: airtable for AirTable, stripe for Stripe, hubspot_access_token for HubSpot (with Access Token), etc.
Exact list can be fetched by following url: /connections/config
Oauth callback url if the connection is Oauth based.