Kamera-ichi 器材市集 Auth API

Bearer token 帳密驗證流程

GitHub OpenAPI

Operations 2

POST /auth/token 取得 API 存取權杖 #
POST /auth/revoke 撤銷存取權杖 #

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/kamera-ichi-com:kamera-ichi-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

kamera-ichi-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kamera-ichi 器材市集 Auth API
  version: 1.0.0
  description: 本規格列出 Kamera-ichi 目前發布的部分 API 端點:刊登搜尋與詳情、價格行情、健康檢查、Bearer token 與 MCP (Model Context Protocol)。
  contact:
    name: Kamera-ichi 開發者支援
    url: https://kamera-ichi.com/contact
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://kamera-ichi.com/api
  description: Production API Gateway (Cloudflare Pages Proxy)
tags:
- name: Auth
  description: Bearer token 帳密驗證流程
paths:
  /auth/token:
    post:
      operationId: issueAccessToken
      summary: 取得 API 存取權杖
      description: 以 email 與密碼換取 Bearer access token,供代理人呼叫需驗證的端點。
      tags:
      - Auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                password:
                  type: string
                  format: password
              required:
              - email
              - password
      responses:
        '200':
          description: 成功取得權杖
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  token_type:
                    type: string
                    example: Bearer
                  expires_in:
                    type: integer
                    example: 3600
                    description: 權杖有效秒數:管理員 3600 秒(1 小時),一般會員 86400 秒(24 小時)。
                required:
                - access_token
                - token_type
                - expires_in
        '401':
          description: 帳號或密碼錯誤
          headers:
            WWW-Authenticate:
              description: Bearer authentication challenge
              schema:
                type: string
                example: Bearer realm="kamera-ichi"
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
  /auth/revoke:
    post:
      operationId: revokeAccessToken
      summary: 撤銷存取權杖
      description: 立即撤銷目前的 Bearer access token 與所有 refresh token。
      tags:
      - Auth
      security:
      - BearerAuth: []
      responses:
        '200':
          description: 權杖已撤銷
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                  revoked:
                    type: boolean
                    example: true
                required:
                - ok
                - revoked
        '401':
          description: 缺少或無效的 Bearer token
          headers:
            WWW-Authenticate:
              description: Bearer authentication challenge
              schema:
                type: string
                example: Bearer realm="kamera-ichi"
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    ProblemDetails:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true