Get expiring certifications
GET
/api/v1/pilots/expiring
const url = 'https://app.ayna.com/api/v1/pilots/expiring?days=30';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/pilots/expiring?days=30' \ --header 'Authorization: Bearer <token>'Get pilots with expiring certifications.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”days
Days
integer
Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}