Resolve free-text institution names in batch
const url = 'https://api.bursary.dev/v1/schools/resolve';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"queries":[{"name":"example","state":"example"}],"limit":5}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.bursary.dev/v1/schools/resolve \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "queries": [ { "name": "example", "state": "example" } ], "limit": 5 }'Ranks institutions against free-text names — the server-side path for cleaning legacy records. Each query returns up to limit candidates ordered by trigram similarity against every name the institution is published under, including acronyms, trade names, and former names. A state narrows a query to that state; without one the search is national. Results are positional: every query gets a result carrying its index, with an empty candidate list when nothing scored above the threshold.
This takes a body rather than a query string because batches routinely contain pasted customer records, which have no business in a URL.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The names to resolve
object
object
Responses
Section titled “Responses”One result per query, in the order the queries were given
object
object
object
object
object
Examples
{ "success": true, "data": { "results": [ { "index": 0, "candidates": [ { "institutionId": "019fd39c-0098-7070-9cc9-359d3ed6ce29", "name": "Alabama A & M University", "city": "Normal", "state": "AL", "matchedName": "Alabama A & M University", "matchedType": "official", "score": 1 } ] }, { "index": 1, "candidates": [ { "institutionId": "019fd39c-00b1-7000-8a3f-0d2f4c9d1e77", "name": "Alabama A & M University", "city": "Normal", "state": "AL", "matchedName": "AAMU", "matchedType": "acronym", "score": 1 } ] } ] }, "meta": { "requestId": "ray-1", "timestamp": "2026-08-07T00:00:00.000Z" }}The request could not be read
object
object
object
object
Example
{ "success": false}No usable credential was presented
object
object
object
object
Example
{ "success": false}The plan’s monthly allowance is spent. The body carries when it resets
object
object
object
object
Example
{ "success": false}The credential does not permit this
object
object
object
object
Example
{ "success": false}No such resource
object
object
object
object
Example
{ "success": false}The request is ambiguous or conflicts with existing state
object
object
object
object
Example
{ "success": false}The request body is not a media type this route declares
object
object
object
object
Example
{ "success": false}The request was read and failed validation
object
object
object
object
Example
{ "success": false}Too many requests. Retry-After says how long to wait
object
object
object
object
Example
{ "success": false}Something failed on our side
object
object
object
object
Example
{ "success": false}