Skip to main content
The Connectors API is how you tell Devset where your brokers and databases live. You register a named connector once, and then reference it by name in workflows, messages, and queries. Devset supports Kafka and RabbitMQ broker connectors, MongoDB database connectors, and a set of MongoDB query endpoints for direct data access. All endpoints are relative to http://localhost:8082.

POST /connectors/configurations

Create a broker connector. Devset stores the connection details and makes the connector available by name across all other APIs.
string
required
Must be "kafka".
string
required
A unique name for this connector, such as local-kafka or staging-kafka.
string
required
Comma-separated list of Kafka bootstrap server addresses in host:port format.
string
Optional authentication username.
string
Optional authentication password.
Request example
Response — 200 OK This endpoint returns no response body.

GET /connectors/configurations

List all saved broker connectors and their connection status. Passwords are not returned in the response. Response — 200 OK
string
The broker type: kafka or rabbit.
string
The connector name.
string
The connection endpoint. For Kafka, the bootstrap server address. For RabbitMQ, host:port.
boolean
true if the producer side of the connection is active.
boolean
true if the consumer side of the connection is active.
boolean
true if credentials were provided for this connector.

DELETE /connectors/configurations//

Delete a broker connector by type and name. Path parameters
string
required
The broker type: kafka or rabbit.
string
required
The name of the connector to delete.
Request example
Response — 200 OK This endpoint returns no response body.
Deleting a connector that is referenced by saved workflows will cause those workflows to fail on the next execution. Update your workflows to use a different connector before deleting.

POST /db/connectors/configurations

Create a database connector. Currently, Devset supports MongoDB.
string
required
The database type. Currently only "mongodb" is supported.
string
required
A unique name for this connector, such as local-mongo or staging-mongo.
string
required
A valid MongoDB connection URI, such as mongodb://localhost:27017 or mongodb+srv://user:pass@cluster.example.net.
string
required
The default database to use when a query does not specify one explicitly.
string
Optional authentication username.
string
Optional authentication password.
Request example
Response — 200 OK This endpoint returns no response body.

GET /db/connectors/configurations

List all saved database connectors and their connection status. Connection string credentials are not returned in the response. Response — 200 OK
string
The database type. Currently always "mongodb".
string
The connector name.
string
The connection URI used by this connector.
boolean
true if the client is currently connected to the database.
boolean
true if credentials were provided for this connector.

DELETE /db/connectors/configurations//

Delete a database connector by type and name. Path parameters
string
required
The database type: mongodb.
string
required
The name of the connector to delete.
Request example
Response — 200 OK This endpoint returns no response body.

POST /mongodb/query

Run a MongoDB find query against a collection. Devset connects using the named connector and returns matching documents along with the total count.
string
required
The name of the MongoDB connector to use.
string
required
The database containing the target collection.
string
required
The collection to query.
string
required
A MongoDB query filter document serialized as a JSON string. Use "{}" to return all documents.
string
A MongoDB projection document serialized as a JSON string, specifying which fields to include (1) or exclude (0). Omit to return all fields.
integer
Maximum number of documents to return. Use 0 or omit for no limit.
Request example
Response — 200 OK
array
Array of matching documents, shaped by your projection. The _id field is included by default unless explicitly excluded.
integer
Total number of documents returned.

POST /mongodb/schema

Discover the field structure of a collection by sampling one document. Devset inspects the document and returns a list of fields with their paths, inferred BSON types, and any nested children for embedded documents. Use this to understand collection shape before writing a query or workflow stage.
string
required
The name of the MongoDB connector to use.
string
required
The database containing the target collection.
string
required
The collection to sample.
Request example
Response — 200 OK
The response is a JSON array of field descriptors.
string
Dot-notation path of the field (e.g. address.city).
string
Inferred BSON type name (e.g. String, Integer, Document, Array).
array
Nested field descriptors when type is Document. Empty for all other types.
Schema discovery samples a single document. If your collection has documents with varying shapes, the result may not reflect all possible fields. Run queries against several documents to build a complete picture.

GET /mongodb//databases

List all databases accessible with the given MongoDB connector. Path parameters
string
required
The name of the MongoDB connector to query.
Request example
Response — 200 OK
The response is a JSON array of database name strings.

GET /mongodb///collections

List all collections in a specific database. Path parameters
string
required
The name of the MongoDB connector to query.
string
required
The database whose collections you want to list.
Request example
Response — 200 OK
The response is a JSON array of collection name strings.