Source Parts Inc. Auth API

API key management

GitHub OpenAPI

Operations 7

POST /auth/key/validate Validate API key #
GET /auth/keys List API keys #
POST /auth/keys Create API key #
DELETE /auth/keys/{key_id} Revoke (soft-delete) an API key #
POST /auth/token Proxy the Auth0 PKCE authorization code exchange #
POST /auth/token/refresh Proxy an Auth0 refresh token exchange #
GET /auth/validate Validate an API key from Authorization header #

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/source-parts:source-parts-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

source-parts-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Source Parts Auth API
  description: 'The Source Parts v1 API provides programmatic access to electronic parts data,

    inventory management, BOM processing, and manufacturing workflows.


    **Required headers:** every request must include a non-empty `User-Agent`

    header identifying your application (e.g. `User-Agent: your-app/1.0`).

    Requests without one are rejected with `403 Forbidden` before authentication.'
  version: 1.1.0
  contact:
    name: Source Parts Support
    email: support@source.parts
    url: https://source.parts
  license:
    name: Proprietary
    url: https://source.parts/terms
servers:
- url: https://api.source.parts/v1
  description: Production
- url: http://localhost:9900/v1
  description: Local development
security:
- ApiKeyAuth: []
tags:
- name: Auth
  description: API key management
paths:
  /auth/key/validate:
    post:
      tags:
      - Auth
      summary: Validate API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                api_key:
                  type: string
              required:
              - api_key
      responses:
        '200':
          description: Validation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyValidateResponse'
      operationId: postAuthKeyValidate
      x-operation-id-source: derived
  /auth/keys:
    get:
      tags:
      - Auth
      summary: List API keys
      responses:
        '200':
          description: API keys list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeysListResponse'
      operationId: getAuthKeys
      x-operation-id-source: derived
    post:
      tags:
      - Auth
      summary: Create API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KeyCreateRequest'
      responses:
        '201':
          description: API key created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyCreateResponse'
      operationId: postAuthKeys
      x-operation-id-source: derived
  /auth/keys/{key_id}:
    parameters:
    - name: key_id
      in: path
      required: true
      schema:
        type: string
    delete:
      tags:
      - Auth
      summary: Revoke (soft-delete) an API key
      x-generated: true
      x-handler: auth.revoke_api_key
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: deleteAuthKeysByKeyId
      x-operation-id-source: derived
  /auth/token:
    post:
      tags:
      - Auth
      summary: Proxy the Auth0 PKCE authorization code exchange
      x-generated: true
      x-handler: auth.oauth_token_exchange
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postAuthToken
      x-operation-id-source: derived
  /auth/token/refresh:
    post:
      tags:
      - Auth
      summary: Proxy an Auth0 refresh token exchange
      x-generated: true
      x-handler: auth.oauth_token_refresh
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postAuthTokenRefresh
      x-operation-id-source: derived
  /auth/validate:
    get:
      tags:
      - Auth
      summary: Validate an API key from Authorization header
      x-generated: true
      x-handler: auth.validate_api_key_bearer
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getAuthValidate
      x-operation-id-source: derived
components:
  schemas:
    KeysListResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            keys:
              type: array
              items:
                type: object
    KeyCreateRequest:
      type: object
      required:
      - name
      properties:
        name:
          type: string
        description:
          type: string
        scopes:
          type: array
          items:
            type: string
    KeyCreateResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            id:
              type: string
            apiKey:
              type: string
            key_prefix:
              type: string
    KeyValidateResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            valid:
              type: boolean
            keyId:
              type: string
            planTier:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key (sp_live_xxx or sp_test_xxx)