Create comment

Creates a new comment on a video as the authenticated user.

Authentication

This endpoint requires authentication via API Key in the Authorization header.

Authorization: <your-api-key>

Action Parameter

This endpoint uses the query parameter action=comment to identify the operation.

POST /video-review/{video_id}?action=comment

Fields

FieldRequiredTypeDescription
textYesstringComment text (max 500 characters)
timeNo*integerVideo timestamp in seconds
user_nameNostringUser name (uses authenticated name if not provided)
reply_toNostringParent comment UUID for replies

*The time field is required for main comments, but optional for replies (inherits from parent).

Limits

  • Maximum of 30 main comments per video
  • Maximum of 30 replies per comment
  • Text with maximum 500 characters
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

POST /video-review/{video_id}/comments

Creates a comment on the video from the owner side, attributed to the authenticated user.

📘

Authorization

Requires a valid API Key in the Authorization header. Send the key directly — no Bearer prefix.

🚧

?action=comment is required

Without ?action=comment the request returns 404 Route not found.

The dashboard uses the canonical form POST /video-review/{video_id}?action=comment (without the trailing /comments). Both work for POST — only ?action=comment matters.

HTTP Method & Path

POST /video-review/{video_id}/comments?action=comment

Base URL: https://api-v2.pandavideo.com.br

Path Parameters

NameTypeRequiredDescription
video_idstring (uuid)yesVideo UUID.

Query Parameters

NameTypeRequiredDescription
actionstringyesMust be comment.

Request Body

Content-Type: application/json

Body Parameters

FieldTypeRequiredDescription
textstring (1–500, no < > { } [ ])yesComment text.
timeinteger (≥ 0)conditionalVideo timestamp in seconds. Required for top‑level, optional for replies.
user_namestring (1–100, [a-zA-Z0-9 \-_.@]+)noOverride display name. Defaults to the authenticated user's name.
reply_tostring (uuid)noParent comment UUID. When present, creates a nested reply (and time is inherited from the parent).
{ "text": "Adjust the lighting in this section.", "time": 330 }
{ "text": "Already adjusted, check the new version.", "reply_to": "b2c3d4e5-f6a7-8901-bcde-f23456789012" }

Response

Success Response (200)

Returns the created comment — same shape as the list response item (with user_id and optional avatar).

Error Responses

  • 400 — invalid body, time missing on a top‑level comment, time greater than video duration, or comment/reply limit reached (30 each).
  • 401 — missing/invalid API Key.
  • 404 — user, video or reply_to not found.
  • 500 — internal error.

Example Usage

cURL

curl --request POST \
  --url 'https://api-v2.pandavideo.com.br/video-review/a1b2c3d4-e5f6-7890-abcd-ef1234567890?action=comment' \
  --header 'Authorization: <your-api-key>' \
  --header 'Content-Type: application/json' \
  --data '{ "text": "Adjust the lighting in this section.", "time": 330 }'

Recipes

Path Params
uuid
required

Video UUID

Query Params
string
enum
required

Action type (must be "comment" for this operation)

Allowed:
Body Params
string
required
length between 1 and 500
^[^<>{}\[\]]*$

Comment text. Does not allow HTML tags or special characters like < > { } [ ].

string
length between 1 and 100
^[a-zA-Z0-9\s\-_\.@]+$

User name. If not provided, uses the authenticated user's name.

integer
≥ 0

Video timestamp in seconds. Required for main comments, optional for replies.

uuid

Parent comment UUID to create a reply.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json