Skip to content
Hexel StudioDocs

Create auth config

POST/titan/tools/auth-configs

Create a new auth configuration (OAuth2, API Key, or Basic Auth) Requires permission tool-gateway:auth:write.

Headers

Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

X-Workspace-Idoptional string

Workspace scope used by permission checks, if applicable.

X-Environment-Idoptional string

Optional environment scope.

Body parameters

auth_config_idoptional string
auth_schemeoptional string
auth_urloptional string
client_idoptional string
client_secretoptional string
created_atoptional string
credential_fieldsoptional array of CredentialField

CredentialFields declares the named credential fields a static-token connection of this config holds.

extra_authorize_paramsoptional map[string]
grant_typeoptional string

GrantType is authorization_code (the default), or client_credentials or account_credentials for an app config. It is fixed when the config is created.

header_nameoptional string
is_activeoptional boolean
is_defaultoptional boolean

Mark as default for this level

nameoptional string
organization_idoptional string

NULL = platform default

pkceoptional string

OAuth2 client options; each defaults to the previous behaviour.

resourceoptional string

Resource is the RFC 8707 resource indicator sent on the authorization and token requests: the MCP server a token is for. Nil sends none.

scope_delimiteroptional string
scopesoptional array of string
token_endpoint_authoptional string
token_request_formatoptional string

TokenRequestFormat encodes every token request body: "form" (the default, RFC 6749) or "json" (a JSON object of the same parameters, as Zendesk documents). Client authentication is unchanged.

token_responseoptional TokenResponse
token_urloptional string
toolkit_slugoptional string
updated_atoptional string
workspace_idoptional string

NULL = org-level

Returns

201CreatedAuthConfig

auth_config_idoptional string
auth_schemeoptional string
auth_urloptional string
client_idoptional string
created_atoptional string
credential_fieldsoptional array of CredentialField

CredentialFields declares the named credential fields a static-token connection of this config holds.

extra_authorize_paramsoptional map[string]
grant_typeoptional string

GrantType is authorization_code (the default), or client_credentials or account_credentials for an app config. It is fixed when the config is created.

header_nameoptional string
is_activeoptional boolean
is_defaultoptional boolean

Mark as default for this level

nameoptional string
organization_idoptional string

NULL = platform default

pkceoptional string

OAuth2 client options; each defaults to the previous behaviour.

resourceoptional string

Resource is the RFC 8707 resource indicator sent on the authorization and token requests: the MCP server a token is for. Nil sends none.

scope_delimiteroptional string
scopesoptional array of string
token_endpoint_authoptional string
token_request_formatoptional string

TokenRequestFormat encodes every token request body: "form" (the default, RFC 6749) or "json" (a JSON object of the same parameters, as Zendesk documents). Client authentication is unchanged.

token_responseoptional TokenResponse
token_urloptional string
toolkit_slugoptional string
updated_atoptional string
workspace_idoptional string

NULL = org-level

Errors

  • 400Bad Request
  • 401Unauthenticated: token missing or rejected at the edge
  • 403Forbidden: caller lacks the required permission
  • 500Internal Server Error