Clients
Create API clients, list them and regenerate their secrets.
An API Client is the credential pair (Client Id + Api Secret) an app uses to call KPass's api/v1 endpoints. Each client belongs to one app. The secret is only ever shown once, right after it's created or regenerated — copy it immediately, KPass never displays it again.
Create a client under an app (the response includes the plaintext secret exactly once):
curl -X POST https://kpass.one/api/v1/apps/APP_ID/clients \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Api-Secret: YOUR_API_SECRET" \
-H "Content-Type: application/json" \
-d '{
"label": "My Service"
}'
List clients for an app (never includes the secret, only whether one is set):
curl https://kpass.one/api/v1/apps/APP_ID/clients \ -H "X-Client-Id: YOUR_CLIENT_ID" \ -H "X-Api-Secret: YOUR_API_SECRET"
Regenerate a client's secret — invalidates the old one immediately, any integration using it breaks until updated:
curl -X POST https://kpass.one/api/v1/apps/APP_ID/clients/CLIENT_ID/secret \ -H "X-Client-Id: YOUR_CLIENT_ID" \ -H "X-Api-Secret: YOUR_API_SECRET"