Skip to content
Get started

Test a source connection

POST/api/promptly/sources/{sourceId}/test

Verify the source connection is working properly

Path ParametersExpand Collapse
sourceId: string
formatuuid
ReturnsExpand Collapse
message: optional string
success: optional boolean
tools: optional array of Tool { description, inputSchema, name }
description: optional string
inputSchema: optional unknown

JSON Schema for tool parameters

name: optional string

Test a source connection

curl https://0ct.com/api/promptly/sources/$SOURCE_ID/test \
    -X POST \
    -H "Authorization: Bearer $0CT_API_KEY"
{
  "message": "message",
  "success": true,
  "tools": [
    {
      "description": "description",
      "inputSchema": {},
      "name": "name"
    }
  ]
}
Returns Examples
{
  "message": "message",
  "success": true,
  "tools": [
    {
      "description": "description",
      "inputSchema": {},
      "name": "name"
    }
  ]
}