Create a Consultation Question
curl --request POST \
--url https://schoolmaker.co/api/v1/consultations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Question about lesson planning",
"body": "<p>Question details</p>",
"category_id": "CATEGORY_ID",
"tag_ids": [
"TAG_ID"
]
}
'import requests
url = "https://schoolmaker.co/api/v1/consultations"
payload = {
"title": "Question about lesson planning",
"body": "<p>Question details</p>",
"category_id": "CATEGORY_ID",
"tag_ids": ["TAG_ID"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Question about lesson planning',
body: JSON.stringify('<p>Question details</p>'),
category_id: 'CATEGORY_ID',
tag_ids: ['TAG_ID']
})
};
fetch('https://schoolmaker.co/api/v1/consultations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://schoolmaker.co/api/v1/consultations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Question about lesson planning',
'body' => '<p>Question details</p>',
'category_id' => 'CATEGORY_ID',
'tag_ids' => [
'TAG_ID'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://schoolmaker.co/api/v1/consultations"
payload := strings.NewReader("{\n \"title\": \"Question about lesson planning\",\n \"body\": \"<p>Question details</p>\",\n \"category_id\": \"CATEGORY_ID\",\n \"tag_ids\": [\n \"TAG_ID\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://schoolmaker.co/api/v1/consultations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Question about lesson planning\",\n \"body\": \"<p>Question details</p>\",\n \"category_id\": \"CATEGORY_ID\",\n \"tag_ids\": [\n \"TAG_ID\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://schoolmaker.co/api/v1/consultations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Question about lesson planning\",\n \"body\": \"<p>Question details</p>\",\n \"category_id\": \"CATEGORY_ID\",\n \"tag_ids\": [\n \"TAG_ID\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "QUESTION_ID",
"title": "Question about lesson planning",
"category_id": "CATEGORY_ID",
"author_id": "OWNER_USER_ID",
"author_type": "User",
"treated_at": null,
"is_ready": true,
"created_at": "2026-10-02T12:00:00.000Z",
"body": "<div class=\"trix-content\"><p>Question details</p></div>",
"tag_ids": [
"TAG_ID"
]
}{
"error": "Access denied"
}{
"error": "You do not have permission to perform this action"
}{
"error": "Record not found"
}{
"error": "Invalid arguments: /attributes/is_ready boolean"
}Consultations
Create a Consultation Question
Creates a consultation question as the school owner. New questions are ready, untreated and not assigned to a meeting.
POST
/
consultations
Create a Consultation Question
curl --request POST \
--url https://schoolmaker.co/api/v1/consultations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Question about lesson planning",
"body": "<p>Question details</p>",
"category_id": "CATEGORY_ID",
"tag_ids": [
"TAG_ID"
]
}
'import requests
url = "https://schoolmaker.co/api/v1/consultations"
payload = {
"title": "Question about lesson planning",
"body": "<p>Question details</p>",
"category_id": "CATEGORY_ID",
"tag_ids": ["TAG_ID"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Question about lesson planning',
body: JSON.stringify('<p>Question details</p>'),
category_id: 'CATEGORY_ID',
tag_ids: ['TAG_ID']
})
};
fetch('https://schoolmaker.co/api/v1/consultations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://schoolmaker.co/api/v1/consultations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Question about lesson planning',
'body' => '<p>Question details</p>',
'category_id' => 'CATEGORY_ID',
'tag_ids' => [
'TAG_ID'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://schoolmaker.co/api/v1/consultations"
payload := strings.NewReader("{\n \"title\": \"Question about lesson planning\",\n \"body\": \"<p>Question details</p>\",\n \"category_id\": \"CATEGORY_ID\",\n \"tag_ids\": [\n \"TAG_ID\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://schoolmaker.co/api/v1/consultations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Question about lesson planning\",\n \"body\": \"<p>Question details</p>\",\n \"category_id\": \"CATEGORY_ID\",\n \"tag_ids\": [\n \"TAG_ID\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://schoolmaker.co/api/v1/consultations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Question about lesson planning\",\n \"body\": \"<p>Question details</p>\",\n \"category_id\": \"CATEGORY_ID\",\n \"tag_ids\": [\n \"TAG_ID\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "QUESTION_ID",
"title": "Question about lesson planning",
"category_id": "CATEGORY_ID",
"author_id": "OWNER_USER_ID",
"author_type": "User",
"treated_at": null,
"is_ready": true,
"created_at": "2026-10-02T12:00:00.000Z",
"body": "<div class=\"trix-content\"><p>Question details</p></div>",
"tag_ids": [
"TAG_ID"
]
}{
"error": "Access denied"
}{
"error": "You do not have permission to perform this action"
}{
"error": "Record not found"
}{
"error": "Invalid arguments: /attributes/is_ready boolean"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
- Option 1
- Option 2
Question title, up to 120 characters. Cannot be blank.
Maximum string length:
120Question body as HTML or plain text. Cannot be empty. Embedded attachments and scripts are not supported.
Maximum string length:
200000Published consultation category ID. A question assigned to a meeting must stay in that meeting's category.
Required string length:
1 - 255Existing consultation tag IDs from your school. Omit to keep current tags or use [] to clear them.
Maximum array length:
100Required string length:
1 - 255Response
Successful response.
Was this page helpful?