Steledger Auth API

The Auth API from Steledger — 7 operation(s) for auth.

GitHub OpenAPI

Operations 7

POST /auth/login Login #
POST /auth/github/device/start Github Device Start #
POST /auth/github/device/poll Github Device Poll #
GET /auth/github/start Github Web Start #
GET /auth/github/callback Github Web Callback #
POST /auth/challenge Auth Challenge #
POST /auth/agent-login Agent Login #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/steledger-com:steledger-com-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

steledger-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Steledger (edge) Auth API
  version: 0.0.1
tags:
- name: Auth
paths:
  /auth/login:
    post:
      summary: Login
      description: 'Dev/CI bootstrap: caller already holds a GitHub token. Disabled in prod

        (use the device flow); gated behind EDGE_DEV_LOGIN_ENABLED.'
      operationId: login_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/github/device/start:
    post:
      summary: Github Device Start
      description: Begin GitHub device-flow login. Returns a code the user types at GitHub.
      operationId: github_device_start_auth_github_device_start_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceStartResponse'
      tags:
      - Auth
  /auth/github/device/poll:
    post:
      summary: Github Device Poll
      description: Poll for completion. 200 + token once authorized; 202 while pending.
      operationId: github_device_poll_auth_github_device_poll_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DevicePollRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/github/start:
    get:
      summary: Github Web Start
      description: Redirect the browser to GitHub's consent screen (web flow).
      operationId: github_web_start_auth_github_start_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/github/callback:
    get:
      summary: Github Web Callback
      description: 'GitHub redirects the browser here with ?code&state. Shared by two flows:

        the MCP OAuth flow (state owned by the MCP provider → hand back to the client)

        and the browser web-login flow (render a branded result page).'
      operationId: github_web_callback_auth_github_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      - name: error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/challenge:
    post:
      summary: Auth Challenge
      operationId: auth_challenge_auth_challenge_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChallengeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChallengeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/agent-login:
    post:
      summary: Agent Login
      description: 'Machine-speed login: agent signs the challenge nonce with its address key.


        Signature is verified by the node (`verifymessage` via the adapter); the

        address must match the one bound to this GitHub identity on-chain.'
      operationId: agent_login_auth_agent_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentLoginRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    DeviceStartResponse:
      properties:
        user_code:
          type: string
          title: User Code
          description: Show this to the user to type at verification_uri
        verification_uri:
          type: string
          title: Verification Uri
        verification_uri_complete:
          anyOf:
          - type: string
          - type: 'null'
          title: Verification Uri Complete
        session_id:
          type: string
          title: Session Id
          description: Poll /auth/github/device/poll with this
        interval:
          type: integer
          title: Interval
          description: Seconds to wait between polls
        expires_in:
          type: integer
          title: Expires In
      type: object
      required:
      - user_code
      - verification_uri
      - session_id
      - interval
      - expires_in
      title: DeviceStartResponse
    TokenResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          title: Token Type
          default: bearer
        github_id:
          type: integer
          title: Github Id
        github_login:
          type: string
          title: Github Login
        tariff:
          type: string
          title: Tariff
      type: object
      required:
      - access_token
      - github_id
      - github_login
      - tariff
      title: TokenResponse
    AgentLoginRequest:
      properties:
        github_id:
          type: integer
          title: Github Id
        address:
          type: string
          title: Address
        signature:
          type: string
          title: Signature
          description: signmessage(address, nonce) from the challenge
      type: object
      required:
      - github_id
      - address
      - signature
      title: AgentLoginRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LoginRequest:
      properties:
        github_token:
          type: string
          title: Github Token
          description: A GitHub token; resolved to a user via the API
      type: object
      required:
      - github_token
      title: LoginRequest
    ChallengeRequest:
      properties:
        github_id:
          type: integer
          title: Github Id
      type: object
      required:
      - github_id
      title: ChallengeRequest
    ChallengeResponse:
      properties:
        github_id:
          type: integer
          title: Github Id
        nonce:
          type: string
          title: Nonce
          description: Sign this exact string with the agent's address key
      type: object
      required:
      - github_id
      - nonce
      title: ChallengeResponse
    DevicePollRequest:
      properties:
        session_id:
          type: string
          title: Session Id
      type: object
      required:
      - session_id
      title: DevicePollRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer