Skip to content

muffin-rewards/lambda-ig-verifier

Repository files navigation

Lambda IG Verifier

Verifies new Instagram API webhooks.

Deployment

To deploy the lambda for production, use npm run deploy:prod.

Environment variables

  • TOKEN which is going to be matched against hub.verify_token query parameter.

Request

The request GET has 3 mandatory query parameters:

  • hub.verify_token is a token that is set in the IG Dashboard when creating new webhook
  • hub.mode has to be equal to subscribe
  • hub.challenge is an integer that we respond with if the request is valid

Response

If the environment has not been setup, it respond with http status 500.

If the challenge is empty or mode is not correct it responds with 422.

If the token does not match, it responds with http status 401.

Otherwise it responds with 200 and puts hub.challenge into body.

Releases

No releases published

Packages

No packages published