inference-sh Auth API

The auth API from inference-sh — 47 operation(s) for auth.

Operations 53

GET /auth/callback/{provider} Get auth callback by provider #
POST /auth/callback/{provider} Create auth callback by provider #
GET /auth/link-account Get auth link account #
POST /auth/link-account Create auth link account #
GET /auth/login/{provider} Get auth login by provider #
POST /auth/logout Create auth logout #
POST /auth/magic-link/send Create auth magic link send #
GET /auth/magic-link/verify Get auth magic link verify #
POST /auth/magic-link/verify Create auth magic link verify #
POST /auth/magic-link/verify-code Create auth magic link verify code #
POST /auth/otp/resend Create auth otp resend #
GET /auth/otp/status Get auth otp status #
POST /auth/otp/verify Create auth otp verify #
POST /auth/passkey/assert/begin Create auth passkey assert begin #
POST /auth/passkey/register/begin Create auth passkey register begin #
POST /auth/passkey/register/finish Create auth passkey register finish #
GET /auth/providers Get auth providers #
POST /auth/saml/acs Create auth saml acs #
POST /auth/saml/acs/{teamSlug} Create auth saml acs by team slug #
POST /auth/saml/connections/{connectionID}/acs Create auth saml connections by connection id acs #
GET /auth/saml/connections/{connectionID}/metadata Get auth saml connections by connection id metadata #
GET /auth/saml/login/{teamSlug} Get auth saml login by team slug #
GET /auth/saml/metadata/{teamSlug} Get auth saml metadata by team slug #
GET /auth/second-factor Get auth second factor #
POST /auth/second-factor/disable Create auth second factor disable #
POST /auth/second-factor/enable Create auth second factor enable #
DELETE /auth/second-factor/methods/{id} Delete auth second factor methods by id #
PATCH /auth/second-factor/methods/{id} Update auth second factor methods by id #
POST /auth/second-factor/recovery-codes Create auth second factor recovery codes #
GET /auth/sessions Get auth sessions #
POST /auth/sessions/revoke-all Create auth sessions revoke all #
DELETE /auth/sessions/{id} Delete auth sessions by id #
POST /auth/totp/confirm Create auth totp confirm #
POST /auth/totp/enroll Create auth totp enroll #
POST /device/auth/ Create device auth #
POST /device/auth/approve Create device auth approve #
POST /device/auth/claim Create device auth claim #
GET /device/auth/code/{code} Get device auth code by code #
DELETE /device/auth/elevate Delete device auth elevate #
GET /device/auth/elevate Get device auth elevate #
POST /device/auth/elevate Create device auth elevate #
GET /device/auth/poll/{deviceCode} Get device auth poll by device code #
POST /logout Create logout #
GET /oauth/authorize Get oauth authorize #
POST /oauth/authorize/approve Create oauth authorize approve #
POST /oauth/authorize/deny Create oauth authorize deny #
GET /oauth/authorize/info Get oauth authorize info #
GET /oauth/connected-apps Get oauth connected apps #
POST /oauth/connected-apps/revoke Create oauth connected apps revoke #
POST /oauth/device_authorization Create oauth device authorization #
POST /oauth/register Create oauth register #
POST /oauth/revoke Create oauth revoke #
POST /oauth/token Create oauth token #

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/inference-sh:inference-sh-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

inference-sh-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: inference.sh Auth API
  version: '2'
