Create a comment on a post
curl --request POST \
--url https://api.fanvue.com/v1/posts/{uuid}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"text": "<string>"
}
'import requests
url = "https://api.fanvue.com/v1/posts/{uuid}/comments"
payload = { "text": "<string>" }
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: '<string>'})
};
fetch('https://api.fanvue.com/v1/posts/{uuid}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "550e8400-e29b-41d4-a716-446655440001",
"text": "Thanks for the kind words!",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": null
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "<string>"
}Comments
Create a comment on a post
Create a new comment on a specific post. Only the post owner can create comments via this endpoint.
POST
/
v1
/
posts
/
{uuid}
/
comments
Create a comment on a post
curl --request POST \
--url https://api.fanvue.com/v1/posts/{uuid}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"text": "<string>"
}
'import requests
url = "https://api.fanvue.com/v1/posts/{uuid}/comments"
payload = { "text": "<string>" }
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({text: '<string>'})
};
fetch('https://api.fanvue.com/v1/posts/{uuid}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "550e8400-e29b-41d4-a716-446655440001",
"text": "Thanks for the kind words!",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": null
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "<string>"
}Required scope
write:post— Create, edit, and manage posts and content on behalf of users.
Authorizations
OAuth 2.0 access token, presented as a JWT bearer token in the Authorization header. Obtain a token via the authorization-code flow; the scopes granted to the token determine which operations it may call.
Headers
API version to use for the request
Example:
"2025-06-26"
Path Parameters
UUID of the post to comment on
Body
application/json
Comment text content (1–600 characters)
Required string length:
1 - 600Response
Comment created successfully
Was this page helpful?