AirHub API
  1. Authorization
AirHub API
  • Introduction
  • Authorization
    • Overview
    • Get Oauth Token
      POST
  • Advisories
    • Advisory
      POST
    • Get Advisories BBox
      GET
    • Get Advisories GeoJSON
      POST
  • Briefing
    • Overview
    • B4UFLY
      • What Is B4UFLY
      • The API Basics
      • Location vs Area
      • v1
        • B4UFLY Briefing by Area v1
        • B4UFLY Briefing by Location v1
      • v2
        • What's New in v2
        • B4UFLY Briefing by Area v2
        • B4UFLY Briefing by Location v2
  • LAANC SDSP
    • Overview
    • ASL Operations
      • List Operations
      • Create Operation
      • Get Operation
      • Delete Operation
      • Update Operation
    • 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
    • Operation v2
      POST
    • Create Ephemeral Operations
      POST
  • Risk
    • Get Hazard
      POST
    • Get Hazard Ground Type
      POST
    • Get Hazard Ground Risk
      POST
  • Aviation
    • Aviation
      POST
  • Surface
    • Suitability
      POST
    • Classification Surface
      POST
    • Surface v2 GeoJSON
      POST
    • Surface v2 Hexbin
      POST
  • Route
    • Route v2
  • Check
    • Check Airspace
    • Get Status
  • Elevation - NEW
    • Elevation
  • Map Vector Tiles - NEW
    • Overview
    • Styled Tiles
    • Vector Tile
  1. Authorization

Get Oauth Token

Sandbox
https://airhub-api-sandbox.airspacelink.com
Sandbox
https://airhub-api-sandbox.airspacelink.com
POST
/v1/oauth/token
Authentication
Last modified:2024-05-17 16:56:45
An OAuth token is a credential that grants authorized access to protected resources, allowing applications to authenticate and perform actions on behalf of a user without exposing their login information.

Request

Header Params
Content-Type
enum<string> 
required
Allowed value:
x-www-form-urlencoded
Default:
x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
grant_type
enum<string> 
required
Specifies that you are requesting client credentials.
Allowed value:
client_credentials
Example:
client_credentials
client_id
string 
required
Client id supplied to you by Airspace Link.
Example:
{{client-id}}
client_secret
string 
required
Client secret supplied to you by Airspace Link.
Example:
{{client-secret}}
scope
string 
optional
Scopes for which you are requesting access. See the list of available scopes in the Authentication doc on the previous page.
Example:
{{scope}}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://airhub-api-sandbox.airspacelink.com/v1/oauth/token' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'scope='

Responses

🟢200Success
application/json
Body
data
object 
required
accessToken
string 
required
expires
string 
required
message
string 
required
statusCode
integer 
required
Example
{
  "data": {
    "accessToken": "",
    "expires": ""
  },
  "message": "success",
  "statusCode": 200
}
🟠400400
🔴500500
Previous
Overview
Next
Advisory
Built with