amazee.io Auth API

The auth API from amazee.io — 7 operation(s) for auth.

GitHub OpenAPI

Operations 7

POST /auth/login Login #
POST /auth/logout Logout #
POST /auth/register Register #
POST /auth/sign-in Sign In #
POST /auth/validate-email Validate Email #
GET /auth/validate-jwt Validate Jwt #
POST /auth/generate-trial-access Generate Trial Access #

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/amazee-io:amazee-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

amazee-io-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazee Io Auth API
  version: 2.14.2
  description: 'Operations tagged auth across 2 of this provider''s published API definitions: amazee-io-private-ai-keys-openapi.json, amazee-io-private-ai-keys-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.amazee.ai
  description: Host the spec was fetched from (observed; not stated in the spec)
security:
- Bearer: []
tags:
- name: Auth
paths:
  /auth/login:
    post:
      tags:
      - Auth
      summary: Login
      description: 'Login to get access to the API.


        Accepts both application/x-www-form-urlencoded and application/json formats.


        Form data:

        - **username**: Your email address

        - **password**: Your password


        JSON data:

        - **username**: Your email address

        - **password**: Your password


        On successful login, an access token will be set as an HTTP-only cookie and also returned in the response.

        Use this token for subsequent authenticated requests.'
      operationId: login_auth_login_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_login_auth_login_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/logout:
    post:
      tags:
      - Auth
      summary: Logout
      description: 'Log the caller out and stop the presented access token from working again.


        The endpoint stays open to anonymous callers so a client can always clear its

        cookie. It reports success either way and never says whether a token was real.'
      operationId: logout_auth_logout_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/register:
    post:
      tags:
      - Auth
      summary: Register
      description: 'Register a new user account.


        - **email**: Your email address

        - **password**: A secure password (minimum 12 characters)


        After registration, you''ll need to login to get an access token.'
      operationId: register_auth_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserCreate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/sign-in:
    post:
      tags:
      - Auth
      summary: Sign In
      description: 'Sign in using a verification code instead of a password.


        Accepts both application/x-www-form-urlencoded and application/json formats.


        Form data:

        - **username**: Your email address

        - **verification_code**: The verification code sent to your email


        JSON data:

        - **username**: Your email address

        - **verification_code**: The verification code sent to your email


        On successful sign in, an access token will be set as an HTTP-only cookie and also returned in the response.

        Use this token for subsequent authenticated requests.


        If the user doesn''t exist, they will be automatically registered and a new team will be created

        with them as the admin. An existing user without a team gets one the same way, unless

        the Gmail mailbox cap is reached; then they sign in without a team.'
      operationId: sign_in_auth_sign_in_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_sign_in_auth_sign_in_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/validate-email:
    post:
      tags:
      - Auth
      summary: Validate Email
      description: 'Validate an email address and generate a validation code.


        Accepts both application/x-www-form-urlencoded and application/json formats.


        Form data:

        - **email**: The email address to validate


        JSON data:

        - **email**: The email address to validate


        Returns a success message if the email is valid and a code has been generated.'
      operationId: validate_email_auth_validate_email_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_validate_email_auth_validate_email_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/validate-jwt:
    get:
      tags:
      - Auth
      summary: Validate Jwt
      description: 'Validate a JWT token and either refresh it or send a new validation URL.


        The token must be provided in the Authorization header: Bearer your_token


        Returns:

        - If token is valid: A new access token with cookies set

        - If token is expired: 401 with a message that a new sign-in link was sent.

        The link is sent only on the first call with that token, only if the token

        has a jti, and only if it expired less than REVOKED_TOKENS_RETENTION_DAYS

        ago. Otherwise the response is 401 "Could not validate credentials".'
      operationId: validate_jwt_auth_validate_jwt_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
  /auth/generate-trial-access:
    post:
      tags:
      - Auth
      summary: Generate Trial Access
      description: 'Generate an anonymous trial access.

        Creates a new anonymous user and assigns a new private AI key to that user for a specific team.

        The AI key will have a limited max budget.


        Returns the private AI key (which includes both LiteLLM token and VectorDB credentials),

        along with user and team information.'
      operationId: generate_trial_access_auth_generate_trial_access_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrialAccessResponse'
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
    PrivateAIKey:
      properties:
        id:
          type: integer
          title: Id
        database_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Database Name
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        database_host:
          anyOf:
          - type: string
          - type: 'null'
          title: Database Host
        database_username:
          anyOf:
          - type: string
          - type: 'null'
          title: Database Username
        database_password:
          anyOf:
          - type: string
          - type: 'null'
          title: Database Password
        litellm_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Litellm Token
        litellm_api_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Litellm Api Url
        region:
          anyOf:
          - type: string
          - type: 'null'
          title: Region
        region_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Region Label
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        owner_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Owner Id
        team_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Team Id
      type: object
      required:
      - id
      title: PrivateAIKey
    Body_login_auth_login_post:
      properties:
        username:
          anyOf:
          - type: string
          - type: 'null'
          title: Username
        password:
          anyOf:
          - type: string
          - type: 'null'
          title: Password
      type: object
      title: Body_login_auth_login_post
    TrialAccessResponse:
      properties:
        key:
          $ref: '#/components/schemas/PrivateAIKey'
        user:
          $ref: '#/components/schemas/User'
        token:
          $ref: '#/components/schemas/Token'
        team_id:
          type: integer
          title: Team Id
        team_name:
          type: string
          title: Team Name
      type: object
      required:
      - key
      - user
      - token
      - team_id
      - team_name
      title: TrialAccessResponse
    Token:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          title: Token Type
      type: object
      required:
      - access_token
      - token_type
      title: Token
    Body_validate_email_auth_validate_email_post:
      properties:
        email_data:
          anyOf:
          - $ref: '#/components/schemas/EmailValidation'
          - type: 'null'
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      type: object
      title: Body_validate_email_auth_validate_email_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_sign_in_auth_sign_in_post:
      properties:
        username:
          anyOf:
          - type: string
          - type: 'null'
          title: Username
        verification_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Verification Code
      type: object
      title: Body_sign_in_auth_sign_in_post
    User:
      properties:
        email:
          type: string
          format: email
          title: Email
        id:
          type: integer
          title: Id
        is_active:
          type: boolean
          title: Is Active
        is_admin:
          type: boolean
          title: Is Admin
        team_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Team Id
        team_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Team Name
        role:
          anyOf:
          - type: string
          - type: 'null'
          title: Role
        receive_marketing_updates:
          type: boolean
          title: Receive Marketing Updates
          default: false
      type: object
      required:
      - email
      - id
      - is_active
      - is_admin
      title: User
    EmailValidation:
      properties:
        email:
          type: string
          format: email
          title: Email
      type: object
      required:
      - email
      title: EmailValidation
    UserCreate:
      properties:
        email:
          type: string
          format: email
          title: Email
        password:
          anyOf:
          - type: string
            minLength: 12
          - type: 'null'
          title: Password
        team_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Team Id
        role:
          anyOf:
          - type: string
          - type: 'null'
          title: Role
        receive_marketing_updates:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Receive Marketing Updates
      type: object
      required:
      - email
      title: UserCreate
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT token in the format: Bearer <token>'
x-refined-from:
- amazee-io-private-ai-keys-openapi.json
- amazee-io-private-ai-keys-openapi.yml