# Add authentication with OAuth2 **PATCH /reservation/api/1/platform/{platform-code}/webhook/auth/oauth2** Activate OAuth2 authentication for webhooks. ## Servers - Demo URL: https://api.trial.lsk.lightspeed.app (Demo URL) - Production URL: https://api.lsk.lightspeed.app (Production URL) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **platform-code** (string) The unique code assigned to the reservation platform. ### Body: application/json (object) - **authorizationGrantType** (string) The authorization grant type. See [OAuth2 Grant Types](https://oauth.net/2/grant-types/). - **clientAuthorizationMethod** (string) The client authorization method. See [OAuth2 Client Authentication](https://oauth.net/2/client-authentication/). - **clientId** (string) The OAuth2 client ID. - **clientName** (string) The OAuth2 client name. - **clientSecret** (string(password)) The OAuth2 client secret. - **providerJwkSetUri** (string(uri)) The external platform URL for getting public keys to verify given access tokens on the K-Series side. - **providerTokenUri** (string(uri)) The external platform URL for getting access tokens by private credentials. - **scopes** (array[string]) The scopes being granted to the API client. ## Responses ### 200 Accepted #### Body: application/json (object) - **accepted** (boolean) Whether the webhook request was accepted. - **currentAuthType** (string) The current authentication type. ### 400 Non relevant request ### 403 Scope 'reservation-{platform-code}' not found in the token ### 404 Platform not found [Powered by Bump.sh](https://bump.sh)