# Add authentication with BearerAuth **PATCH /reservation/api/1/platform/{platform-code}/webhook/auth/bearer-auth** Activate BearerAuth 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 parameters Content-type: application/json - **token** (string(password)) The bearer token. - **ttl** (string(date-time)) Token expiration time in UTC. ## Responses ### 200: Accepted #### Body Parameters: 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)