{"files":{"SKILL.md":"---\nname: dflight-api\ndescription: \"DFlight API skill. Use when working with DFlight for us. Covers 24 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# DFlight API\nAPI version: V 1.0.0\n\n## Auth\nApiKey x-api-key in header\n\n## Base URL\nhttps://dflight-api.ljaero.com/\n\n## Setup\n1. Set your API key in the appropriate header\n2. Verify API access with a test request\n3. POST /us/v1/airspace/distance-query -- create first distance-query\n\n## Endpoints\n24 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Us\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /us/v1/airspace/distance-query | Retrieve all requested types of airspace located within given distance of location. |\n| POST | /us/v1/airspace/route-query | Retrieve all requested types of airspace traversed by route. |\n| POST | /us/v1/airspace/polygon-query | Retrieve all requested types of airspace located within given GeoJSON Polygon. |\n| POST | /us/v1/wx-forecast/distance-query | Retrieve forecast values within given distance of location for all requested weather elements and time periods. |\n| POST | /us/v1/wx-forecast/route-query | Retrieve forecast values along a route for all requested weather elements and time periods. |\n| POST | /us/v1/wx-forecast/polygon-query | Retrieve forecast values within given GeoJSON polygon for all requested weather elements and time periods. |\n| POST | /us/v1/restrictions/distance-query | Retrieve flight restrictions applicable within given distance of location. |\n| POST | /us/v1/restrictions/route-query | Retrieve flight restrictions applicable along route. |\n| POST | /us/v1/restrictions/polygon-query | Retrieve flight restrictions applicable within given area. |\n| POST | /us/v1/ssa/distance-query | Retrieve all special security areas located within given distance of location. |\n| POST | /us/v1/ssa/route-query | Retrieve all special security areas traversed by route. |\n| POST | /us/v1/ssa/polygon-query | Retrieve all special security areas located within given GeoJSON Polygon. |\n| POST | /us/v1/venues/distance-query | Retrieve all restricted public venues located within given distance of location. |\n| POST | /us/v1/venues/route-query | Retrieve all restricted public venues traversed by route. |\n| POST | /us/v1/venues/polygon-query | Retrieve all restricted public venues located within given GeoJSON Polygon. |\n| POST | /us/v1/obstacles/distance-query | Retrieve obstacles within given distance of location. |\n| POST | /us/v1/obstacles/route-query | Retrieve obstacles found along a route. |\n| POST | /us/v1/obstacles/polygon-query | Retrieve obstacles located within given area. |\n| POST | /us/v1/uoa/distance-query | Retrieve UAS Operating Areas (UOAs) found within given distance of location. |\n| POST | /us/v1/uoa/route-query | Retrieve UAS Operating Areas (UOAs) found along route. |\n| POST | /us/v1/uoa/polygon-query | Retrieve UAS Operating Areas (UOAs) found within given area. |\n| POST | /us/v1/aerodromes/distance-query | Retrieve aerodromes within given distance of location. |\n| POST | /us/v1/aerodromes/route-query | Retrieve aerodromes found along a route. |\n| POST | /us/v1/aerodromes/polygon-query | Retrieve aerodromes located within given area. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a distance-query?\" -> POST /us/v1/airspace/distance-query\n- \"Create a route-query?\" -> POST /us/v1/airspace/route-query\n- \"Create a polygon-query?\" -> POST /us/v1/airspace/polygon-query\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api DFlight API\n@base https://dflight-api.ljaero.com/\n@version V 1.0.0\n@auth ApiKey x-api-key in header\n@common_fields {x-api-key: str}\n@endpoints 24\n@hint download_for_search\n@toc us(24)\n\n@endpoint POST /us/v1/airspace/distance-query\n@desc Retrieve all requested types of airspace located within given distance of location.\n@required {longitude: any, latitude: any, distance: any, asptypes: [str]}\n@returns(200) {found: [map]} # A list of GeoJSON FeatureCollections, one for each Airspace type requested.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/airspace/route-query\n@desc Retrieve all requested types of airspace traversed by route.\n@required {route: map, asptypes: [str]}\n@returns(200) {found: [map]} # A list of GeoJSON FeatureCollections, one for each Airspace type requested.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/airspace/polygon-query\n@desc Retrieve all requested types of airspace located within given GeoJSON Polygon.\n@required {poly: map, asptypes: [str]}\n@returns(200) {found: [map]} # A list of GeoJSON FeatureCollections, one for each Airspace type requested.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/wx-forecast/distance-query\n@desc Retrieve forecast values within given distance of location for all requested weather elements and time periods.\n@required {longitude: any, latitude: any, distance: any, wxtypes: [str], hours: int}\n@returns(200) {found: map} # A GeoJSON FeatureCollection with one Feature for each forecast location found within requested area.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/wx-forecast/route-query\n@desc Retrieve forecast values along a route for all requested weather elements and time periods.\n@required {route: map, wxtypes: [str], hours: int}\n@returns(200) {found: map} # A GeoJSON FeatureCollection with one Feature for each forecast location found within requested area.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/wx-forecast/polygon-query\n@desc Retrieve forecast values within given GeoJSON polygon for all requested weather elements and time periods.\n@required {poly: map, wxtypes: [str], hours: int}\n@returns(200) {found: map} # A GeoJSON FeatureCollection with one Feature for each forecast location found within requested area.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/restrictions/distance-query\n@desc Retrieve flight restrictions applicable within given distance of location.\n@required {longitude: any, latitude: any, distance: any}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each restriction.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/restrictions/route-query\n@desc Retrieve flight restrictions applicable along route.\n@required {route: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each restriction.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/restrictions/polygon-query\n@desc Retrieve flight restrictions applicable within given area.\n@required {poly: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each restriction.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/ssa/distance-query\n@desc Retrieve all special security areas located within given distance of location.\n@required {longitude: any, latitude: any, distance: any}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each area found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/ssa/route-query\n@desc Retrieve all special security areas traversed by route.\n@required {route: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each area found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/ssa/polygon-query\n@desc Retrieve all special security areas located within given GeoJSON Polygon.\n@required {poly: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each area found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/venues/distance-query\n@desc Retrieve all restricted public venues located within given distance of location.\n@required {longitude: any, latitude: any, distance: any}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each venue found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/venues/route-query\n@desc Retrieve all restricted public venues traversed by route.\n@required {route: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each venue found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/venues/polygon-query\n@desc Retrieve all restricted public venues located within given GeoJSON Polygon.\n@required {poly: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each venue found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/obstacles/distance-query\n@desc Retrieve obstacles within given distance of location.\n@required {longitude: any, latitude: any, distance: any}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each obstacle found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/obstacles/route-query\n@desc Retrieve obstacles found along a route.\n@required {route: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each obstacle found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/obstacles/polygon-query\n@desc Retrieve obstacles located within given area.\n@required {poly: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each obstacle found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/uoa/distance-query\n@desc Retrieve UAS Operating Areas (UOAs) found within given distance of location.\n@required {longitude: any, latitude: any, distance: any}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each UOA.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/uoa/route-query\n@desc Retrieve UAS Operating Areas (UOAs) found along route.\n@required {route: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each UOA.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/uoa/polygon-query\n@desc Retrieve UAS Operating Areas (UOAs) found within given area.\n@required {poly: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each UOA.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/aerodromes/distance-query\n@desc Retrieve aerodromes within given distance of location.\n@required {longitude: any, latitude: any, distance: any}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each aerodrome found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/aerodromes/route-query\n@desc Retrieve aerodromes found along a route.\n@required {route: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each aerodrome found.\n@errors {422: Validation Error}\n\n@endpoint POST /us/v1/aerodromes/polygon-query\n@desc Retrieve aerodromes located within given area.\n@required {poly: map}\n@returns(200) {found: map} # A GeoJSON FeatureCollection, one Feature for each aerodrome found.\n@errors {422: Validation Error}\n\n@end\n"}}