> For the complete documentation index, see [llms.txt](https://docs.geosamples.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geosamples.org/api/institutions.md).

# Institutions

## Search institutions

> Returns up to \`limit\` institutions whose label matches \`query\` (case-insensitive substring), or whose ROR matches \`ror\` when that parameter is provided. When nothing matches, \`data\` is an empty array.

```json
{"openapi":"3.0.3","info":{"title":"SESAR API","version":"1.0.0"},"security":[{"tokenAuth":[]},{"jwtAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token-based authentication with required prefix \"Token\""},"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstitutionListSuccess":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Institution"},"description":"Matching institutions (up to `limit`)."}},"required":["data"]},"Institution":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"institution_type":{"type":"string","readOnly":true},"label":{"type":"string","maxLength":200},"alt_label":{"type":"string","nullable":true,"maxLength":200},"description":{"type":"string","nullable":true},"country":{"type":"string","readOnly":true},"country_subdivision":{"type":"string","nullable":true,"maxLength":255},"city":{"type":"string","nullable":true,"maxLength":255},"ror":{"type":"string","nullable":true,"maxLength":25},"parent_institutions":{"type":"string","readOnly":true},"can_edit":{"type":"string","readOnly":true},"created_by":{"type":"integer","nullable":true}},"required":["can_edit","country","id","institution_type","label","parent_institutions"]}}},"paths":{"/api/institutions/":{"get":{"operationId":"institutions_retrieve","description":"Returns up to `limit` institutions whose label matches `query` (case-insensitive substring), or whose ROR matches `ror` when that parameter is provided. When nothing matches, `data` is an empty array.","summary":"Search institutions","parameters":[{"in":"query","name":"limit","schema":{"type":"integer"},"description":"Maximum rows to return (clamped between 1 and 100, default 10)."},{"in":"query","name":"query","schema":{"type":"string"},"description":"Case-insensitive substring filter on institution label. Ignored when `ror` is set."},{"in":"query","name":"ror","schema":{"type":"string"},"description":"Exact ROR filter (9-character id or https://ror.org/… URL)."}],"tags":["Institutions"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionListSuccess"}}},"description":""}}}}}}
```

## Create institution

> Creates a new institution record (e.g. for affiliations, collectors or archives).

```json
{"openapi":"3.0.3","info":{"title":"SESAR API","version":"1.0.0"},"security":[{"tokenAuth":[]},{"jwtAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token-based authentication with required prefix \"Token\""},"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstitutionWrite":{"type":"object","properties":{"institution_type":{"type":"string","nullable":true},"label":{"type":"string","maxLength":200},"alt_label":{"type":"string","nullable":true,"maxLength":200},"description":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"country_subdivision":{"type":"string","nullable":true,"maxLength":255},"city":{"type":"string","nullable":true,"maxLength":255},"ror":{"type":"string","nullable":true,"maxLength":25},"parent_institutions":{"type":"array","items":{"type":"integer","writeOnly":true},"writeOnly":true},"created_by":{"type":"integer","nullable":true}},"required":["label"]},"InstitutionCreateSuccess":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Institution"}},"required":["data"]},"Institution":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"institution_type":{"type":"string","readOnly":true},"label":{"type":"string","maxLength":200},"alt_label":{"type":"string","nullable":true,"maxLength":200},"description":{"type":"string","nullable":true},"country":{"type":"string","readOnly":true},"country_subdivision":{"type":"string","nullable":true,"maxLength":255},"city":{"type":"string","nullable":true,"maxLength":255},"ror":{"type":"string","nullable":true,"maxLength":25},"parent_institutions":{"type":"string","readOnly":true},"can_edit":{"type":"string","readOnly":true},"created_by":{"type":"integer","nullable":true}},"required":["can_edit","country","id","institution_type","label","parent_institutions"]}}},"paths":{"/api/institutions/":{"post":{"operationId":"institutions_create","description":"Creates a new institution record (e.g. for affiliations, collectors or archives).","summary":"Create institution","tags":["Institutions"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/InstitutionWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/InstitutionWrite"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionCreateSuccess"}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.geosamples.org/api/institutions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
