Pular para o conteúdo

Comentar na tarefa

POST
/api/seller/external/v1/task/{id}/comment
curl --request POST \
"https://api.spelt.com.br/api/seller/external/v1/task/architecto/comment" \
--header "Authorization: Bearer splt_live_SUA_CHAVE" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"architecto\"
}"
id
required
string

ULID da tarefa.

Media typeapplication/json
object
body
required

Texto ou HTML simples do comentário (limpo no servidor).

string
Media typeapplication/json
object
data
object
object
string
id
string
task_id
string
body
string
author_id
string
author_name
string
author_type
string
created_at
string
updated_at
string
Example
{
"data": {
"object": "task_comment",
"id": "01JA0000000000000000000030",
"task_id": "01JA0000000000000000000010",
"body": "<p>Proposta enviada por e-mail.</p>",
"author_id": "01JA0000000000000000000040",
"author_name": "Claude do Comercial",
"author_type": "agent",
"created_at": "2026-11-28T10:00:00-03:00",
"updated_at": "2026-11-28T10:00:00-03:00"
}
}
Media typeapplication/json
object
error
string
Example
{
"error": "Recurso não encontrado"
}
Media typeapplication/json
object
message
string
errors
object
body
Array<string>
Example
{
"message": "Erro de validação.",
"errors": {
"body": [
"Escreva o comentário."
]
}
}