Skip to content

Ping interaction fails when using callback endpoint for response #7311

Open
@fbrettnich

Description

@fbrettnich

Description

When verifying an endpoint for HTTP interactions, the PING request (Interaction Type 1) must be acknowledged directly via an HTTP response with a status 200 and a PONG payload (Interaction Callback Type 1). Attempting to respond via the callback endpoint (POST /interactions/:id/:token/callback) instead results in a 404 error, causing endpoint verification to fail.

It was recommended by a Discord staff to open an issue so this behavior can be re-evaluated.

Steps to Reproduce

  1. Discord sends a valid POST request with a PING payload (Interaction Type 1) to the provided endpoint to verify the endpoint
  2. The app responds with status code 202
  3. The app posts a PONG payload (Interaction Callback Type 1) to the callback endpoint (POST /interactions/:id/:token/callback) using the interaction id and token provided in the initial request
  4. Discord responds with a 404 error, and the endpoint verification fails

Expected Behavior

It should be possible to use the callback endpoint to respond to PING requests, similar to other interaction types

Current Behavior

Discord rejects the callback request with a 404 error, making it mandatory to respond directly to the initial HTTP request to complete endpoint verification

Screenshots/Videos

No response

Client and System Information

API v10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions