Confirm a guest comment code
POST
/v1/data/{artifactId}/comments/_guest/verify
const url = 'https://shareout.site/v1/data/example/comments/_guest/verify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","email":"hello@example.com","code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/data/example/comments/_guest/verify \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "email": "hello@example.com", "code": "example" }'Exchanges the code for shareout_guest_{artifactId}: an HttpOnly, SameSite=Strict cookie (12 h) holding an HMAC over the artifact id, the name and a keyed email hash, valid for this artifact only. Guests then post and reply through POST …/comments (authorType: guest); they cannot resolve, assign, react or approve. Five wrong tries burn a code.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”artifactId
required
string
Artifact ID (e.g. art_abc123).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
email
required
string format: email
code
required
string
Examplegenerated
{ "name": "example", "email": "hello@example.com", "code": "example"}Responses
Section titled “Responses”{ success: true, data: { guest: { name }, expiresIn } } plus Set-Cookie
INVALID_CODE or VALIDATION_ERROR
GUEST_COMMENTS_DISABLED, or FORBIDDEN (Origin)
RATE_LIMIT_EXCEEDED
