Testing with Postman
Accessing the Postman Workspace
To get started with testing the SafeSky UAV API, you can access SafeSkySafeSky's online Postman workspace with pre-built requests and authentication:
-
Access the Workspace:
- Visit the SafeSky UAV API Postman Workspace
- Click Fork Collection to add it to your own Postman workspace
-
What's Included:
- Pre-configured API requests
withforHMAC-SHA256LiveauthenticationUAV and Advisory UAV operations - Automatic HMAC-SHA256 signature generation using a collection-level pre-request
scriptsscript - Sample request bodies
andwithquerydynamicparameters{{timestamp}}variables EnvironmentAvariablescollection variable for easy API key configuration
- Pre-configured API requests
Setting Up Your EnvironmentAPI Key
After forking the collection, configure your environmentAPI variables:key:
-
SelectOpenthe Environment: In the top-right corner of Postman, click on the environment dropdown
Configure EnvironmentCollection Variables:
- Click on the
eyeSafeSkyiconUAV API(👁️)collectionnextname in the sidebar
Set theYour followingAPI variables:
| Variable | Initial Value | Current Value |
|---|---|---|
|
https://sandbox-public-api.safesky.apphttps://sandbox-public-api.safesky.appss-api-key
(leave empty)
<your_api_key>
Important: Setss-api-keyas asecrettype variable to keepEnter your API keysecurein the Current Value columnTheImportant:Keep the Initial Valuewill beemptywhenso your key is not shared if youshareexport or publish thecollection, whileCurrent Valuecontains your personal API keycollection- Click Save
Verify Environment Selection:
Understanding the Authentication
The collection includes a collection-level pre-request script that automatically:automatically runs before every request. It:
- Derives a KID (Key Identifier) from your API key using SHA-256
salt: safesky-hmac-salt-v1, info: auth-v1)
Generates an ISO 8601 timestamp and a UUID v4 nonce
Builds a canonical request (method, path, sorted query string, headers, body hash)
Computes the HMAC-SHA256 signature
Sets the required AuthorizationSS-HMAC Credential={kid}/v1, SignedHeaders=host;x-ss-date;x-ss-nonce, Signature={sig}
X-SS-DateX-SS-NonceX-SS-AlgSS-HMAC-SHA256-V1
{{timestamp}} variable in request bodies to the You don't need to manually configure authentication -— just ensure your ss-api-key environmentcollection variable is set correctly.
Available Requests
All requests target the production endpoint https://uav-api.safesky.app.
Live UAV Operations (/v1/uav)
GET
Retrieve traffic within a bounding box (viewport parameter)
GET nearby aircraft by radius
GET
Retrieve traffic within a radius (lat, lng, radius parameters)
Publish UAV
POST
Publish a single UAV position
Publish UAV and Get Nearby Aircraft
POST
Publish a UAV position and retrieve nearby traffic (return_nearby_traffic=true)
POST UAV with icao
POST
Publish a UAV position with an ICAO24 transponder code
POST UAV light
POST
Publish a minimal UAV position (only required fields)
POST multiple UAV and Retrieve Traffic
POST
Publish multiple UAV positions in a batch and retrieve nearby traffic
Advisory UAV Operations (/v1/advisory)
POST
Publish an advisory zone defined by a GeoJSON Polygon
Publishing a Point Advisory with a Radius
POST
Publish an advisory zone defined by a GeoJSON Point with max_distance
Publishing Multiple Advisories
POST
Publish multiple advisories (polygon + point) in a single request
Other
GET
Verify the API gateway is reachable
Start Testing
Once theyour environmentAPI key is configured:
- Select a Request: Choose any request from the collection (e.g.,
POST multiple UAVTraffic)lightand-Retrievereturn traffic - Review the Request: Check the request body and query parameters —
{{timestamp}}is resolved automatically - Send the Request: Click Send
- View the Response: The API will return nearby aircraft traffic based on your UAV positions
Troubleshooting
If you encounter authentication errors:
- Verify your
ss-api-keyis correctly set in theenvironmentcollection Variables tab (check the Current Value column)
View → Show Postman Console) to see ✓ Authentication headers set or any error messages
Ensure the serverhttps://sandbox-public-uav-api.safesky.app
Content-Type: consoleapplication/json API_KEY not found, make sure you saved the collection variables after entering your key