Authentication
https://auth.app.labelf.ai/oauth2/token
Allows a registered application to obtain an OAuth 2 Bearer Token, which can be used to make API requests on an application's own behalf, without a user context.
This is called Application-only authentication. A Bearer Token may be invalidated using oauth2/invalidate_token. Successful responses include a JSON-structure describing the awarded Bearer Token
Response format
JSON
Authentication
Yes - Basic auth with your client_id as your username and client_secret as your password
Example cURL request
import requests
data = {
'grant_type': 'client_credentials',
}
response = requests.post('https://auth.app.labelf.ai/oauth2/token', data=data, verify=False, auth=('CLIENT_ID', 'CLIENT_SECRET'))
fetch('https://auth.app.labelf.ai/oauth2/token', {
method: 'POST',
headers: {
'Authorization': 'Basic ' + btoa('CLIENT_ID:CLIENT_SECRET')
},
body: new URLSearchParams({
'grant_type': 'client_credentials'
})
});
curl -k -X POST -H \
"Content-Type: application/x-www-form-urlencoded" \
-u 'CLIENT_ID:CLIENT_SECRET' \
-d grant_type=client_credentials \ https://auth.app.labelf.ai/oauth2/token
Example response
HTTP/1.1 200 OK
Status: 200 OK
Content-Type: application/json; charset=utf-8
...
{
"access_token": "asdAASDASDASD_SASDASD",
"expires_in": 3122063999,
"scope": "",
"token_type": "bearer"
}
Offers
Resources
Company
Copyright © 2023 Labelf. All rights reserved.
Change Cookie Settings