# Create an alarm **POST /v2/Alarms** ## Servers - https://monitor.twilio.com: https://monitor.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Body: application/json (object) - **friendlyName** (string) Friendly name for alarm - **queryType** (string) Type of query - **query** (string) Value to query for - **triggerValue** (integer) Threshold to send customer alarm notification - **timeWindow** (string) Time window for alarm to trigger - **email** (array[string]) Email notifications to send - **webhook** (string) Webhook notification to send - **consoleIndicator** (boolean) Whether to send console notifications - **description** (string) Description for the alarm. - **enabled** (boolean) Is alarm enbled? Default is true. ## Responses ### 201 Created #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string) ### 400 BAD REQUEST #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **message** (string) Error message - **code** (integer) Twilio error code - **user_error** (boolean) Indicates if it was a user error - **http_status_code** (integer) Http error code returned - **params** (object) - **more_info** (string) More information link - **status** (integer) HTTP status code ### 401 UNAUTHORIZED #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **message** (string) Error message - **code** (integer) Twilio error code - **user_error** (boolean) Indicates if it was a user error - **http_status_code** (integer) Http error code returned - **params** (object) - **more_info** (string) More information link - **status** (integer) HTTP status code ### 409 CONFLICT #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **message** (string) Error message - **code** (integer) Twilio error code - **user_error** (boolean) Indicates if it was a user error - **http_status_code** (integer) Http error code returned - **params** (object) - **more_info** (string) More information link - **status** (integer) HTTP status code ### 429 TOO MANY REQUEST #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **message** (string) Error message - **code** (integer) Twilio error code - **user_error** (boolean) Indicates if it was a user error - **http_status_code** (integer) Http error code returned - **params** (object) - **more_info** (string) More information link - **status** (integer) HTTP status code ### 500 INTERNAL SERVER ERROR #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **message** (string) Error message - **code** (integer) Twilio error code - **user_error** (boolean) Indicates if it was a user error - **http_status_code** (integer) Http error code returned - **params** (object) - **more_info** (string) More information link - **status** (integer) HTTP status code [Powered by Bump.sh](https://bump.sh)