Search entity type
GET
/api/v1/search/{entity_type}
const url = 'https://app.ayna.com/api/v1/search/example?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/example?q=example&limit=20&offset=0'Search within a specific entity type.
Path Parameters:
- entity_type: One of pilot, mission, flight, aircraft (drone is a compatibility alias), crew, fleet
Query Parameters:
- q: Search query string
- limit: Max results (default: 20, max: 100)
- offset: Pagination offset
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”entity_type
required
Entity Type
string
Query Parameters
Section titled “Query Parameters”q
required
Q
string
limit
Limit
integer
offset
Offset
integer
Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}