Unified search
GET
/api/v1/search/
const url = 'https://app.ayna.com/api/v1/search/?q=example&limit=20&offset=0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.ayna.com/api/v1/search/?q=example&limit=20&offset=0'Unified search across all entity types.
Query Parameters:
- q: Search query string (required)
- types: Comma-separated entity types (pilot, mission, flight, aircraft, crew, fleet)
- limit: Max results per entity type (default: 20, max: 100)
- offset: Pagination offset
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}