Slack Events API URL verification: answer the challenge with HTTP 200
When configuring a Slack Events API Request URL, Slack sends a POST to confirm that the endpoint can return a challenge. The receiver should identify type=urlverification, authenticate the request using Slack's signing-secret process, and respond with HTTP 200 containing the challenge value. This handshake confirms URL ownership during setup; it does not replace signature checks for later event requests.
When configuring a Slack Events API Request URL, Slack sends a POST to confirm that the endpoint can return a challenge. The receiver should identify type=url_verification, authenticate the request using Slack's signing-secret process, and respond with HTTP 200 containing the challenge value. This handshake confirms URL ownership during setup; it does not replace signature checks for later event requests.
Recognize the verification request
The JSON payload contains type, challenge, and a legacy token field. It requires no OAuth scope or event subscription.
{
"type": "url_verification",
"challenge": "random string from Slack",
"token": "deprecated"
}The token is a deprecated verification token; current Slack docs say it may be ignored during the handshake. Authenticate actual Slack requests using X-Slack-Signature, X-Slack-Request-Timestamp, and the app signing secret. Signature verification needs the original body before JSON deserialization. Keep the two checks distinct.
Response procedure
Enter the Request URL in Event Subscriptions in Slack app settings. URLs are case-sensitive.
Ensure the server presents a valid TLS certificate and accepts public HTTPS POST requests. Slack validates the SSL certificate during URL verification.
Preserve the raw request body and validate the origin using Slack's signing-secret method. Comparing only the old token field is not the current request-authentication method.
For valid JSON, check type=url_verification and use the challenge exactly as received.
Respond quickly with HTTP 200. The simplest documented response uses Content-Type: text/plain and the challenge string as the body. Slack also accepts application/x-www-form-urlencoded or application/json.
Return to app settings and confirm success. After a timeout, use Retry and check startup delay, TLS, path casing, and response format.
Example response:
HTTP/1.1 200 OK
Content-Type: text/plain
challenge value supplied by SlackThis is an illustrative format, not a result from a live Slack endpoint. Limit request size and validate JSON; do not echo a challenge for malformed or unauthenticated requests.
Separate setup verification from event authentication
A successful URL check means Slack received the expected challenge response from that address during setup. It does not prove ongoing availability or correct processing of all events. Verify the signing-secret signature on each real event callback, then inspect the event type and process it safely. Route url_verification separately from event_callback; do not run event persistence or business processing as part of the challenge response.
Sources and scope
[Slack Developer Docs: Using HTTP Request URLs](https://docs.slack.dev/apis/events-api/using-http-request-urls/)
[Slack Developer Docs: url_verification event](https://docs.slack.dev/reference/events/url_verification/)
[Slack Developer Docs: Verifying requests from Slack](https://docs.slack.dev/authentication/verifying-requests-from-slack/)
This article applies only to Slack Events API HTTP Request URL verification. The token field is legacy; authenticating real requests requires Slack's signing-secret process. Other webhook providers may use different verification handshakes.