PT EN
← Back
MOCK API · GitHub

GitHub API mock

Test integrations that create issues, query pull requests, or listen to GitHub webhooks — without hitting the real API's rate limit.

Example endpoints

POST /repos/:owner/:repo/issues

Creates an issue in the repository.

curl
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/repos/acme/app/issues \
  -H "Content-Type: application/json" \
  -d '{"title":"Found a bug","body":"Bug description"}'
Response
{
  "id": 1,
  "number": 1347,
  "title": "Found a bug",
  "state": "open",
  "user": { "login": "octocat" }
}
GET /repos/:owner/:repo/pulls/:number

Fetches a pull request.

curl
curl https://httpdrop.com/mock/YOUR_ENDPOINT_ID/repos/acme/app/pulls/42
Response
{
  "number": 42,
  "state": "open",
  "title": "Add feature",
  "merged": false
}

Webhook example

EVENT push

Configure this as a Mock Rule response body and use Response Sequences or the SSE mode to push it — see the webhook architecture guide.

{
  "ref": "refs/heads/main",
  "repository": { "full_name": "acme/app" },
  "pusher": { "name": "octocat" },
  "commits": [{ "id": "abc123", "message": "Fix bug" }]
}
Transparency note: The examples above are illustrative, based on GitHub's public documentation — not the official source and don't cover every field. Always check the official GitHub REST API docs for your integration's exact details. If anything changed, let us know.

Start mocking GitHub now

Create a free endpoint, no credit card required, and paste the rules above.

Create free mock All providers →