Public APIGlossary
Create a glossary item
Creates a new glossary item inside a glossaries-type group. The
referenced group_id must belong to your organization and have
type: glossaries.
AuthorizationBearer <token>
API key in the Authorization: Bearer <key> header.
Keys are created in the SMAO dashboard (Settings → API Keys).
In: header
group_idstring
Match
^[a-f0-9]{24}$namestring
Whitespace is trimmed; the trimmed name must be at least 1 character.
Length
1 <= length <= 200abbreviation?string
Default
""Length
length <= 100description?string
Default
""Length
length <= 5000active?boolean
Default
trueResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.smao.ai/api/v1/glossary" \ -H "Content-Type: application/json" \ -d '{ "group_id": "string", "name": "string" }'{
"data": {
"id": "65f8fa6f1a9d8e0012ab34cd",
"group_id": "65a1234567890abcdef01234",
"group_name": "Product terminology",
"abbreviation": "API",
"name": "Application Programming Interface",
"description": "A set of definitions and protocols for building software.",
"active": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "validation_failed",
"message": "Validation failed"
}
}{
"error": {
"code": "unauthorized",
"message": "Missing API key"
}
}{
"error": {
"code": "subscription_required",
"message": "This feature is not available in your current subscription. Please upgrade to a higher plan"
}
}{
"error": {
"code": "forbidden",
"message": "No permission"
}
}{
"error": {
"code": "not_found",
"message": "Group not found"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded"
}
}{
"error": {
"code": "internal_error",
"message": "An unexpected error occurred."
}
}