Quickstart
1
Field
Description
2
curl -X POST https://api.keepnetlabs.com/connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "scope=api1"{
"access_token": "eyJ...",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "api1",
"permissions": ["tags/search|POST", "companies/search|POST", "..."]
}const response = await fetch('https://api.keepnetlabs.com/connect/token', {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: new URLSearchParams({
grant_type: 'client_credentials',
client_id: process.env.CLIENT_ID,
client_secret: process.env.CLIENT_SECRET,
scope: 'api1',
}),
});
const { access_token } = await response.json();
// Use: Authorization: Bearer ${access_token}3
curl -X GET "https://api.keepnetlabs.com/api/companies/my" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"Test it β quick checklist
Step
Action
Result
Base URL and response format
Field
Type
Description
Common conventions
Convention
Description
Integration and automation
Topic
Requirement
If you don't
What the token contains
Company context
Claim
Description
Example
Role and access
Claim
Description
Company Admin
Reseller
Token metadata
Claim
Description
Example
Who can use the API
Role
Access
Token expiry and errors
HTTP status
Cause
Action
Reseller: scope by Company ID
Keep credentials secure
Explore the API
What you want to do
Use case
Last updated