> ## Documentation Index
> Fetch the complete documentation index at: https://help.partgenie.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth client_credentials

> Machine auth for /v1

# OAuth2 client\_credentials

1. In the [developer portal](https://developers.partgenie.ai), create an App → **Issue OAuth client**.
2. Exchange:

```bash theme={null}
curl -X POST https://api.partgenie.ai/developer/oauth/token \
  -H 'Content-Type: application/json' \
  -d '{
    "grant_type": "client_credentials",
    "client_id": "pg_cid_…",
    "client_secret": "…"
  }'
```

3. Call API with `Authorization: Bearer pg_at_…`.

API keys (`pg_test_` / `pg_live_`) remain supported on the same App.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.