Authentication
All Open Fabric APIs use an OAuth 2.0 access token (Bearer token) for authentication.
To obtain an access token, you need client credentials:
| Key | Description |
|---|---|
client_id | Identifies your integration. This can be used in client-side applications (web/mobile). |
client_secret | Confidential credential used for server-to-server communication. Do not expose it to third parties. |
Your credentials will be provided during onboarding.
Request an access token
Use the Request access token API.
- curl
curl --request POST \
--url https://auth.openfabric.co/oauth2/token \
--header 'Authorization: Basic <base64(client_id:client_secret)>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=client_credentials'