Overview
Authenticate with the PartsSource APIs using OAuth 2.0
Quick Start
1. Get an Access Token
curl -X POST https://auth.partssource.com/oauth2/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "scope=default-m2m-resource-server-p2hkah/admin:internal"{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}2. Use the Token
Authentication Flow
Token Details
Property
Value
Token Lifecycle
API Scopes
InternalApi Scopes
Scope
Access Level
CustomerApi Scopes
Scope
Access Level
Authentication Endpoints
Endpoint
URL
Purpose
Error Responses
401 Unauthorized
403 Forbidden
Next Steps
Last updated

