Post a GitHub Issue Comment
PythonDeveloper ToolsPOST api.upapi.io/github-issue-comment.postPost one comment on a GitHub issue or pull request as the supplied token's account. Returns the new comment id and URL. Bring your own GitHub token: a fine-grained PAT with the 'Issues' repository permission (write), plus 'Pull requests' (write) for a pull request, or a classic PAT with 'public_repo' (broad). The token is used for this one call, never stored; sent only to api.github.com. Never retried here, so a client retry can post a duplicate comment and bill twice: over the HTTP API, send an Idempotency-Key header and reuse it on every retry; MCP callers should check for an existing comment before retrying.
Request schema
| Field | Type | Description |
|---|---|---|
bodyreq | string | Comment body (GitHub-flavoured markdown) |
reporeq | string | Repo name |
ownerreq | string | Repo owner (user or org) |
tokenreq | string | GitHub token of the account that will comment. Fine-grained PAT: 'Issues' repository permission (write), plus 'Pull requests' (write) to comment on a pull request; classic PAT: 'public_repo' ('repo' for a private repository; broad, prefer fine-grained). Used for this one call, never stored; sent only to api.github.com. |
proxyUrl | Optional proxy URL. Use the same one across related calls when the upstream expects a consistent IP.· default: null | |
issueNumberreq | integer | Issue or pull request number |
Response schema
| Field | Type | Description |
|---|---|---|
authorreq | ||
htmlUrlreq | string | |
postedAtreq | string | |
commentIdreq | integer | |
createdAtreq | ||
rateLimitreq |
Try it
Try it
Comment body (GitHub-flavoured markdown)
Repo name
Repo owner (user or org)
GitHub token of the account that will comment. Fine-grained PAT: 'Issues' repository permission (write), plus 'Pull requests' (write) to comment on a pull request; classic PAT: 'public_repo' ('repo' for a private repository; broad, prefer fine-grained). Used for this one call, never stored; sent only to api.github.com.
Issue or pull request number
Optional proxy URL. Use the same one across related calls when the upstream expects a consistent IP.
Run this endpoint live
Jump in as a guest — no signup — and run github-issue-comment.post with your own inputs. Create a free account anytime to get your own API key.
Code examples
curl -X POST https://api.upapi.io/github-issue-comment.post \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{ "body": "example", "repo": "playwright", "owner": "microsoft", "token": "example", "issueNumber": 1 }'