Automation
Get Automation Settings
Get automation settings for the authenticated user.
Authorization
AuthorizationRequiredBearer <token>🚀 OAuth2 authentication via secure identity provider
In: header
Scope: openid, email, profile
AuthorizationRequiredBearer <token>🎫 JWT Bearer token from OAuth2 login or direct token
In: header
Authorization<token>🗝️ API key in format: 'Bearer sk-xxxxxx'
In: header
Response Body
Successful Response
TypeScript Definitions
Use the response body type in TypeScript.
is_enabledboolean | null | nullsession_durationinteger | null | nulluser_idRequiredUser Idcreated_atRequiredCreated AtFormat:
"date-time"updated_atRequiredUpdated AtFormat:
"date-time"curl -X GET "https://example.com/api/v1/automation/settings" \
-H "Authorization: Bearer <token>"fetch("https://example.com/api/v1/automation/settings", {
headers: {
"Authorization": "Bearer <token>"
}
})package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://example.com/api/v1/automation/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://example.com/api/v1/automation/settings"
response = requests.request("GET", url, headers = {
"Authorization": "Bearer <token>"
})
print(response.text){
"is_enabled": true,
"session_duration": 3600
}How is this guide?