curl --request POST \
--url 'https://api.hexelstudio.com/v1/titan/tools/auth-configs' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"auth_config_id": "string",
"auth_scheme": "string",
"auth_url": "string",
"client_id": "string",
"client_secret": "string",
"created_at": "2026-01-01T00:00:00Z",
"credential_fields": [
{
"name": "string",
"pattern": "string",
"secret": true
}
],
"extra_authorize_params": {
"key": "string"
},
"grant_type": "string",
"header_name": "string",
"is_active": true,
"is_default": true,
"name": "string",
"organization_id": "string",
"pkce": "string",
"resource": "string",
"scope_delimiter": "string",
"scopes": [
"string"
],
"token_endpoint_auth": "string",
"token_request_format": "string",
"token_response": {
"access_token": "string",
"attributes": {
"key": "string"
},
"default_expires_in": 0,
"expires_in": "string",
"refresh": {
"access_token": "string",
"expires_in": "string",
"refresh_token": "string",
"scope": "string"
},
"refresh_token": "string",
"scope": "string"
},
"token_url": "string",
"toolkit_slug": "string",
"updated_at": "2026-01-01T00:00:00Z",
"workspace_id": "string"
}'
const res = await fetch("https://api.hexelstudio.com/v1/titan/tools/auth-configs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ACCESS_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"auth_config_id": "string",
"auth_scheme": "string",
"auth_url": "string",
"client_id": "string",
"client_secret": "string",
"created_at": "2026-01-01T00:00:00Z",
"credential_fields": [
{
"name": "string",
"pattern": "string",
"secret": true
}
],
"extra_authorize_params": {
"key": "string"
},
"grant_type": "string",
"header_name": "string",
"is_active": true,
"is_default": true,
"name": "string",
"organization_id": "string",
"pkce": "string",
"resource": "string",
"scope_delimiter": "string",
"scopes": [
"string"
],
"token_endpoint_auth": "string",
"token_request_format": "string",
"token_response": {
"access_token": "string",
"attributes": {
"key": "string"
},
"default_expires_in": 0,
"expires_in": "string",
"refresh": {
"access_token": "string",
"expires_in": "string",
"refresh_token": "string",
"scope": "string"
},
"refresh_token": "string",
"scope": "string"
},
"token_url": "string",
"toolkit_slug": "string",
"updated_at": "2026-01-01T00:00:00Z",
"workspace_id": "string"
}),
})
const data = await res.json()
import os
import requests
res = requests.post(
"https://api.hexelstudio.com/v1/titan/tools/auth-configs",
headers={"Authorization": f"Bearer {os.environ['ACCESS_TOKEN']}"},
json={
"auth_config_id": "string",
"auth_scheme": "string",
"auth_url": "string",
"client_id": "string",
"client_secret": "string",
"created_at": "2026-01-01T00:00:00Z",
"credential_fields": [
{
"name": "string",
"pattern": "string",
"secret": True,
},
],
"extra_authorize_params": {
"key": "string",
},
"grant_type": "string",
"header_name": "string",
"is_active": True,
"is_default": True,
"name": "string",
"organization_id": "string",
"pkce": "string",
"resource": "string",
"scope_delimiter": "string",
"scopes": [
"string",
],
"token_endpoint_auth": "string",
"token_request_format": "string",
"token_response": {
"access_token": "string",
"attributes": {
"key": "string",
},
"default_expires_in": 0,
"expires_in": "string",
"refresh": {
"access_token": "string",
"expires_in": "string",
"refresh_token": "string",
"scope": "string",
},
"refresh_token": "string",
"scope": "string",
},
"token_url": "string",
"toolkit_slug": "string",
"updated_at": "2026-01-01T00:00:00Z",
"workspace_id": "string",
},
)
data = res.json()
{
"auth_config_id": "string",
"auth_scheme": "string",
"auth_url": "string",
"client_id": "string",
"created_at": "2026-01-01T00:00:00Z",
"credential_fields": [
{
"name": "string",
"pattern": "string",
"secret": true
}
],
"extra_authorize_params": {
"key": "string"
},
"grant_type": "string",
"header_name": "string",
"is_active": true,
"is_default": true,
"name": "string",
"organization_id": "string",
"pkce": "string",
"resource": "string",
"scope_delimiter": "string",
"scopes": [
"string"
],
"token_endpoint_auth": "string",
"token_request_format": "string",
"token_response": {
"access_token": "string",
"attributes": {
"key": "string"
},
"default_expires_in": 0,
"expires_in": "string",
"refresh": {
"access_token": "string",
"expires_in": "string",
"refresh_token": "string",
"scope": "string"
},
"refresh_token": "string",
"scope": "string"
},
"token_url": "string",
"toolkit_slug": "string",
"updated_at": "2026-01-01T00:00:00Z",
"workspace_id": "string"
}
{
"error": {
"code": "string",
"message": "string"
}
}
{
"error": {
"code": "string",
"message": "string"
}
}