Response text not generate after triggering action from api

Hi,

Can anyone explain me why there is no response text generated after api request is made ?

Code present in /.github/workflows/main.yml

name: API
on: repository_dispatch

jobs:
  job1:
    runs-on: ubuntu-latest
    steps:
      - name: Echo
        run: echo "Testing"

API Request making from python (add the token, owner and repo) for testing

import requests
headers = {
    'Accept': 'application/vnd.github.v3+json',
    'Authorization': 'Bearer <token here>'
}
data = '{"event_type": "hello"}'
response = requests.post('https://api.github.com/repos/{owner}/{repo}/dispatches', headers=headers, data=data)
print(response)
print(response.content)

Response generate is

<Response [204]>
b''

It’s an asynchronous API that merely acknowledges that your workflow dispatch request was received. It doesn’t return any content by design, as the documentation states:

Status: 204 No Content

This is otherwise a duplicate of Finding ID of last-queued run via API

Thanks for the update!