servers:
- url: https://api.inference.sh
tags:
- name: Auth
paths:
  /auth/callback/{provider}:
    get:
      tags:
      - Auth
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get auth callback by provider
      x-summary-source: derived
      operationId: getAuthCallbackByProvider
      x-operation-id-source: derived
    post:
      tags:
      - Auth
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Create auth callback by provider
      x-summary-source: derived
      operationId: postAuthCallbackByProvider
      x-operation-id-source: derived
  /auth/link-account:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get auth link account
      x-summary-source: derived
      operationId: getAuthLinkAccount
      x-operation-id-source: derived
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth link account
      x-summary-source: derived
      operationId: postAuthLinkAccount
      x-operation-id-source: derived
  /auth/login/{provider}:
    get:
      tags:
      - Auth
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get auth login by provider
      x-summary-source: derived
      operationId: getAuthLoginByProvider
      x-operation-id-source: derived
  /auth/logout:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth logout
      x-summary-source: derived
      operationId: postAuthLogout
      x-operation-id-source: derived
  /auth/magic-link/send:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth magic link send
      x-summary-source: derived
      operationId: postAuthMagicLinkSend
      x-operation-id-source: derived
  /auth/magic-link/verify:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get auth magic link verify
      x-summary-source: derived
      operationId: getAuthMagicLinkVerify
      x-operation-id-source: derived
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth magic link verify
      x-summary-source: derived
      operationId: postAuthMagicLinkVerify
      x-operation-id-source: derived
  /auth/magic-link/verify-code:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth magic link verify code
      x-summary-source: derived
      operationId: postAuthMagicLinkVerifyCode
      x-operation-id-source: derived
  /auth/otp/resend:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth otp resend
      x-summary-source: derived
      operationId: postAuthOtpResend
      x-operation-id-source: derived
  /auth/otp/status:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get auth otp status
      x-summary-source: derived
      operationId: getAuthOtpStatus
      x-operation-id-source: derived
  /auth/otp/verify:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth otp verify
      x-summary-source: derived
      operationId: postAuthOtpVerify
      x-operation-id-source: derived
  /auth/passkey/assert/begin:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth passkey assert begin
      x-summary-source: derived
      operationId: postAuthPasskeyAssertBegin
      x-operation-id-source: derived
  /auth/passkey/register/begin:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth passkey register begin
      x-summary-source: derived
      operationId: postAuthPasskeyRegisterBegin
      x-operation-id-source: derived
  /auth/passkey/register/finish:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth passkey register finish
      x-summary-source: derived
      operationId: postAuthPasskeyRegisterFinish
      x-operation-id-source: derived
  /auth/providers:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get auth providers
      x-summary-source: derived
      operationId: getAuthProviders
      x-operation-id-source: derived
  /auth/saml/acs:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth saml acs
      x-summary-source: derived
      operationId: postAuthSamlAcs
      x-operation-id-source: derived
  /auth/saml/acs/{teamSlug}:
    post:
      tags:
      - Auth
      parameters:
      - name: teamSlug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Create auth saml acs by team slug
      x-summary-source: derived
      operationId: postAuthSamlAcsByTeamSlug
      x-operation-id-source: derived
  /auth/saml/connections/{connectionID}/acs:
    post:
      tags:
      - Auth
      parameters:
      - name: connectionID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Create auth saml connections by connection id acs
      x-summary-source: derived
      operationId: postAuthSamlConnectionsByConnectionIDAcs
      x-operation-id-source: derived
  /auth/saml/connections/{connectionID}/metadata:
    get:
      tags:
      - Auth
      parameters:
      - name: connectionID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get auth saml connections by connection id metadata
      x-summary-source: derived
      operationId: getAuthSamlConnectionsByConnectionIDMetadata
      x-operation-id-source: derived
  /auth/saml/login/{teamSlug}:
    get:
      tags:
      - Auth
      parameters:
      - name: teamSlug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get auth saml login by team slug
      x-summary-source: derived
      operationId: getAuthSamlLoginByTeamSlug
      x-operation-id-source: derived
  /auth/saml/metadata/{teamSlug}:
    get:
      tags:
      - Auth
      parameters:
      - name: teamSlug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get auth saml metadata by team slug
      x-summary-source: derived
      operationId: getAuthSamlMetadataByTeamSlug
      x-operation-id-source: derived
  /auth/second-factor:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get auth second factor
      x-summary-source: derived
      operationId: getAuthSecondFactor
      x-operation-id-source: derived
  /auth/second-factor/disable:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth second factor disable
      x-summary-source: derived
      operationId: postAuthSecondFactorDisable
      x-operation-id-source: derived
  /auth/second-factor/enable:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth second factor enable
      x-summary-source: derived
      operationId: postAuthSecondFactorEnable
      x-operation-id-source: derived
  /auth/second-factor/methods/{id}:
    delete:
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Delete auth second factor methods by id
      x-summary-source: derived
      operationId: deleteAuthSecondFactorMethodsById
      x-operation-id-source: derived
    patch:
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Update auth second factor methods by id
      x-summary-source: derived
      operationId: patchAuthSecondFactorMethodsById
      x-operation-id-source: derived
  /auth/second-factor/recovery-codes:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth second factor recovery codes
      x-summary-source: derived
      operationId: postAuthSecondFactorRecoveryCodes
      x-operation-id-source: derived
  /auth/sessions:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get auth sessions
      x-summary-source: derived
      operationId: getAuthSessions
      x-operation-id-source: derived
  /auth/sessions/revoke-all:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth sessions revoke all
      x-summary-source: derived
      operationId: postAuthSessionsRevokeAll
      x-operation-id-source: derived
  /auth/sessions/{id}:
    delete:
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Delete auth sessions by id
      x-summary-source: derived
      operationId: deleteAuthSessionsById
      x-operation-id-source: derived
  /auth/totp/confirm:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth totp confirm
      x-summary-source: derived
      operationId: postAuthTotpConfirm
      x-operation-id-source: derived
  /auth/totp/enroll:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create auth totp enroll
      x-summary-source: derived
      operationId: postAuthTotpEnroll
      x-operation-id-source: derived
  /device/auth/:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create device auth
      x-summary-source: derived
      operationId: postDeviceAuth
      x-operation-id-source: derived
  /device/auth/approve:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create device auth approve
      x-summary-source: derived
      operationId: postDeviceAuthApprove
      x-operation-id-source: derived
  /device/auth/claim:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create device auth claim
      x-summary-source: derived
      operationId: postDeviceAuthClaim
      x-operation-id-source: derived
  /device/auth/code/{code}:
    get:
      tags:
      - Auth
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get device auth code by code
      x-summary-source: derived
      operationId: getDeviceAuthCodeByCode
      x-operation-id-source: derived
  /device/auth/elevate:
    delete:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Delete device auth elevate
      x-summary-source: derived
      operationId: deleteDeviceAuthElevate
      x-operation-id-source: derived
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get device auth elevate
      x-summary-source: derived
      operationId: getDeviceAuthElevate
      x-operation-id-source: derived
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create device auth elevate
      x-summary-source: derived
      operationId: postDeviceAuthElevate
      x-operation-id-source: derived
  /device/auth/poll/{deviceCode}:
    get:
      tags:
      - Auth
      parameters:
      - name: deviceCode
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get device auth poll by device code
      x-summary-source: derived
      operationId: getDeviceAuthPollByDeviceCode
      x-operation-id-source: derived
  /logout:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create logout
      x-summary-source: derived
      operationId: postLogout
      x-operation-id-source: derived
  /oauth/authorize:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get oauth authorize
      x-summary-source: derived
      operationId: getOauthAuthorize
      x-operation-id-source: derived
  /oauth/authorize/approve:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth authorize approve
      x-summary-source: derived
      operationId: postOauthAuthorizeApprove
      x-operation-id-source: derived
  /oauth/authorize/deny:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth authorize deny
      x-summary-source: derived
      operationId: postOauthAuthorizeDeny
      x-operation-id-source: derived
  /oauth/authorize/info:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get oauth authorize info
      x-summary-source: derived
      operationId: getOauthAuthorizeInfo
      x-operation-id-source: derived
  /oauth/connected-apps:
    get:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Get oauth connected apps
      x-summary-source: derived
      operationId: getOauthConnectedApps
      x-operation-id-source: derived
  /oauth/connected-apps/revoke:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth connected apps revoke
      x-summary-source: derived
      operationId: postOauthConnectedAppsRevoke
      x-operation-id-source: derived
  /oauth/device_authorization:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth device authorization
      x-summary-source: derived
      operationId: postOauthDeviceAuthorization
      x-operation-id-source: derived
  /oauth/register:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth register
      x-summary-source: derived
      operationId: postOauthRegister
      x-operation-id-source: derived
  /oauth/revoke:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth revoke
      x-summary-source: derived
      operationId: postOauthRevoke
      x-operation-id-source: derived
  /oauth/token:
    post:
      tags:
      - Auth
      responses:
        '200':
          description: Success
      summary: Create oauth token
      x-summary-source: derived
      operationId: postOauthToken
      x-operation-id-source: derived