# Test inline hook **POST /api/configs/inline-hooks/test** Test an inline hook script with a sample context. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Body: application/json (object) - **script** (string) The inline hook script to test. - **hookType** (string) The inline hook type to test. - **event** (object | null | array[string | number | boolean | null | object] | string | number | boolean) The sample event for inline hook script testing. - **environmentVariables** (object) The environment variables for the inline hook script. ## Responses ### 200 The result of the inline hook script testing. #### Body: application/json (object | null) object | null ### 400 The request body or response body is invalid. ### 401 Unauthorized ### 403 Cloud connection does not have enough permission to perform the action or the tenant's subscription plan does not support this feature. ### 422 The inline hook script failed to execute. [Powered by Bump.sh](https://bump.sh)