POST
/
api
/
v1
/
sources
/
add
/
singlestore
/
Add SingleStore connection
curl --request POST \
  --url https://api.camelai.com/api/v1/sources/add/singlestore/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "singlestore",
  "hostname": "localhost",
  "port": 3333,
  "username": "root",
  "password": "password",
  "database_name": "mydb"
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for SingleStore connection configuration.

type
string
required

Connection type identifier. Must be SINGLESTORE

Minimum length: 1
hostname
string
required

SingleStore server hostname

Required string length: 1 - 255
username
string
required

Database username

Required string length: 1 - 255
password
string
required

Database password

Minimum length: 1
database_name
string
required

Database name

Required string length: 1 - 255
account_name
string
default:SingleStore

Display name for the connection

Minimum length: 1
port
integer
default:3333

Port number

Response

id
integer

The ID of the created connection