Add a comment to an expiry
post
https://api.expiryedge.com/v1/createExpiryCommentany member of the expiry's organization60/minIdempotency-Key
Request
curl -X POST 'https://api.expiryedge.com/v1/createExpiryComment' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"expiryId": "exp_4Tq9sLm2",
"text": "Renewal form submitted to the board."
}'Response
{
"comment": {
"id": "cmt_2Lx8",
"expiryId": "exp_4Tq9sLm2",
"text": "Renewal form submitted to the board.",
"userId": "u_71bXq",
"username": "Priya Shah",
"edited": false,
"timestamp": "2026-09-27T14:05:00.000Z"
}
}text is plain text (max 5000 characters); it is stored HTML-escaped with newlines as <br>.
Idempotency-KeystringOptional client-generated key (1-255 characters of letters, digits,- _ : .).pattern: ^[A-Za-z0-9_\-:.]{1,255}$
expiryIdstringrequiredtextstringrequiredmax length: 5000
201
Comment created.
commentobjectrequiredA comment on an expiry.textis HTML-escaped with newlines stored as<br>.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
405 | The endpoint does not accept this HTTP method. |
409 | A request with the same Idempotency-Key is still being processed. Retry after Retry-After seconds. |
422 | The Idempotency-Key was already used with a different request body. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
