serviceAccountToken
POST
/auth/token
const url = 'https://app.dev.buildtrace.eu/api/auth/token';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"grantType":"example","clientId":"example","clientSecret":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.dev.buildtrace.eu/api/auth/token \ --header 'Content-Type: application/json' \ --data '{ "grantType": "example", "clientId": "example", "clientSecret": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
grantType
required
string
clientId
required
string
clientSecret
required
string
Example generated
{ "grantType": "example", "clientId": "example", "clientSecret": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
accessToken
required
string
tokenType
required
string
Example generated
{ "accessToken": "example", "tokenType": "example"}Invalid credentials
Too many failed attempts recently; try again later
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}