Skip to main content

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:

KeyDescription
client_idIdentifies your integration. This can be used in client-side applications (web/mobile).
client_secretConfidential 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 --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'