comments

Create a comment

Create a comment on an event, series, or perps asset, or a reply to another comment.

post/comments

Request

  • Base URL: https://gamma-api.polymarket.com (the document declares no server; this is the origin it was published from)
  • URL: https://gamma-api.polymarket.com/comments
  • Auth: one of:
    • API key in cookie polymarketsession
    • HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

bodystring

Comment text

parentCommentIdstring

Parent comment ID when replying

parentEntityIdinteger

Parent entity ID; required together with parentEntityType

parentEntityType'Event' | 'Series' | 'PerpsAsset'

Parent entity type; required together with parentEntityId

replyAddressstring

Address being replied to

tradeAssetstring

Trade asset associated with the comment

Example request

{
  "$schema": "https://example.com/schemas/CreateCommentBody.json"
}

Response

Created

$schemastring uri

A URL to the JSON Schema for this object.

bodystring
createdAtstring date-time
idstring required
parentCommentIDstring
parentEntityIDinteger
parentEntityTypestring
reactionCountinteger
replyAddressstring
reportCountinteger
tradeAssetstring
updatedAtstring date-time
userAddressstring

Example response

{
  "$schema": "https://example.com/schemas/Comment.json",
  "reactions": [
    {
      "$schema": "https://example.com/schemas/Reaction.json"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.