Skip to content

Instantly share code, notes, and snippets.

@ahembree
Created January 20, 2023 23:32
Show Gist options
  • Select an option

  • Save ahembree/44da6c2d58611a170ac3f795660c8ef6 to your computer and use it in GitHub Desktop.

Select an option

Save ahembree/44da6c2d58611a170ac3f795660c8ef6 to your computer and use it in GitHub Desktop.
Use this script to easily verify a Slack event listener URL in a Lambda function
# Use this script to easily verify a Slack event listener URL in a Lambda function.
import json
def lambda_handler(event, context):
loaded_body = json.loads(event['body'])
challenge = loaded_body['challenge']
return {
'statusCode': 200,
'body': challenge
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment