Skip to main content
POST
/
token
/
{id}
/
comment
cURL
curl --request POST \
  --url https://api.odin.fun/v1/token/{id}/comment \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "<string>",
  "community": 0
}'
{
  "id": 123,
  "user": "<string>",
  "token": "<string>",
  "time": "2023-11-07T05:31:56Z",
  "message": "<string>",
  "reported": false,
  "blocked": false,
  "image": "<string>",
  "pinned": true,
  "pinned_time": "2023-11-07T05:31:56Z",
  "community": 0,
  "user_username": "<string>",
  "user_image": "<string>",
  "vote": {
    "upvotes": 123,
    "downvotes": 123,
    "total": 123
  },
  "user_upvote": true
}

Path Parameters

id
string
required

Body

application/json
message
string
required
community
integer
default:0

If 1, comment is in the community section requiring token ownership

Response

default - application/json
id
integer
required
user
string
required
token
string
required
time
string<date-time>
required
message
string
required
reported
boolean
default:false
required
blocked
boolean
default:false
required
pinned
boolean
required
pinned_time
string<date-time>
required
community
integer
default:0
required

If 1, comment is in the community section requiring token ownership

vote
object
required
user_upvote
boolean
required
image
string
user_username
string
user_image
string
I