Skip to content

Rest API

Regenerate a help center FAQ answer

POST
/api/v1/help-center/faqs/retry
curl --request POST \
--url https://api.unless.com/api/v1/help-center/faqs/retry \
--header 'Content-Type: application/json' \
--header 'x-account-id: example' \
--header 'x-api-key: example' \
--header 'x-user-email: example' \
--header 'x-website-id: example' \
--data '{ "faqId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }'

Ask the AI to write an FAQ’s answer again, for instance after the training data changed.

Notes

  • An FAQ already at answerStatus: pending is returned unchanged rather than queued twice, so a repeated call is safe
  • Answers 404 when the faqId does not exist
x-api-key
required
string

Your API key from account settings.

x-user-email
required
string

The email address of your user.

x-account-id
required
string

The ID of your account. You can find this in the account settings.

x-website-id
required
string

The ID of the workspace you want to use.

Media typeapplication/json
object
faqId
required
string

Example

{
"faqId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

The FAQ, with answerStatus set to pending.

Bad request - missing websiteId or faqId.

Unauthorized - invalid API key.

No FAQ with that id.