Authentication
The Onboarding APIs use OAuth2, you will need your API credentials which are provided with access to the Detected platform.
API Clients & Scopes
You can have multiple API clients created for your account, each API client us required to have a scope defined, scopes available are read or write.
Authentication Request
With your credentials you can make a call to the authentication API:
curl -X POST "https://api.detected.app/api/v2/public/oauth/token" \
-H "Content-Type: application/json" \
-d {
"grant_type": "app_credentials",
"client_id": "cli_123",
"client_secret": "sec_abc",
"slug": "my-tenant"
}grant_type: always app_credentials for this flow.
client_id / client_secret: values from your Detected dashboard.
slug: account or tenant identifier available in your Detected dashboard
Authentication Response
You will receive your token in the response:
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "ijnasdina0910209109"
}