Post a GitHub Issue Comment

PythonDeveloper Tools
POST api.upapi.io/github-issue-comment.post

Post 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.

githubissuescommentwritepython
AuthAPI key
Cost1 unit
Timeout30s
CacheNone

Request schema

FieldTypeDescription
bodyreq
stringComment body (GitHub-flavoured markdown)
reporeq
stringRepo name
ownerreq
stringRepo owner (user or org)
tokenreq
stringGitHub 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
integerIssue or pull request number

Response schema

FieldTypeDescription
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.

Sign in

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 }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.