search
Search
One cross-module lookup endpoint backing the app’s global search box — students, guardians, staff, groups, courses and invoice numbers, filtered to the entity types the caller may read.
1 endpoints
GET /api/v1/search
Global search across students, guardians, staff, groups, courses and invoice numbers. Each entity type is included only if the caller holds its read permission; at most `limit` (default 5) hits per type.
Path & query parameters
| Name | In | Type | Constraints |
|---|---|---|---|
qrequired | query | string | 2–100 chars |
limit | query | integer | 1–10 · default: 5 |
curl example
curl -X GET "https://api.yourdomain.com/api/v1/search?q=string" \
-H "Authorization: Bearer $INSTITFLOW_API_KEY"Responses
| Name | Type | Constraints |
|---|---|---|
queryrequired | string | — |
resultsrequired | array<object> | — |
truncatedTypesrequired | array<enum: "student" | "guardian" | "staff" | "group" | "course" | "invoice"> | — |
{
"query": "string",
"results": [
{
"type": "student",
"id": "37386ae0-3738-7738-8386-37386ae03738",
"label": "string",
"sublabel": "string"
}
],
"truncatedTypes": [
"student"
]
}Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.
Returns the shared `ErrorEnvelope` — `{ error: { code, message, requestId, details? } }`. Every code is listed in the Conventions guide.