Pilot
Verify token and return profile
Validates the Bearer token and returns the pilot's profile. Use this on app launch to confirm the stored token is still valid and refresh cached profile fields. The response shape matches POST /pilot/login minus the token field.
get/pilot/verify
Request
- Base URLhttps://crew.example.com/api/stratos
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Token is valid.
Example response
{
"pilot_id": "QFA0001",
"rank": "First Officer"
}Changes
No recorded changes to this operation across all 2 revisions of this API.