Skip to content

OTOBO API FAQ

FAQ routes follow the FAQ categories granted to the token’s user. A category that user cannot read is absent from the list.

Action Request
Search GET /faqs?query=vpn&limit=20
One item GET /faqs/15

A hit includes id, title, category, language, and state. GET /faqs/{id} adds the body.

import requests
response = requests.get(
"https://helpdesk.example.com/otobo/otai-api.pl/v1/faqs?query=vpn&limit=20",
headers={"Authorization": "Bearer YOUR_TOKEN"},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://helpdesk.example.com/otobo/otai-api.pl/v1/faqs?query=vpn&limit=20", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_TOKEN",
Accept: "application/json",
},
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
HttpRequest.BodyPublisher body = HttpRequest.BodyPublishers.noBody();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://helpdesk.example.com/otobo/otai-api.pl/v1/faqs?query=vpn&limit=20"))
.header("Authorization", "Bearer YOUR_TOKEN")
.header("Accept", "application/json")
.method("GET", body)
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
<?php
$ch = curl_init("https://helpdesk.example.com/otobo/otai-api.pl/v1/faqs?query=vpn&limit=20");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_TOKEN",
"Accept: application/json",
"Content-Type: application/json",
],
CURLOPT_RETURNTRANSFER => true,
]);
$body = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $body;

Longer examples, one page per language:

Frequently asked questions

Why is an FAQ article missing from search?

The token's user does not have that FAQ category, or the query does not match the title or body.

Sources

How do I read one FAQ article?

GET /faqs/{id} returns the article including its body when the user may read that category.

FAQ routes follow the FAQ categories granted to the token's user. A category that user cannot read is absent from the list.

Sources

Workflows and integrations

Web services, processes, and connections that fit your landscape.