Create a source
POST/api/promptly/sources
Create a new data source connection
Body Parameters
config: unknown
name: string
organizationId: string
formatuuid
authConfig: optional unknown
authType: optional string
description: optional string
iconUrl: optional string
slug: optional string
Returns
Create a source
curl https://0ct.com/api/promptly/sources \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $0CT_API_KEY" \
-d '{
"config": {},
"name": "name",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"type": "mcp"
}'{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"args": [
"string"
],
"baseUrl": "https://example.com",
"command": "command",
"env": {
"foo": "string"
},
"transport": "stdio",
"url": "https://example.com"
},
"name": "name",
"type": "mcp",
"authConfig": {
"headerName": "headerName",
"prefix": "prefix",
"provider": "provider"
},
"authType": "none",
"composioConnected": true,
"composioToolkit": "composioToolkit",
"createdAt": "2019-12-27T18:11:19.117Z",
"description": "description",
"iconUrl": "https://example.com",
"isActive": true,
"lastConnectedAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"tools": [
{
"description": "description",
"inputSchema": {},
"name": "name"
}
],
"updatedAt": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"args": [
"string"
],
"baseUrl": "https://example.com",
"command": "command",
"env": {
"foo": "string"
},
"transport": "stdio",
"url": "https://example.com"
},
"name": "name",
"type": "mcp",
"authConfig": {
"headerName": "headerName",
"prefix": "prefix",
"provider": "provider"
},
"authType": "none",
"composioConnected": true,
"composioToolkit": "composioToolkit",
"createdAt": "2019-12-27T18:11:19.117Z",
"description": "description",
"iconUrl": "https://example.com",
"isActive": true,
"lastConnectedAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"tools": [
{
"description": "description",
"inputSchema": {},
"name": "name"
}
],
"updatedAt": "2019-12-27T18:11:19.117Z"
}