How to create a new branch in GitHub using REST API?

Step 1: Create a personal access token on GitHub.

Step 2: Create a new branch in GitHub using REST API.