Skip to navigation

Authentication

Authenticate with OAuth 2.0 client credentials.

The Infersoft API uses the OAuth 2.0 client credentials flow. You exchange a client ID and secret for a short-lived bearer token, then send that token on every request.

1. Request an access token

curl --request POST \
--url https://dev-noabnisxxguu0jp0.us.auth0.com/oauth/token \
--header 'content-type: application/json' \
--data '{
"grant_type": "client_credentials",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"audience": "https://api.infersoft.com"
}'

The response contains an access_token you can use as a bearer token.

2. Call the API

curl --request POST \
--url https://api.infersoft.com/api/documents/search \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'content-type: application/json' \
--data '{ "page": 1, "page_size": 25 }'

The Infersoft SDKs handle the token exchange and refresh for you — pass your credentials to the client constructor and it manages the bearer token automatically.

Scopes

Tokens are scoped per resource. Request only the scopes your integration needs:

ScopeGrants
documents:readRead documents
documents:writeDelete documents
extraction:readRead extraction results
files:uploadPlan file uploads using presigned URLs
jobs:readRead workflow jobs
jobs:writeStart workflow jobs
projects:readRead projects
projects:writeCreate and modify projects
prompts:readRead extractor prompts