Skip to main content

Commet Create API

The "create comment" API allows a user to add a new comment to a specific post.

Query Parameters
    client_auth_token string required

    Client API token

Header Parameters
    access-token string required

    user access token

    client string required

    client access token

    expiry string required

    timestamp of token expiry

    Example: 1531315250
    token-type string required

    access token type

    Example: Bearer
    uid string required

    user uid

    Example: user@quranreflect.com
Request Body

Sample request body, parent_id is optional, set this if user is replying to another comment. Either post_id or parent_id should be present.

    comment object
    body string required

    comment body

    post_id integer

    post id, optional

    is_private boolean

    Set this to true if this is a private comment

    parent_id integer

    Set the parent comment ID is this is a reply to another comment.

Responses

Comment created

Response Headers

    Schema
      success boolean
      message string
    Loading...