AirHub API
AirHub® Portal (Sandbox)
    AirHub API
    • Introduction
    • Authenticating
    • Briefing
      • Overview
      • What Is B4UFLY
      • The API Basics
      • Location vs Area
      • What's New in v2
      • v1
        • B4UFLY Briefing by Area
        • B4UFLY Briefing by Location
      • v2
        • B4UFLY Briefing by Area
        • B4UFLY Briefing by Location
    • Operations
      • ASL Operations
        • List Operations
        • Create Operation
        • Get Operation
        • Delete Operation
        • Update Operation
      • LAANC SDSP
        • Overview
        • LAANC Operations
          • Get Operation
          • Delete Operation
          • Create Operation
          • Update Operation
        • LAANC Authorizations
          • Rescinded and Invalid Operations
          • Submit Authorization
          • Get Authorization
          • Cancel Authorization
          • Cancel Invalid Authorization
          • Close Authorization
          • Acknowledge Rescinded Authorization
      • Ephemeral Operations
        • Create Ephemeral Operations
        • Get Ephemeral Operation
        • Delete Ephemeral Operation
        • Claim Ephemeral Operation
    • Surface
      • Overview
    • Vector Tiles
      • Overview
    • Data
      • Elevation v1
      • Elevation v2
      • shim
        • Send Positions
      • elevation-v1
        • Elevation
      • elevation-v2
        • Elevation
    • Schemas
      • AssetTypeEnum
      • authorizationsvc.v1.Authorization
      • asloperationsvc.v1.FlightType
      • DeviceStatus
      • authorizationsvc.v1.Class
      • ephemeralsvc.v1.ClaimEphemeralOperationResponse
      • authorizationsvc.v1.Deny
      • ElevationFeature
      • ephemeralsvc.v1.CreateEphemeralOperationRequest
      • authorizationsvc.v1.FacilityMap
      • ephemeralsvc.v1.CreateEphemeralOperationResponse
      • authorizationsvc.v1.Status
      • ElevationGeometry
      • ephemeralsvc.v1.EphemeralOperation
      • authorizationsvc.v1.SubmissionType
      • ElevationOutput
      • ElevationServerErrorResponse
      • ephemeralsvc.v1.PointOfContact
      • InvalidElevationInputResponse
      • geompb.v1.AltitudeReference
      • OwnerTypeEnum
      • geompb.v1.AltitudeUnit
      • google.protobuf.Any
      • laancsvc.v1.Action
      • PointXyElevationData
      • google.protobuf.NullValue
      • laancsvc.v1.Candidate
      • RawPositionMessageBody
      • google.rpc.Status
      • laancsvc.v1.DeleteOperationResponse
      • SourceAltitudeTypeEnum
      • laancsvc.v1.GetOperationResponse
      • Transformation
      • Unit
      • laancsvc.v1.License
      • V1ElevationInput
      • laancsvc.v1.Notice
      • V1Geometry
      • laancsvc.v1.Operation
      • V1GeometryType
      • laancsvc.v1.OperationResponse
      • V1InVDatum
      • laancsvc.v1.OperationService.CreateOperationBody
      • V2ElevationInput
      • laancsvc.v1.OperationService.UpdateOperationBody
      • laancsvc.v1.PointOfContact
      • laancsvc.v1.Reason
      • laancsvc.v1.UpdateOperationResponse
      • laancsvc.v1.ReverseLookupOperationResponse
    AirHub® Portal (Sandbox)

    Authenticating

    Getting access#

    AirHub uses client credentials to authenticate and authorize requests. Successful authentication will return an Oauth2 accessToken. AirHub expects the accessToken to be included in all subsequent API requests using the Authorization header.
    Below are some examples using our sandbox environment, https://airhub-api-sandbox.airspacelink.com/.
    Using cURL:
    Using JS:
    Make sure to replace <your-xxx> with your applicable values.
    The above command returns JSON structured like this:
    {
      "status": 200,
      "message": "success",
      "data": {
        "accessToken": "xyz123",
        "expires": "2021-03-16T21:57:33.332Z",
        "scope": "advisory:read"
      }
    }
    AirHub uses client credentials and an API key to authenticate and authorize requests. Successful authentication will return an Oauth2 accessToken. AirHub expects the accessToken and x-api-key to be included in all subsequent API requests.

    HTTP Request#

    POST https://airhub-api-sandbox.airspacelink.com/v1/oauth/token

    Required Headers#

    ParameterDescription
    Content-Typeapplication/x-www-form-urlencoded
    x-api-key<your-api-key>

    Form Encoded Parameters#

    ParameterDescription
    grant_typeclient_credentials
    client_idClient id supplied to you by Airspace Link
    client_secretClient secret supplied to you by Airspace Link
    scopeSee available Oauth Scopes

    Scopes#

    In addition to the Client ID and Secret, you must also supply one or many [oauth scopes] (https://oauth.net/2/scope/). If you're unfamiliar with scopes, you can think of them as bundles of related API endpoints that are authorized for access by your client application. Multiple scopes may be requested by separating each scope by a space.

    OAuth#

    AirHub uses client credentials to authenticate and authorize requests. Successful authentication will return an Oauth2 accessToken. AirHub expects the accessToken to be included in all subsequent API requests using the Authorization header.

    Scopes#

    In addition to the Client ID and Secret, you must also supply one or many oauth scopes. If you're unfamiliar with scopes, you can think of them as bundles of related API endpoints that are authorized for access by your client application. Multiple scopes may be requested by separating each scope by a space.

    Available Scopes#

    ScopeDescription
    advisory:readGrants read access to our available advisories. This includes local and federal flight advisories.
    aviation:readGrants read access to aviation facility map data.
    briefing:area:readGrants read access to briefings by area.
    briefing:location:readGrants read access to briefings by location.
    hazar:readhazar is short for "Hazards and Risks". Grants read access to our hazar data.
    operation:createUsed for linking applications. Allows the creation of a UAS operation that can be linked into LAANC authorization app.
    route:createAllows the creation of UAS waypoints that navigate around ground based hazards and risks.
    surface:createAllows the creation of hex surfaces based on specified data sources

    OAuth#

    AirHub uses client credentials to authenticate and authorize requests. Successful authentication will return an Oauth2 accessToken. AirHub expects the accessToken to be included in all subsequent API requests using the Authorization header.

    Scopes#

    In addition to the Client ID and Secret, you must also supply one or many oauth scopes. If you're unfamiliar with scopes, you can think of them as bundles of related API endpoints that are authorized for access by your client application. Multiple scopes may be requested by separating each scope by a space.

    Available Scopes#

    ScopeDescription
    advisory:readGrants read access to our available advisories. This includes local and federal flight advisories.
    aviation:readGrants read access to aviation facility map data.
    briefing:area:readGrants read access to briefings by area.
    briefing:location:readGrants read access to briefings by location.
    hazar:readhazar is short for "Hazards and Risks". Grants read access to our hazar data.
    operation:createUsed for linking applications. Allows the creation of a UAS operation that can be linked into LAANC authorization app.
    route:createAllows the creation of UAS waypoints that navigate around ground based hazards and risks.
    surface:createAllows the creation of hex surfaces based on specified data sources
    Modified at 2026-03-06 18:44:32
    Previous
    Introduction
    Next
    Overview
    Built with