# Test hook **POST /api/hooks/{id}/test** Test the specified hook with the given events and config. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **id** (string) The unique identifier of the hook. ## Body parameters Content-type: application/json - **events** (array[string]) An array of hook events for testing. - **config** (object) The hook configuration for testing. - **event** () Use `events` instead. ## Responses ### 204: The hook test was successful. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: Not Found ### 422: Unprocessable Content [Powered by Bump.sh](https://bump.sh)