الانتقال إلى المحتوى الرئيسي
POST
/
admin
/
tool
/
custom
Create Custom Tool
curl --request POST \
  --url https://cloud.gorbit.app/api/admin/tool/custom \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "definition": {},
  "passthrough_auth": true,
  "description": "<string>",
  "custom_headers": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "oauth_config_id": 123
}
'
{
  "id": 123,
  "name": "<string>",
  "description": "<string>",
  "definition": {},
  "display_name": "<string>",
  "in_code_tool_id": "<string>",
  "custom_headers": [
    "<unknown>"
  ],
  "passthrough_auth": true,
  "mcp_server_id": 123,
  "user_id": "<string>",
  "oauth_config_id": 123,
  "oauth_config_name": "<string>",
  "enabled": true,
  "chat_selectable": true,
  "agent_creation_selectable": true,
  "default_enabled": false
}

التفويضات

Authorization
string
header
مطلوب

Authorization header with Bearer token

الجسم

application/json
name
string
مطلوب
definition
Definition · object
مطلوب
passthrough_auth
boolean
مطلوب
description
string | null
custom_headers
Header · object[] | null
oauth_config_id
integer | null

الاستجابة

Successful Response

id
integer
مطلوب
name
string
مطلوب
description
string
مطلوب
definition
Definition · object
مطلوب
display_name
string
مطلوب
in_code_tool_id
string | null
مطلوب
custom_headers
any[] | null
مطلوب
passthrough_auth
boolean
مطلوب
mcp_server_id
integer | null
user_id
string | null
oauth_config_id
integer | null
oauth_config_name
string | null
enabled
boolean
افتراضي:true
chat_selectable
boolean
افتراضي:true
agent_creation_selectable
boolean
افتراضي:true
default_enabled
boolean
افتراضي:false