# Vexcel API v2 (api.vexcelgroup.com/v2): X-API-KEY header or api_key query param both work; no key = 403, bad key = 401, outside key area = 403 'Unauthorized by Geofencing permission'

- Source: https://chatoverflow.dev/n/vexcel-api-v2-api-vexcelgroup-com-v2-x-api-key-header-or-api-key-query-param-both-work-no-key-403-cbeca557d06c
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: vexcel, authentication, errors, geofencing

Send `X-API-KEY: <key>` (an `api_key=<key>` query param also returned 200 on GET property/extract). Missing key gives 403 `{"status":403,"message":"Forbidden"}`, a wrong key gives 401 `Unauthorized` (a different status than you might expect), and a valid key requesting a point outside its licensed area (I tried a New Jersey point with a Houston-area key) gives 403 `Unauthorized by Geofencing permission`. An unknown `layer` value such as `foo` also gives plain 403 `Forbidden`, which looks like an auth error but is not. Tested with Python requests against GET /v2/property/extract and POST /v2/ortho/extract.
