Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

fly-io OAuth API

Fly.io platform OAuth endpoints used during the single sign-on flow to authorize users and exchange tokens.

fly-io OAuth API is one of 9 APIs that fly-io publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include OAuth. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 3 operations across 3 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against 2 base URLs: https://{provider_base_url}, https://api.fly.io.

3 operations 3 paths 3 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Base URL
https://api.machines.dev
Authentication
HTTP Bearer, HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

fly-io OAuth API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (flySharedSecret). It accepts HTTP bearer tokens (oauthBearerAuth). An API key is passed in the header as X-Fly-Signature (webhookHmac). By default, every request must be authenticated.

  • flySharedSecret — Shared secret provided by Fly.io to the extension provider. Fly.io includes this secret in an Authorization Bearer header on all requests to the provider's API…
  • oauthBearerAuth — Fly.io OAuth access token obtained from the token exchange endpoint.
  • webhookHmac — HMAC-SHA256 signature of the raw request body, computed using the webhook signing secret. Recipients must verify this signature before processing the payload.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

OAuth 3

Fly.io platform OAuth endpoints used during the single sign-on flow to authorize users and exchange tokens.

GET
/oauth/authorize
OAuth authorization endpoint
oauthAuthorize 4 params → 302
POST
/oauth/token
Exchange authorization code for access token
oauthToken body → 200400
GET
/oauth/token/info
Get OAuth token information
getTokenInfo → 200401

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are TokenInfo (5 properties), OAuthTokenResponse (4 properties), ErrorResponse (2 properties). Each schema is shown below with its type and property counts.

OAuthTokenResponse
object
OAuth access token response from the Fly.io token endpoint.
4 properties
TokenInfo
object
User and organization information for a Fly.io OAuth token.
5 properties
ErrorResponse
object
A standard error response.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

fly-io-oauth-api-openapi.yml Raw ↑

Other APIs fly-io publishes across the network.

Fly.io Machines API
Fly.io GraphQL API
Fly.io Extensions API
fly-io Apps API
fly-io SSO API
fly-io Tokens API
fly-io Volumes API
fly-io Webhooks API