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.
openapi: 3.2.0
info:
title: Source Parts Credits 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: Credits
paths:
/credits/balance:
get:
tags:
- Credits
summary: Get the authenticated user's credit balance
x-generated: true
x-handler: credits.get_credits_balance
responses:
'200':
description: Success
'401':
description: Authentication required
operationId: getCreditsBalance
x-operation-id-source: derived
components:
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
description: API key (sp_live_xxx or sp_test_xxx)