Documentation Index Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
Use this file to discover all available pages before exploring further.
Create a Messaging Service
Create a new messaging service connection to a platform such as Kafka, Redpanda, or Kinesis.
Body Parameters
Name of the messaging service. Must be unique across all messaging services.
Type of messaging service (e.g., Kafka, Redpanda, Kinesis, CustomMessaging).
Description of the messaging service in Markdown format.
Human-readable display name for the messaging service.
Connection configuration specific to the service type. Service-specific connection configuration (e.g., bootstrapServers, securityProtocol for Kafka).
Array of owner references (users or teams) to assign to the service. UUID of the owner entity.
Type of owner entity (e.g., user, team).
Name of the owner entity.
Fully qualified name of the domain to assign for governance purposes.
Array of classification tags to apply to the messaging service. Fully qualified name of the tag.
Type of label (e.g., Manual, Derived, Propagated).
State of the tag (e.g., Suggested, Confirmed).
POST /v1/services/messagingServices
import requests
base_url = "https://your-company.getcollate.io/api"
headers = {
"Authorization" : "Bearer your-jwt-token" ,
"Content-Type" : "application/json"
}
payload = {
"name" : "sample_kafka" ,
"displayName" : "Sample Kafka" ,
"serviceType" : "Kafka" ,
"description" : "Production Kafka messaging service" ,
"connection" : {
"config" : {
"type" : "Kafka" ,
"bootstrapServers" : "localhost:9092" ,
"securityProtocol" : "PLAINTEXT" ,
"saslMechanism" : "PLAIN" ,
"schemaRegistryTopicSuffixName" : "-value" ,
"supportsMetadataExtraction" : True
}
}
}
response = requests.post(
f " { base_url } /v1/services/messagingServices" ,
json = payload,
headers = headers
)
service = response.json()
print ( f "Created: { service[ 'fullyQualifiedName' ] } " )
{
"id" : "469ef25e-9bdf-4d5f-8553-eb0ce8581f30" ,
"name" : "sample_kafka" ,
"fullyQualifiedName" : "sample_kafka" ,
"serviceType" : "Kafka" ,
"connection" : {
"config" : {
"type" : "Kafka" ,
"bootstrapServers" : "localhost:9092" ,
"securityProtocol" : "PLAINTEXT" ,
"saslMechanism" : "PLAIN" ,
"schemaRegistryTopicSuffixName" : "-value" ,
"supportsMetadataExtraction" : true
}
},
"tags" : [],
"version" : 0.1 ,
"updatedAt" : 1769982621031 ,
"updatedBy" : "admin" ,
"href" : "http://localhost:8585/api/v1/services/messagingServices/469ef25e-9bdf-4d5f-8553-eb0ce8581f30" ,
"deleted" : false ,
"owners" : [],
"domains" : []
}
Returns
Returns the created messaging service object with all specified properties and system-generated fields.
Response
Unique identifier for the messaging service (UUID format).
Fully qualified name of the service.
Human-readable display name.
Description of the messaging service in Markdown format.
Type of messaging service (e.g., Kafka, Redpanda, Kinesis).
Connection configuration for the service. Service-specific connection configuration.
List of owners assigned to the messaging service. UUID of the owner entity.
Type of owner entity (e.g., user, team).
Name of the owner entity.
Fully qualified name of the assigned domain.
Classification tags applied to the messaging service. Fully qualified name of the tag.
Type of label (e.g., Manual, Derived, Propagated).
State of the tag (e.g., Suggested, Confirmed).
Version number for the entity (starts at 0.1).
Create or Update (PUT)
Use PUT /v1/services/messagingServices instead of POST to perform an upsert. If a messaging service with the same fullyQualifiedName already exists, it will be updated; otherwise, a new service is created. The request body is the same as POST.
curl -X PUT "{base_url}/api/v1/services/messagingServices" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{ ... same body as POST ... }'
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.
Bulk Create or Update (PUT)
Use PUT /v1/services/messagingServices/bulk to create or update multiple messaging services in a single request. The request body is an array of create request objects.
curl -X PUT "{base_url}/api/v1/services/messagingServices/bulk" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '[
{ "name": "kafka_prod", "serviceType": "Kafka", "connection": { "config": {} } },
{ "name": "redpanda_staging", "serviceType": "Redpanda", "connection": { "config": {} } }
]'
Error Handling
Code Error Type Description 400BAD_REQUESTInvalid request body or missing required fields 401UNAUTHORIZEDInvalid or missing authentication token 403FORBIDDENUser lacks permission to create messaging services 409ENTITY_ALREADY_EXISTSMessaging service with same name already exists (POST only)