Skip to main content

Create Comment

POST 

/comments

Creates a new comment

Request

Query Parameters

    user_id stringrequired

    The user ID of the user making the request

Body

required

    entityType comment_entity_type (string)required

    Possible values: [Track]

    Type of entity that can be commented on

    entityId integerrequired

    ID of the entity being commented on

    body stringrequired

    Possible values: <= 500 characters

    Comment text

    commentId integer

    Optional ID for the comment (will be generated if not provided)

    parentId integer

    Parent comment ID if this is a reply

    trackTimestampS integer

    Timestamp in the track where the comment was made (in seconds)

    mentions integer[]

    Possible values: <= 10

    Array of user IDs mentioned in the comment (max 10)

Responses

Comment created successfully

Schema

    success boolean

    Whether the comment was created successfully

    transaction_hash string

    The blockchain transaction hash

    comment_id string

    The ID of the created comment

Loading...