Eon.io Auth API

The Auth API from Eon.io, for auth.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

GET /api/auth Auth Mode #
GET /auth/login Auth Login #
GET /auth/reset-password Auth Reset Password #
GET /auth/callback Auth Callback #
POST /v1/token Get Access Token #
POST /v1/oauth2/token Get Access Token (OAuth 2) #
POST /v1/api-credentials/{clientId}/rotate Rotate API Client Secret #
POST /v1/api-credentials/current/rotate Rotate Current API Client Secret #

Specifications

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/eon.io:eon.io-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

eon.io-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Eon.io Auth API
  version: '1.0'
  description: 'Operations tagged Auth across 2 of this provider''s published API definitions: console-era-openapi.json, docs-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://%7Baccount-domain%7D.console.eon.io/api
  description: https://{account-domain}.console.eon.io/api
tags:
- name: Auth
paths:
  /api/auth:
    get:
      summary: Auth Mode
      description: How this deployment signs a customer in, so the page renders the right control.
      operationId: auth_mode_api_auth_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  anyOf:
                  - type: string
                  - items:
                      type: string
                    type: array
                type: object
                title: Response Auth Mode Api Auth Get
      tags:
      - Auth
  /auth/login:
    get:
      summary: Auth Login
      description: 'Leave for the Cognito hosted UI, carrying this login''s state in a cookie.


        The PKCE verifier, CSRF state and destination are signed rather than

        parked in memory, so the callback can land on any console replica.'
      operationId: auth_login_auth_login_get
      parameters:
      - name: next
        in: query
        required: false
        schema:
          type: string
          default: consumption.html
          title: Next
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/reset-password:
    get:
      summary: Auth Reset Password
      description: 'Leave for the hosted UI''s password reset, which ends in the same callback.


        Where the provider holds the credential this is the whole of "I have an

        account and cannot get in": the reset finishes the login it was started

        with, so the browser comes back signed in to ``next``.'
      operationId: auth_reset_password_auth_reset_password_get
      parameters:
      - name: next
        in: query
        required: false
        schema:
          type: string
          default: environments.html
          title: Next
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/callback:
    get:
      summary: Auth Callback
      description: 'Turn the hosted UI''s code into this console''s own session.


        The account record is created on first sign-in: Cognito owns the

        credential, the console owns only which environments the email owns.'
      operationId: auth_callback_auth_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code
      - name: state
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: State
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      - name: error_description
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error Description
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /v1/token:
    post:
      operationId: auth_getAccessToken
      summary: Get Access Token
      description: 'Retrieves an access token, which you then pass in the `Authorization` header when calling API methods.


        The client ID and secret you provide when calling this method must be from a set of API credentials from your Eon account.

        To learn more about creating API credentials and completing the authentication flow, see Authentication.


        The returned access token has the permissions included in the role you assigned to the API credentials.

        Always make sure the API credentials have the permissions needed for the API methods you want to use it for.


        The access token is valid for 12 hours.

        After that, you must call this method again to get a new token.'
      tags:
      - Auth
      responses:
        '200':
          description: Authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '404':
          description: API credentials weren't found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiCredentials'
    servers:
    - url: https://%7Baccount-domain%7D.console.eon.io/api
      description: https://{account-domain}.console.eon.io/api
  /v1/oauth2/token:
    post:
      operationId: auth_getAccessTokenOAuth2
      summary: Get Access Token (OAuth 2)
      description: 'Retrieves an access token using an OAuth-2.0-compliant flow.

        Accepts form-encoded credentials using standard `client_id` and `client_secret` field names.


        This method is specifically designed for OAuth 2.0 clients like Grafana that send credentials as form-encoded data.

        For JSON-based API calls, use [Get Access Token].


        The client ID and secret you provide when calling this method must be from a set of API credentials from your Eon account.

        To learn more about creating API credentials and completing the authentication flow, see Authentication.


        The returned access token has the permissions included in the role you assigned to the API credentials.

        Always make sure the API credentials have the permissions needed for the API methods you want to use it for.


        The access token is valid for 12 hours.

        After that, you must call this method again to get a new token.


        [Get Access Token]: ./get-access-token'
      tags:
      - Auth
      responses:
        '200':
          description: Authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Oauth2TokenResponse'
        '404':
          description: API credentials weren't found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuth2TokenRequest'
    servers:
    - url: https://%7Baccount-domain%7D.console.eon.io/api
      description: https://{account-domain}.console.eon.io/api
  /v1/api-credentials/{clientId}/rotate:
    post:
      operationId: auth_rotateApiClientSecret
      summary: Rotate API Client Secret
      description: 'Replaces the client secret for the specified API client credentials.


        This method can be used to rotate a secret for the API credentials specified in the request body.

        To replace the client secret for the access key passed in the `Authorization` header, you can also use [Rotate Current API Client Secret].


        Once replaced, the old client secret can''t be used to authenticate or obtain new tokens.

        However, access tokens that were issued before the rotation remain valid until they expire.

        This means there is an effective grace period of up to 12 hours where previously issued access tokens continue to work, even though the client secret used to obtain them has been rotated.


        [Rotate Current API Client Secret]: ./rotate-current-api-client-secret'
      tags:
      - Auth
      parameters:
      - name: clientId
        in: path
        description: API client ID.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Client secret rotated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCredentials'
        '404':
          description: API credentials weren't found.
          content:
            application/json:
              schema:
                description: Any type
      security:
      - ApiKeyAuth: []
    servers:
    - url: https://%7Baccount-domain%7D.console.eon.io/api
      description: https://{account-domain}.console.eon.io/api
  /v1/api-credentials/current/rotate:
    post:
      operationId: auth_rotateCurrentApiClientSecret
      summary: Rotate Current API Client Secret
      description: 'Replaces the client secret for the currently used set of API credentials.


        This method can be used to rotate a secret only for the access key passed in the `Authorization` header.

        To replace client secrets for other sets of API credentials, use [Rotate API Client Secret].


        Once replaced, the old client secret can''t be used to authenticate or obtain new tokens.

        However, access tokens that were issued before the rotation remain valid until they expire.

        This means there is an effective grace period of up to 12 hours where previously issued access tokens continue to work, even though the client secret used to obtain them has been rotated.


        [Rotate API Client Secret]: ./rotate-api-client-secret'
      tags:
      - Auth
      responses:
        '200':
          description: Client secret rotated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCredentials'
      security:
      - ApiKeyAuth: []
    servers:
    - url: https://%7Baccount-domain%7D.console.eon.io/api
      description: https://{account-domain}.console.eon.io/api
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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OAuth2TokenRequestGrantType:
      type: string
      enum:
      - client_credentials
      description: 'OAuth 2.0 grant type you''re using.

        Must be `client_credentials`.

        '
      title: OAuth2TokenRequestGrantType
    Error:
      type: object
      properties:
        error:
          type: string
      title: Error
    ApiCredentials:
      type: object
      properties:
        clientId:
          type: string
          description: API client ID.
        clientSecret:
          type: string
          description: API client secret.
      required:
      - clientId
      - clientSecret
      title: ApiCredentials
    TokenResponse:
      type: object
      properties:
        accessToken:
          type: string
          description: Access token, which you pass in the `Authorization` header when calling API methods.
        expirationSeconds:
          type: integer
          description: 'Length of time until the token expires, in seconds.


            Default: `43200` (12 hours).

            '
      title: TokenResponse
    OAuth2TokenRequest:
      type: object
      properties:
        client_id:
          type: string
          description: API client ID.
        client_secret:
          type: string
          description: API client secret.
        grant_type:
          $ref: '#/components/schemas/OAuth2TokenRequestGrantType'
          description: 'OAuth 2.0 grant type you''re using.

            Must be `client_credentials`.

            '
      required:
      - client_id
      - client_secret
      - grant_type
      title: OAuth2TokenRequest
    Oauth2TokenResponse:
      type: object
      properties:
        access_token:
          type: string
          description: Access token, which you pass in the `Authorization` header when calling API methods.
        token_type:
          type: string
          description: Type of the token, which is always `Bearer`.
        expires_in:
          type: integer
          description: 'Length of time until the token expires, in seconds.

            Default: `43200` (12 hours).

            '
      title: Oauth2TokenResponse
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
x-refined-from:
- console-era-openapi.json
- docs-openapi.json