Skip to content
v5.5

API clients

Create the keys that let your own systems use the Operations API, or let pilots sign in to your app with the Pilot API.

vAMSYS has two APIs, and an API client is the key to one of them. API & Webhooks has three tabs: API Clients, Request Log and Webhooks. You need the Manage API clients and webhooks permission. The section is not available while your Virtual Airline is on a trial.

Operations API Pilot API
Use it for Your own systems reading and changing your Virtual Airline’s data: fleet, routes, pilots, PIREPs, activities and more An app that pilots sign in to, and that reads their data
Grant Client credentials Authorization code with PKCE
Credentials Client ID and secret Client ID only, no secret. The pilot authorises it in their browser
Documentation /docs/operations /docs/pilot

The documentation is generated from the code and lists every endpoint, schema and sign-in requirement. Both are linked as Operations API Documentation and Pilot API Documentation at the top of the page. The API reference is kept by core, not on this site.

API ClientsOrwell
1Orwell▾ AdministrationSharing AgreementsAPI & WebhooksAPI ClientsStatistics
API Clients
3New Client
2All ClientsOperations APIPilot APIAwaiting AttestationRevoked
NameClient IDAPIStatusCalls (24h)Errors (24h)

Schematic of the API Clients screen in Orwell. The numbers match the steps.

  1. 1API & Webhooks in the Administration menu
  2. 2Views by API
  3. 3New Client button
  1. Select New Client.
  2. Choose the API: Operations API or Pilot API.
  3. Enter a Client Name, so you know which client is which.
  4. For a Pilot API client, enter the Redirect URI and Privacy Policy URL (see Pilot API clients).
  5. Tick the scopes the client needs, and optionally enter Allowed IP Addresses.
  6. Select Create Client. Copy the Client ID from the Save These Now window, and for an Operations API client the Client Secret too, then select I Have Saved Them.

The secret is shown once and can’t be retrieved later. If you lose it, use Regenerate Secret.

With no scope ticked, the client can do everything. Tick only what it needs:

Scope Lets the client
ops:read Read all Operations API data: fleet, routes, pilots, PIREPs and statistics.
ops:config:write Create and manage fleet, airports, routes, hubs, ranks, badges and other configuration.
ops:flights:write Manage bookings, PIREP comments, scoring and meta, pilot notes and minor pilot actions.
ops:moderation:write Accept and reject PIREPs, ban or delete pilots, approve registrations and transfers, and invite pilots.
ops:activities:write Create and manage events, tours, rosters and community activities.

Operations API tokens last 24 hours.

A Pilot API client needs a Redirect URI, a Privacy Policy URL and its scopes.

  • Redirect URI: an HTTPS address, or a custom scheme for a desktop app such as myapp://callback. Plain HTTP is refused.
  • Privacy Policy URL: a public page, checked when you save, that covers the pilot data the client receives.
  • Pilot API Scopes: what the client may ask pilots for. Every client gets identity:basic (name and email) without ticking it. Pilots see the scopes when they authorise the client.
Scope Lets the client
identity:networks Read online network IDs (VATSIM, IVAO, POSCON, APOC).
identity:discord Read the linked Discord account.
identity:social Read social links (Twitch, YouTube).
pilot:read Read the pilot profile, rank, stats and badges.
pilot:write Update pilot preferences and holidays.
flights:read Read bookings, PIREPs, claims, comments and logbook.
flights:write Create bookings, file PIREPs, dispatch flights and comment on PIREPs.
activities:read Read activity registrations, rosters and community goals.
activities:write Register for activities and manage personal rosters.

Pilot API tokens last an hour and come with a refresh token.

A new Pilot API client starts as Awaiting Attestation, and pilots can’t authorise it. Your Virtual Airline’s owner (or Team vAMSYS) must select Attest & Activate on its row to confirm that its privacy policy covers the personal data pilots share. Staff who are not owners don’t see that button. Changing the redirect, the privacy policy or the scopes revokes the client until it is attested again.

Columns are Name, Client ID, API, Redirect, Status (Active, Awaiting Attestation or Revoked), Attested, Allowed From, Calls (24h), Errors (24h) and Last Used. The views split by API and show clients awaiting attestation or revoked.

Actions on each row:

  • Statistics: calls made today, this week, this month and in the last 3 months.
  • Edit: change the name, redirect, privacy policy, scopes or Allowed IP Addresses, or switch Revoked on. A revoked client can’t sign in.
  • Regenerate Secret (Operations API clients): makes a new secret, shows it once, and stops every token issued with the old one. Update everything that uses the old secret.
  • Delete: anything using the client stops working at once. This can’t be undone.

Allowed IP Addresses is optional. Enter addresses or ranges such as 203.0.113.9 or 203.0.113.0/24. Calls and token requests from anywhere else are refused and show in the Request Log. Leave it empty to allow any address.

  • Never put a client secret in public code, an app pilots download, or a log.
  • Store tokens securely and use HTTPS for every call.
  • Regenerate an Operations API client’s secret from time to time, and whenever it may have leaked.
  • Watch the Request Log: a sudden rise in calls, calls at odd hours, or a client never used can each mean something is wrong.
  • Calls are rate limited for your whole Virtual Airline, across all its clients. The X-RateLimit headers on each response show where you are. Ask Team vAMSYS if you need more.
  • Requests return 401. The token has expired, or you regenerated the secret. Request a new token instead of reusing a stored one, and refresh before expiry.
  • Requests are refused from your server. Check Allowed From on the client and the Request Log for the address that was refused.
  • Pilots can’t authorise your Pilot API client. Check its status. If it reads Awaiting Attestation, the owner must attest it.
  • The API & Webhooks section is missing. Your Virtual Airline is on a trial, or you don’t hold Manage API clients and webhooks. Ask an owner to give it to you in Staff.

Spot something wrong or missing? Email us at [email protected].