Skip to main content

Faq v2

Get categories

Retrieves all categories

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/categories?lang=sv

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource

Response

[
{
"id": 1,
"userId": 1,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"isRemoved": 0,
"faqLanguageCode": "",
"faqCategoryId": 1,
"title": "",
"description": ""
}
]

Get category

Retrieve one category

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/categories/:id

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource
id*numberid of resource
helpCenterId*numberCannot be used together with faqId
faqId*numberCannot be used together with helpCenterId

Response

{
"category": {
"id": 1,
"userId": 1,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"isRemoved": 0,
"faqLanguageCode": "sv",
"faqCategoryId": 1,
"title": "",
"description": ""
},
"articleCount": 1,
// list of all articles under category
"allArticles": [
{
"id": 1,
"userId": 1,
"authorId": null,
"status": "published",
"publishAt": null,
"unpublishAt": null,
"showFeedback": "default",
"feedbackChatEnabled": 0,
"feedbackPhoneEnabled": 0,
"isRemoved": 0,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"faqArticleId": 1,
"faqLanguageCode": "sv",
"title": "",
"content": "",
"articleFormId": null,
"feedbackNoFormId": null,
"feedbackPhoneNumber": null,
"categoryId": 1,
"sectionId": 1,
"order": 1,
"availableInId": 1,
"contentPlain": ""
}
],
// list of articles directly under category
"orphans": [
{
"id": 3,
"userId": 1,
"authorId": null,
"status": "published",
"publishAt": null,
"unpublishAt": null,
"showFeedback": "default",
"feedbackChatEnabled": 0,
"feedbackPhoneEnabled": 0,
"isRemoved": 0,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"faqArticleId": 2,
"faqLanguageCode": "sv",
"title": "",
"content": "",
"articleFormId": null,
"feedbackNoFormId": null,
"feedbackPhoneNumber": null,
"categoryId": 1,
"sectionId": null,
"order": 1,
"availableInId": 1,
"contentPlain": ""
}
],
// list of all sections with their articles
"sections": [
{
"id": 1,
"userId": 1,
"faqCategoryId": 1,
"order": 1,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"title": "",
"languageCode": "sv",
"articles": [
{
"id": 1,
"userId": 1,
"authorId": null,
"status": "published",
"publishAt": null,
"unpublishAt": null,
"showFeedback": "default",
"feedbackChatEnabled": 0,
"feedbackPhoneEnabled": 0,
"isRemoved": 0,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"faqArticleId": 1,
"faqLanguageCode": "sv",
"title": "",
"content": "",
"articleFormId": null,
"feedbackNoFormId": null,
"feedbackPhoneNumber": null,
"categoryId": 1,
"sectionId": 1,
"order": 1,
"availableInId": 1,
"contentPlain": ""
}
]
}
]
}

Get articles

Retrieve articles with tag

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/articles?tag=imbox&tag=faq

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource
tag*stringtags you want to include
helpCenterId*numberCannot be used together with faqId
faqId*numberCannot be used together with helpCenterId

Response

[
{
"id": ,
"userId": 1,
"status": "published",
"publishAt": "2024-03-06T08:00:00.000Z",
"unpublishAt": null,
"showFeedback": "default",
"createdAt": "2024-03-06T07:00:00.000Z",
"updatedAt": "2024-03-06T07:00:00.000Z",
"title": "",
"content": "",
"faqLanguageCode": "sv",
"tag": ""
}
]

Get article

Retrieve one article

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/articles/:id

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource
id*numberid of resource
helpCenterId*numberCannot be used together with faqId
faqId*numberCannot be used together with helpCenterId

Response

{
"id": 1,
"userId": 1,
"authorId": null,
"availableInId": 1,
"status": "published",
"publishAt": null,
"unpublishAt": null,
"isRemoved": 0,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"faqArticleId": 1,
"faqLanguageCode": "sv",
"title": "",
"content": "",
"contentPlain": "",
"feedbackNoFormId": null,
"articleFormId": null,
"categoryId": 1,
"categoryTitle": "",
"showFeedback": "default",
"feedbackChatEnabled": 0,
"feedbackPhoneEnabled": 0,
"feedbackPhoneNumber": null,
"authorName": null,
"authorPicture": null
}

Search articles

Search for articles

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/search

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource
q*stringsearch query
helpCenterId*numberCannot be used together with faqId
faqId*numberCannot be used together with helpCenterId

Response

{
"success": true,
"articles": [
{
"_source": {
"article_id": 1,
"content_text": "",
"id": 1,
"publish_at": null,
"status": "published",
"title": "",
"unpublish_at": null,
"user_id": 1,
"category": [{ "id": 1, "title": "" }],
"available_in": [
{
"id": 1,
"type": 1
}
]
},
"highlight": {
"title": [""]
}
}
],
"length": 3,
"suggest": [
{
"length": 5,
"offset": 0,
"options": [
{
"score": 0.6717023,
"text": ""
}
],
"text": ""
}
]
}

Search articles suggestions

Retrives articles search suggestions

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/suggest-search

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource
q*stringsearch query
helpCenterId*numberCannot be used together with faqId
faqId*numberCannot be used together with helpCenterId

Response

{
"success": true,
"result": [
{
"options": [
{
"payload": {
"id": 1,
"category": [{ "id": 1, "title": "" }]
},
"text": ""
}
],
"text": ""
}
]
}

Retrives all popular articles

Request type : GET

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/popular-articles

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId
lang*stringlanguage of requested resource
helpCenterId*numberCannot be used together with faqId
faqId*numberCannot be used together with helpCenterId

Response

[
{
"id": 1,
"userId": 1,
"authorId": null,
"availableInId": 1,
"status": "published",
"publishAt": null,
"unpublishAt": null,
"isRemoved": 0,
"createdAt": "2020-02-03T13:00:00.000Z",
"updatedAt": "2020-02-03T13:00:00.000Z",
"faqArticleId": 1,
"categoryId": 2,
"showFeedback": "default",
"faqLanguageCode": "sv",
"title": "",
"content": "",
"contentPlain": "",
"feedbackNoFormId": null,
"articleFormId": null,
"count": 2,
"feedbackChatEnabled": 0,
"feedbackPhoneEnabled": 0,
"feedbackPhoneNumber": null
}
]

Viewed article

Register that the user has seen the article

Request type : POST

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/analytics/views

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId

Body

nameTypeDescription
lang*stringlanguage of viewed resource
articleId*stringid of viewed resource
device*"mobile" | "desktop"type of device that has viewd resource
helpCenterId*numbercannot be used togheter with faqId
faqId*numbercannot be used togheter with helpcenterId

Response

204

Vote yes

Register positive response to article

Request type : POST

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/analytics/voteyes

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId

Body

nameTypeDescription
lang*stringlanguage of viewed resource
articleId*stringid of viewed resource
device*"mobile" | "desktop"type of device that has viewd resource
helpCenterId*numbercannot be used togheter with faqId
faqId*numbercannot be used togheter with helpcenterId

Response

204

Vote no

Register negative response to article

Request type : POST

URL : https://apiv2.imbox.io/api/:apiKey/:userId/faq/analytics/voteno

Parameters

nameTypeDescription
apiKey*stringYour API Key
userId*numberYour userId

Body

nameTypeDescription
lang*stringlanguage of viewed resource
articleId*stringid of viewed resource
device*"mobile" | "desktop"type of device that has viewd resource
helpCenterId*numbercannot be used togheter with faqId
faqId*numbercannot be used togheter with helpcenterId

Response

204